LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two DAQ tasks in a certain sequnce

Hi everyone

 

my mission includes two DAQ task, one is AI (voltage input), the other is DO(counter PWM output). the problem lie in the somewhat time sequence. that is,

 

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, the recording go on

 

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

0 Kudos
Message 1 of 3
(2,316 Views)

- 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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(2,311 Views)

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!

0 Kudos
Message 3 of 3
(2,272 Views)