Configuring
Command line arguments
control.exe takes several command line arguments to customize the software launch sequence:
--camera <camera name>,-c <camera name>: select a specific camera to control;<camera name>is the name of the camera used within the settings file, such asppimaq_0. Normally, if several cameras are available, the software first shows the dropdown menu to choose the camera to control. However, if this argument is specified, this camera will be selected automatically. Can be used to, e.g., create separate shortcuts for controlling different cameras.
--config-file <file>,-cf <file>: specify a configuration file if it is different from the defaultsettings.cfg. The path is always specified relative tocontrol.pylocation.
Settings file
Software settings are defined in settings.cfg file inside the main folder. These include the camera connection parameters, as well as some additional interface and camera settings. The settings are described in a plain text format with one parameter per row. The most important settings are either defined by default, do not need explicit definition, or filled in by the camera detection. However, you can also edit them manually. Below is the list of available parameters.
General parameters
interface/compact- Switch to compact three-panel layout with a smaller controls area.Values:
True,FalseDefault:False interface/color_theme- Color theme (based of qdarkstyle).Values:
dark,light,standard(standard Windows style)Default:dark interface/expandable_edits- Enable or disable expandable text boxes for paths and event logs.Values:
True,FalseDefault:True interface/plotter/binning/max_size- Maximal size of the image shown in the plotter window (any image larger than this size gets binned). Only affect plotting, and only useful to speed up image display.Values: any positive integerDefault: not defined (no maximal size)
interface/plotter/binning/mode- Binning mode for plotting display, if the frame needs to be binned. Works in conjunction with
interface/plotter/binning/max_size.Values:mean,min,max,skipDefault:mean interface/popup_on_missing_frames- Show a pop-up message in the end of saving if the saved data contains missing frames.Values:
True,FalseDefault:True interface/datetime_path/file- Template to generate file names when
Add date/timeis selected butCreate separate folderis not.Values:pfx(add date as a prefix, e.g.,20210315_120530_video.bin),sfx(add date as a suffix, e.g.,video_20210315_120530.bin), orfolder(create folder with the datetime as name, e.g.,20210315_120530/video.bin)Default:sfx interface/datetime_path/folder- Template to generate folder names when both
Add date/timeandCreate separate folderare selected.Values:pfx(add date as a prefix, e.g.,20210315_120530_video/),sfx(add date as a suffix, e.g.,video_20210315_120530/), orfolder(create folder with the datetime as name, e.g.,20210315_120530/video/)Default:sfx interface/cam_control/roi_kind- ROI entry method in camera control.Values:
minmax(ROI is defined by minimal and maximal coordinates),minsize(ROI is defined by minimal coordinates and size), orcentersize(ROI is defined by center coordinates and size)Default:minsizefor PhotonFocus cameras,minmaxfor all other cameras frame_processing/status_line_policy- Method to deal with a status line (on PhotonFocus or PCO edge cameras) for the raw image display. Only affects the displayed image.Values:
keep(keep as is),cut(cut off rows with the status line),zero(set status line pixels to zero),median(set status line pixels to the image median),orduplicate(replace status line with pixels from a nearby row)Default:duplicate saving/max_queue_ram- Maximal size of the saving buffer in bytes. Makes sense to increase if large movies are saved to slow drive, or if large pre-trigger buffer is used (the size of the saving queue must be larger than the pre-trigger buffer). Makes sense to decrease if the PC has small amount of RAM.Values: any positive integerDefault:
4294967296(i.e., 4 GB)
Specific system parameters
dlls/<camera interface> Paths to camera-specific DLL locations, if different from the device location.<camera interface>can stand for one of the following:
andor_sdk2: path toatmcd64d.dllfor Andor SDK2. By default, search in the default location of Andor Solis.
andor_sdk3: path toatcore.dlland related DLLs for Andor SDK3. By default, search in the default location of Andor Solis.
dcamapi: path todcamapi.dlland related DLLs for Hamamatsu/DCAM cameras. By default, search inSystem32folder, where it is placed after installing DCAM API or Hokawo software.
niimaq: path toimaq.dllfor NI IMAQ frame grabber interface. By default, search inSystem32folder, where it is placed after installing NI Vision Acquisition Software.
niimaqdx: path toniimaqdx.dllfor NI IMAQdx frame grabber interface. By default, search inSystem32folder, where it is placed after installing NI Vision Acquisition Software.
pco_sc2: path toSC2_Cam.dllfor PCO cameras. By default, search in the default location of pco.camware or pco.sdk.
picam; path topicam.dllfor Princeton Instruments cameras. By default, search in the default location of Princeton Instruments PICam Runtime.
pfcam: path topfcam.dllfor PhotonFocus cameras. By default, search in PFRemote folder specified in thePATHenvironment variable.
pvcam; path topvcam64.dllfor Photometrics cameras. By default, search inSystem32folder, where it is placed after installing PVCAM software.
sisofgrab: path tofglib5.dllfor Silicon Software frame grabber interface. By default, search in Silicon Software Runtime Environment folder specified in thePATHenvironment variable.
thorlabs_tlcam: path tothorlabs_tsi_camera_sdk.dlland related DLLs for Thorlabs Scientific Cameras. By default, search in the default location of ThorCam.
uc480: path touc480_64.dlland related DLLs for uc480 camera interface. By default, search in the default location of ThorCam.
ueye: path toueye_api_64.dlland related DLLs for uEye camera interface. By default, search in the default location of IDS Software Suite.