LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure Multiple Voltage Channels

Solved!
Go to solution

Hi,

I want to measure two different voltages from two channels of one device.

I looked at multiple examples, which I understood. However, I still cannot figure out why my code does not work.

Here is a stripped down version.

 

Thanks for the help.

I use a USB-6211.

0 Kudos
Message 1 of 7
(4,045 Views)

What's wrong? What error do you get when you run your code?

What frquency & duration are you asking for?

 

By the way, in the code below, the top part is equivalent to the bottompart 😉

 

test_BD.png


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 7
(4,043 Views)

Thanks for the hint.

I connect a voltage signal to the first channel e.g. 5 Volts. There is no connection to the second channel.

When running the code, I read the 5 volts on both channels. I expected to have 0 Volts for the second channel.

0 Kudos
Message 3 of 7
(4,041 Views)

Hmmm... your code looks fine to me, I ran it (using a simulated USB device because I don't have any at hand) and I got different signals for chan 0 and 1.

Just to be sure, can you link the terminal of the second channel to the AI Ground terminal and retry?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 7
(4,037 Views)
Solution
Accepted by Jack_W

Thanks for trying, I just connected a second voltage signal  - now everything works fine!

It was probably a grounding issue!

Cheers!

0 Kudos
Message 5 of 7
(4,035 Views)

Ok, glad to see you found a solution.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 7
(4,032 Views)

Hey,

 

Please I am currenty working on a project and one of the current parameters that I'm trying to implement on seems simillar to what you worked on.Basically I have two robots (Tri-track and DANI), the DANI navigation will be automatically controlled by Tri-track by Tri-track sending some IR signals to DANI to follow. DANI will be measuring voltage from two different channels in order to align itself to the higher sensed voltage.

 

Please can you assist me on how to implement a vi for this? I looked at your vi and it seems to be something to do along that line.

 

Thanks for the help.

0 Kudos
Message 7 of 7
(3,874 Views)