Getting Error -200288 in DAQ Task When Using Triggers

Updated Feb 14, 2018

Reported In

Driver

  • Traditional NI-DAQ
  • NI-DAQmx

Issue Details

I am currently setting up my DAQ task for triggered finite operation, and I want to repeat the triggered finite operation indefinitely. I have enough time between triggers so that I can enable them in software by calling the DAQmx Start Task VI. However, when I try to receive the second trigger,

I receive error -200288 that states: 

Measurements: Attempted to write a sample beyond the final sample generated. The generation has stopped, therefore the sample specified by the combination of position and offset will never be available.

Specify a position and offset which selects a sample up to, but not beyond, the final sample generated. The final sample generated can be determined by querying the total samples generated after a generation has stopped.


Solution

In NI-DAQmx

Call a DAQmx Stop Task VI after a read (analog input) or write (analog output) operation before you can re-enable the triggers.


In Traditional NI-DAQ

Call the start command to re-enable the trigger.

Additional Information

This error often results from analog output operations that have been set up for software retriggering.  Software retriggering is when the trigger gets rearmed in software by restarting the task.  This is different than hardware retriggering which automatically rearms itself.

WAS THIS ARTICLE HELPFUL?

Not Helpful