From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to acquire from two different channel in vb.net (NI USB-6211)

I'm trying to acquire simultaneously from 2 different channels (from two different sensors). Do you have a VB.net example for this? There is nothing about this in the examples given with DAQmx.

 

I tried writing "dev1/ai1:2" in an example. There were two columns of results but the voltage was the same for both columns.

0 Kudos
Message 1 of 2
(885 Views)

Did you solve your problem?

It's quite easy. Your example should work.

This also works, when channels are not in a row:

"Dev1/ai0:3,Dev1/ai5"

 

If the values are the same for the different channels, you have another problem. Perhaps you are using the same reference type in sequence but this is hard to tell.

0 Kudos
Message 2 of 2
(642 Views)