LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hello everyone

how to Store the last measured value of the sensor in a variable

0 Kudos
Message 1 of 6
(920 Views)

Hi johnalia,

 


@johnalia wrote:

how to Store the last measured value of the sensor in a variable


Use a shift register instead of a "variable".

THINK DATAFLOW: in LabVIEW wires/shift registers/feedback nodes are "variables"…

Best regards,
GerdW


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

can you please show me an example

0 Kudos
Message 3 of 6
(889 Views)

Go to ni.com and search. You can find many useful knowledgebase and documentation.

Using Shift Registers in LabVIEW

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 6
(872 Views)

... and next time please use a post subject related to the question. "hello everyone" is not a suitable subject.

0 Kudos
Message 5 of 6
(856 Views)

@johnalia wrote:

how to Store the last measured value of the sensor in a variable


The last measured value is stored forever in the indicator connected to it and will only change when a new value arrives.

 

If you want to keep the previous value AND compare it to the newly measured value, use a shift register or feedback node as already suggested.

 

You can dramatically increase the chances of a useful answer if you exactly define the problem you are trying to solve and attach your code draft (a vi, not a picture).

0 Kudos
Message 6 of 6
(854 Views)