Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous operation of AI and DO

Hi,
In my application I am using a AI and DO of a DAQ card. I want AI and DO operation in indpendent loops(parallel operation). Is it possible to achieve this? Do you have some sample vi's for the same.
 
Regards
Gopal
0 Kudos
Message 1 of 5
(3,412 Views)


I want AI and DO operation in indpendent loops(parallel operation). Is it possible to achieve this?
Yes, this is possible

I do not have any example vi's at hand to demonstrate this

but probably, you can choose a continous Analog measurement vi and Digital generation vi that you will find in example vi's shipped with LabVIEW, merge these to a single vi and achieve this

Message 2 of 5
(3,396 Views)

Hi Gopal,

 

Thank you for posting to the NI forums.  Which DAQ device and driver are you using for this application?  Also, could you give some more general background on the reasoning behind using two independent while loops rather than a single loop?  Keep in mind that if you want the AI and DO synchronized, they won’t hardware timed due to the separate while loops.

 

With some more information, I’d be glad to offer some recommendations or even a sample VI.  Thanks!

 

Ed W.

Applications Engineer

National Instruments

0 Kudos
Message 3 of 5
(3,379 Views)

Hi,

In my application, I need to constantly monitor a voltage signal on my AI. I could do this sequentially, but I prefered to have the DIO operation independent of the AI. Thus I planned to use two loops where in have my voltage monitoring in one and the DIO operation on the other.

Regards

Gopal

0 Kudos
Message 4 of 5
(3,328 Views)

Hi Gopal,

 

Again, it would be very helpful to know which DAQ device and driver you are using.  I would recommend getting started using the LabVIEW Example Finder.  I’ve attached a sample program – it simply consists of two LabVIEW example programs placed into a single VI.  But keep in mind that these two loops are not synchronized at the hardware level.

 

Ed W.

Applications Engineer
National Instruments

0 Kudos
Message 5 of 5
(3,310 Views)