LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Measure Voltage Using NI 6001 and Calibrate Using LabVIEW

Solved!
Go to solution

How do I have a Reference value of 0 when there is no voltage supplied. I'm Using NI USB 6001 and Voltage Sensor of 25 volts.

also I need to Calibrate it.

0 Kudos
Message 1 of 29
(1,477 Views)

Hi tanmay,

 


@TanmayBoii wrote:

How do I have a Reference value of 0 when there is no voltage supplied. I'm Using NI USB 6001 and Voltage Sensor of 25 volts.

also I need to Calibrate it.


To apply a "zeroing"/tare feature you measure the signal of your sensor with no external signal applied, store the resulting value in a shift register and subtract from the following readings...

 

What do you want to calibrate?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 29
(1,452 Views)

Besides what GerdW said, the NI 6001 is limited to +/-10 Volts on its analog input.

 

You will need to use a voltage divider to scale that voltage to a range that is within the limits of the analog input.

 

Then apply that scaling factor to your measurements. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 29
(1,416 Views)

Hello GerdW,

 

Actually my motive is to measure voltage from a solar panel for my project. So, I'm Using a voltage sensor which measures upto 24v. we also know that NI USB 6001 measures upto -/+ 10v in analog input. but, as per the specification of the voltage sensor, the voltage is converted into factor of 5. which means for example if I supply voltage of 5v through the voltage sensor it gets converted into 1v by dividing factor of 5. so as per my code i added a multiplying factor of 5 to get accurate value. but, the values are fluctuating. so for that i added a smoothing filter waveform to get more accurate and less fluctuating value. I've also added a knob to make its value to zero without supplying any DC voltage.

given specifications of the voltage sensor :-

Input Voltage (V)

0 to 25

Voltage Detection Range (V)

0.02445 to 25

Analog Voltage Resolution (V)

0.00489

I can also understand that there will some amount of noise level in the reading

 

My only Doubt is that how to make the Filtered value to zero. like calibrating it take reading from zero

0 Kudos
Message 4 of 29
(1,378 Views)

Hi Tanmay,

 


@TanmayBoii wrote:

My only Doubt is that how to make the Filtered value to zero. like calibrating it take reading from zero


As said before: implement a tare function!

 

Mind to downconvert your VI for LV2019? I cannot give suggestions based on looking at an image of parts of the frontpanel…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 29
(1,373 Views)

Hello GerdW,

 

I've attached the Vi file to 2018 version. I hope it won't cause any issues.

 

 

0 Kudos
Message 6 of 29
(1,369 Views)
Solution
Accepted by topic author TanmayBoii

Hi Tanmay,

 

WTF do you do with that huge number of duplicated InRangeAndCoerce (and other stuff) functions?

What exactly do you want to achieve here?

 

Start with some simple approaches:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 29
(1,354 Views)

actually i was Calibrating for per 0.25 volts XD

0 Kudos
Message 8 of 29
(1,350 Views)

also just to check that how much variation is it giving for 0.25v to 21v

0 Kudos
Message 9 of 29
(1,346 Views)

Hi Tanmay,

 


@TanmayBoii wrote:

actually i was Calibrating for per 0.25 volts XD


No, you are manipulating measurement data in a way you never keep an overview of what you are doing…

 

"Calibration" is checking a sensor against a "know good" and "better" reference sensor!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 29
(1,331 Views)