05-25-2012 07:02 AM
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.
Solved! Go to Solution.
05-25-2012 07:07 AM
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 😉
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-25-2012 07:12 AM
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.
05-25-2012 07:20 AM
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
05-25-2012 07:22 AM
Thanks for trying, I just connected a second voltage signal - now everything works fine!
It was probably a grounding issue!
Cheers!
05-25-2012 07:24 AM
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
02-25-2013 07:46 AM
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.