|DAQmx_Val_DoNotAllowRegen||10158||Do not allow NI-DAQmx to regenerate samples the device previously generated. When you choose this value, NI-DAQmx waits for you to write more samples to the buffer or until the timeout expires.|
Message Edited by Otis [DE] on 12-19-2005 03:37 PM
Message Edited by Otis [DE] on 12-19-2005 03:38 PM
As stated in an earlier post, if you want this type of behavior then you would be best suited to using a counter/timer board. However, since you need to use digital lines, you will have to use the Non-Regeneration property in order to not keep repeating the Sync pulse in your output operation. That means that you cannot begin outputting the pulse with the onboard information, so you will have to keep writing new data to your output.
If you decided to just use onboard regeneration, then you can either not include the DAQmxGetWriteRegenMode(TaskHandle taskHandle, int32 *data); line of code, or set the data to DAQmx_Val_AllowRegen.