Skip to content

Diagnosing problems

Rob Campbell edited this page Nov 21, 2017 · 1 revision
  • Pressing Grab or Loop in ScanImage produces:
Error using scanimage.components.scan2d.resscan.Control/start (line 153)
NI DAQmx error (-200462) in call to API function 'DAQmxStartTask':
 Generation cannot be started because the output buffer is empty.

Write data before starting a buffered generation. The following actions can empty the buffer: changing the size of the buffer, unreserving a task, setting the Regeneration Mode property, changing the Sample Mode, or configuring
retriggering.

One way this can happen is if the waveform of the galvo is too large. Check this as follows:

>> max(hSI.hWaveformManager.scannerAO.ao_volts_raw.G)

ans =

         0   10.0527

>> min(hSI.hWaveformManager.scannerAO.ao_volts_raw.G)

ans =

         0  -10.0527

The DAQ is capable of producing values between +/- 10 V, so this is the problem

Clone this wiki locally