08-03-2023 10:02 AM - edited 08-03-2023 10:03 AM
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
08-03-2023 10:14 AM
Use Channel Expansion, simply add another channel to the same task.
08-04-2023 03:53 AM
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?
08-04-2023 07:10 AM
Sorry, I wanted to say: I am NOT using LabView.