All,
Given the code from the counter generate pulse, does anyone know how to trigger a voltage analog input collection using this pulse as the starting point? The two hardware modules for the counter and voltage input are on the same chassis. I want to queue the analog input and wait until the pulse is received. Then, generate the pulse when I choose, through say a button click, which will start the voltage collection at the same time. Needs to be through this pulse, as another device uses this pulse to start acquiring. Currently I start both tasks back to back in the code as such:
DAQmxErrChk(DAQmxStartTask(taskHandle2));
DAQmxErrChk(DAQmxStartTask(taskHandle1));
were task2 is my pulse and task1 is my AIvoltage, but this is off by a certain number of milliseconds.
Any advice would be appreciated. Thanks,