Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Read multiple counters and analog inputs using the NIDAQmx ANSI C library in Visual Studio (USB-6211)

Hi, 

 

I am using an NI USB-6211 DAQ Device and I need to read 2 counters (ctr0 and ctr1) and two analog inputs (AI0 and AI1) simultaneously. Because I am controlling my motors in C in Visual Studio, I need to do that also in Visual Studio using the NIDAQmx ANSI C library. Nevertheless, I only manage to read either one counter or one analog input at a time. When I try to read two counters in the same time for example, it does not work. So my question is: Is it possible to read multiple counters and analog inputs simultaneously using the NIDAQmx ANSI C library? If yes, can you please provide me an example of program to do that?

 

Thank you in advance for your help.

 

Best regards,

 

Maxime 

0 Kudos
Message 1 of 4
(720 Views)

Use Channel Expansion, simply add another channel to the same task.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 4
(711 Views)

Hi, 

 

Thanks for your response but I am using LabView, I am coding directly in ANSI C. So how can I use channel expansion in ANSI C?

0 Kudos
Message 3 of 4
(678 Views)

Sorry, I wanted to say: I am NOT using LabView.

0 Kudos
Message 4 of 4
(662 Views)