02-01-2007 11:55 AM
02-02-2007 11:33 AM - edited 02-02-2007 11:33 AM
HI LarryO,
Specifying a trigger delay is not supported in DAQmx base, but you can easily work around this by acquiring the full data set and parsing out a known number of samples. Based on the number of samples and sample rate, you can calculate a delay. I modified the Acq&Graph Voltage-Int Clk-Dig Start.vi (Dynamic) by setting it to continuous, adding a while loop and implementing a delay with the Delete from Array.vi. You can change to sample size to fit your needs.
On subsequent reads when you don't want to remove the delay, you can use a case structure to bypass the delete from array. For your digital, I would combine the Write Dig Port (Dynamic) example with this to output based on your analysis.
Hope this helps, please post back if you have additional questions on how to implement this or if I need to clarify any of my suggestions.
Cheers,
Andrew S
National Instruments
Message Edited by stilly32 on 02-02-2007 11:34 AM
Message Edited by stilly32 on 02-02-2007 11:49 AM