LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check battery

I have a Check battery VI, that was made to check the voltage of a battery but for some reason, I keep getting 5.12 volts to my excel chart when It clearly reads 6.7 volts on my multimeter. I looked at the code and it looks fine. I even measured the voltage on the USb 6009 and it reads 6.7 volts. Completely lost. I also use a shunt resistor to get the current on the battery

Download All
0 Kudos
Message 1 of 5
(2,637 Views)

What does the front panel of your VI say about the voltage the DAQmx Read is getting?

 

Is your DAQ channel set to read more than 5 Volts?  If it is set for +/- 5V, and you are inputting 6.7, then you are maxing out its range.  The A/D converter probably has a bit of overrange capability that its true max might be 5.12 V.

Message 2 of 5
(2,627 Views)

My DaqMX is getting 6.7 volts and when I measure the voltage with my multi metter it gets the same. I did check to see the maximum voltage and its set at 10v, show that shouldnt be the problem.

0 Kudos
Message 3 of 5
(2,613 Views)

What does the text file say before you import the data into Excel?

 

The data has to be changing somewhere.  You just need to break the whole path of data down into parts (from real electrical signal, to DAQmx read, to LabVIEW wires, to text file, to Excel) to figure out where the numbers change from 6.7 to 5.12.

0 Kudos
Message 4 of 5
(2,610 Views)

according to your vi, your default values are set to this...

orig.png

change you min and max values (0-10V)

Message 5 of 5
(2,598 Views)