LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Zero

Hello,

 

At the moment i am putting values of a force sensor in a graph.

When i am going to use the sensor the start value should be set to zero so that i know how much force is applied.

Does anybody know a function for setting the current value to zero?

 

 

kind regards,

Jan

0 Kudos
Message 1 of 9
(4,049 Views)

Hi Jan,

 

simple "ZERO" feature: store a force value in a shift register and subtract it from all following force readings…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(4,043 Views)

i haven't found this feature yet

can you maybe show where i can find it?

 

0 Kudos
Message 3 of 9
(4,025 Views)

Hi Jan,

 

"shift registers" are a VERY BASIC LabVIEW concept. You find explanations in the LabVIEW help!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(4,008 Views)

yeah i know a bit about the shift registers, but can you lock a value?

because if the values change the 'locked' value should be subtracted.

 

 

0 Kudos
Message 5 of 9
(3,997 Views)

Hi Jan,

 

yeah i know a bit about the shift registers, but can you lock a value?

Yes, sure!

You could use a case structure (or a select function) to decide, which value to write into the shift register for the next iteration: use a new one or keep the previous one…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(3,992 Views)

Here's one possible way. This is really basic so I recommend continuing with the tutorials...

(Be aware of mechanical action settings too)

 

ZeroIt.png

0 Kudos
Message 7 of 9
(3,975 Views)

What you are asking for is often known as a "tare" function.  That term might help you when searching the forums.

0 Kudos
Message 8 of 9
(3,951 Views)

Often does sensors have a tare function...

 

If it's a pure analog value, it won't. If it has a communication protocol, it's likely.

0 Kudos
Message 9 of 9
(3,933 Views)