06-14-2007 01:31 PM
06-15-2007 05:38 PM - edited 06-15-2007 05:38 PM
Message Edited by Yardov on 06-15-2007 05:53 PM
06-18-2007 07:53 AM
By 15 samples later, I mean Counter 0 measures it's 15 samples before Counter 1 measures it's first. So index 0 on counter 1 matches index 14 on counter 0. It is basically a need for a trigger to start both counters simultaneously. The problem occurs when I am trying to write the code to do this through Matlab. The only DAQmx digital trigger functions availbe through Matlab are:
DAQmxCfgDigEdgeStartTrig
DAQmxCfgDigPatternStartTrig
DAQmxCfgDigEdgeAdvTrig
I'm not sure which one is best suited for what I want to do. The one thing I can think of is to read (or route) in a slow square wave into a another channel and use an edge to trigger both counters. Does this make anymore sense?
06-18-2007 09:54 AM
06-19-2007 09:20 AM
06-19-2007 09:47 AM
06-20-2007 07:29 AM
%Start the task that measureThis way, you guarantee that both taskh1 and taskh2 will measure the same signal and not delayed.
[err04] = calllib('myni','DAQmxStartTask',taskh1);
[err14] = calllib('myni','DAQmxStartTask',taskh2);
%Now start the measured signal
[err25] = calllib('myni','DAQmxStartTask',taskh3)