Process Sample Holder Request

for mail-in and remote samples




Matlab Without Graphics Interface

for automatic 2D image to 1D profile conversion


At 12-ID-B, when the detectors collect images, they were first saved on the detector computers, then transfered to network drive and converted from 2D to 1D profiles. Image data can be transferred and converted using computer "grape", or on the local linux "purple".

1. 2D to 1D conversion using computer "grape"

  • Log onto computer grape, start a linux terminal, run matlab
  • >> matlab -nosplash -nodisplay this runs the matlab without graphics
  • >> SAXS_grape_server(detector_name) Choice of detector_name: 'pilatus2m', 'pilatus300k', 'pe' , 'mar300'
  • Go back to spec terminal on computer Purple, load setup files, and start to collect image data.

2. 2D to 1D conversion using local computer "purple"

  • On purple, open a new linux terminal,
  • [Purple]>> cd this leads to the home directory the current computer user account
  • [Purple]>> matlab -nosplash -nodisplay this runs the matlab without graphics
  • Now, we are in matlab workspace. Go to your directory, for example,
  • [in matlab]>>cd /home/12id-b/2019_Data/2019_3/xxxx
  • Load the SAXS / WAXS setup files:
  • [in matlab]>>load saxssetup.mat
  • [in matlab]>>load waxssetup.mat

In matlab workspace, run "SAXSWAXSfiletransfer" and follow its instruction to enable automatic file transfer and data processing. Without setup files, it only transfer the files without processing.

Note: There may be two copies of matlab running, one for data visualization (A. Matlab with graphic interface) and one for automatic data transfer and processing (B. Matlab without graphic interface). Caution: "killall matlab" will terminate both matlab programs.