Hints and Tips
Simulated mode
There is a simulated mode for working on the project with no camera or DAQ hardware. On a Windows PC start it with:
On Mac or Linux you can omit the argument and start_zapit
will open the GUI in simulated mode.
Simulated mode does just enough to make many development tasks possible but it does not simulate everything. For example, the scanner calibration is not simulated and is simply indicated as being calibrated. The sample calibration procedure works. You can also run hZP.applyUnityStereotaxicCalib
if you wish to apply a 1:1 calibration without going through the operations in the GUI.
Running with a simulated DAQ
You can also run Zapit with a simulated NI DAQ but a real camera. To do this, create a suitable simulated DAQ in NI MAX such as a USB-6363. Then edit the settings YAML to use this as the device ID. Connect your camera and start Zapit. You should now define the "scanners" as being calibrated with hZP.scannersCalibrated=true;
You may either run hZP.applyUnityStereotaxicCalib
to do the stereotaxic calibration or run through the actualy procedure. You can now load stimulus sets and run experiments. Of course, nothing is actually generated but you can do more testing than with the regular simulated mode described above.
Waveform Debugging
With a calibrated system and loaded stim config you can plot the waveforms which will be sent to the DAQ using:
You can see what is being presented with hZP.stimConfig.print
e.g.
The full stimulus data are in the stimLocations
property:
Last updated