09-12-2014 01:28 AM
Hi everyone
my mission includes two DAQ task, one is AI (voltage input), the other is DO(counter PWM outpu
in a word, the recording (AI) is a little longer than generating (DO).
for clear description, there are three episodes,
1. recording began and last 50ms, at 1000Hz rate,
2.the PWM generation began after recording began 50ms, the PWM frequency and duration could be set by a controler, meanwhile, t
3.when the PWM output ends, the recording keep last 100ms, then recording completes.
the point is that the recording couldn't be disrupted by the PWM in the whole mission.
How could I arrange the two task ?
my card is a M series one.
THANK YOU advanced
09-12-2014 01:49 AM
- Setup the two tasks
- Start AI task and Read 1D array of 50 values (samples)
- Start DO task.
- Poll Task complete in a 0ms wait loop
- wait 100ms
- Read AI task 1D array with -1 samples (grab all)
/Y
09-13-2014 02:45 AM - edited 09-13-2014 02:59 AM
Yamaeda 已写:
- Setup the two tasks
- Start AI task and Read 1D array of 50 values (samples)
- Start DO task.
- Poll Task complete in a 0ms wait loop
- wait 100ms
- Read AI task 1D array with -1 samples (grab all)
/Y
Thank you very much! Yamaeda.
I am freshman. May I ask more clearly?
1.Do you mean that it doesn't obey syntax? when a task line include more than one "DAQmx read.VI", and as a matter of affect, the recording isn't interrupted between two DAQmx raed.VI?
2.How to merge the the two"read.VI" output in one awaveform chart rather display them separately in two chart?
3.How to insert a wait in the DAQmx task? use a sequence structure with a "programing/time/wait" or a "time delay express VI"?
thank you again!