06-23-2009 04:37 PM
Im new to Labview and I need some help setting up a VI to read and display voltage from a potentiometer. Im using a DAQcard 6046E and a SCXI-1322 module to connect my instruments.
The potentiometer is a 3 wire potentiometer. One reference is connected to a 5 volt DC power source, another reference is connected to ground and the wiper is connected to CH+0.
I am trying to use the DAQ assistant subVI but I do not know how to configure it correctly. When I configure it my voltage readings are completely wrong. How do I configure the DAQ assistant subVI correctly? Or is there a better way to create the VI using other functions?
06-23-2009 04:44 PM
What do you mean by the voltages are "completely wrong"? What are you expecting and what are you getting?
It doesn't sound like you are doing anything wrong. But it is hard to tell since you haven't attached the VI so anyone can take a look at it.
06-23-2009 04:47 PM
06-23-2009 05:31 PM
The potentiometer is connected to a linear actuator, so when the actuator is not extended I would expect the potentiometer to read 5v and when it is fully extended i would expect it to read 0v. The voltage data I am getting is constantly fluctuating even when I turn the external power supply off.
I have one reference of the potentiometer grounded, and the other connected to the 5V power supply so I guess that would be a single ended measurment if I understand you correctly.
This is what I am doing to configure the DAQ Assistant subVI:
-Analog Input
-voltage
-select the phsyical channel ai0 then click finish
-Change terminal configuration to RSE
-Signal input range -5 to 5
06-23-2009 05:39 PM
stizzle wrote:The potentiometer is connected to a linear actuator, so when the actuator is not extended I would expect the potentiometer to read 5v and when it is fully extended i would expect it to read 0v. The voltage data I am getting is constantly fluctuating even when I turn the external power supply off.
I have one reference of the potentiometer grounded, and the other connected to the 5V power supply so I guess that would be a single ended measurment if I understand you correctly.
This is what I am doing to configure the DAQ Assistant subVI:
-Analog Input
-voltage
-select the phsyical channel ai0 then click finish
-Change terminal configuration to RSE
-Signal input range -5 to 5
So what - if any- is the common point of referance between the DAQ and the Potentiometer?
06-23-2009 05:59 PM
06-24-2009 04:42 PM
Hello Stizzle,
I'm a little confused as to how your application is set up. First, you said you were using a DAQcard 6046e. Did you mean a 6036e? Also, are you connecting the DAQcard to a SCXI chassis? I'm not sure where the 1322 terminal block is playing a part. Lastly, what kind of potentiometer are you using? It sounds like you have a good understanding of how to set everything up. I just need to make sure I'm on the same page as you before we begin troubleshooting.
Regards,
06-25-2009 08:06 PM
06-25-2009 08:40 PM
Is the linear actuator or its controller always actively on when you do these measurements? Have you tried measuring the potentiometer with the actuator and its controller completely powered down?
I ask because I've seen situations where a there is a lot of AC or spiky noise introduced in the environment when the motor controller for the actuator is actively engaged.
06-26-2009 02:59 PM