09-29-2010 05:36 AM
Hi, am using USB6009.
Would like to create
1) Analog Out channel to output a predefined waveform
2) Analog Input channel to measure input voltage
Both channel 1 and 2 have to be started simultaneously.
I tried to create both channels(1 and 2) in a same task, but it prompt me error as below:
code: -200559
message : Measurements: Task cannot contain a channel with the specified channel type, because the task already contains channels with a different channel type.
Create one task for each channel type.
What I would like to achieve here is to use channel (2) to measure signal from channel (1)
Question:
1) Can this be done in 6009?
2) If "No" for question (1), is there any other card(s) that I should choose?
Thanks.
Warmest regards,
Vincent
10-06-2010 06:00 AM
Hi,
Having looked at your problem I don't think it is possible, you will have to create two seperate tasks for AI and AO.
A different thread here is similar to yours: link
It won't depend on what modules you use, just seperating the two tasks would solve this.
When it comes to starting them simultaneously:-
This VI should help you out, let me know if you need anything else!
Regards,