Configuring Zapit
Starting for the first time
Run the following command to make the settings file:
>> zapit.settings.readSettings;
You will be prompted to choose the location where the settings file is created. Make the choice and press return. Then navigate to the location where you asked for the settings file to be created. This will contain a file called zapitSystemSettings.yml
that contains device configuration information and also caches the GUI state.
You will need to edit the YML file in a text editor of your choice. The contents of the file will be something like this:
general: {maxSettingsBackUpFiles: 50.0, openPythonBridgeOnStartup: 0.0}
NI: {device_ID: Dev2, samplesPerSecond: 100000.0, triggerChannel: PFI0, wrapper: dotnet}
scanners: {voltsPerPixel: 0.0022, invertXscanner: 0.0, invertYscanner: 0.0}
laser:
name: obis
laserMinMaxControlVolts: [0.0, 5.0]
laserMinMax_mW: [0.0, 44.6]
maxValueInGUI: 30.0
camera: {connectionIndex: 1.0, default_exposure: 800.0, micronsPerPixel: 11.72, flipImageUD: 1.0,
flipImageLR: 1.0}
calibrateScanners: {areaThreshold: 500.0, calibration_power_mW: 5.2, beam_calib_exposure: 900.0,
bufferMM: 2.0, pointSpacingInMM: 2.0}
calibrateSample: {refAP: 3.0}
experiment: {defaultLaserModulationFrequencyHz: 40.0, defaultLaserPowerMW: 5.0, offRampDownDuration_ms: 250.0,
blankingTime_ms: 0.6, blankOnsetShift_ms: -0.12, blankOffsetShift_ms: 0.25}
tcpServer: {IP: localhost, port: 1488.0, enable: false}
cache:
ROI: []
previouslyLoadedFiles:
- []
Some settings you will need to change. Other settings are either cached GUI values, and can be left alone, or are there only for developers or super-users. Proceed through the next steps in order.
Last updated