Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

One Task having both Analog Out and Analog input coltage channels

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

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

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:-

  • Open LabVIEW > Help tab >> Find Examples...
  • Expand the 'Hardware Input and Output' folder > DAQmx >> Synchronization >>> Multi-Functional
  • Open the Multi-Function-Synch AI-AO.vi

This VI should help you out, let me know if you need anything else!

 

Regards,

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
0 Kudos
Message 2 of 2
(3,288 Views)