LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

canalyzer previous state

Solved!
Go to solution

Hi,

 

For my CAPL I need to use previous state for a calculation.

For exemple b = a+(a-1) with a-1 = a's previous state and with a and b in float.

 

I declare my variable a and b but I don't know how to code previous state.

 

Thank you.

0 Kudos
Message 1 of 3
(2,111 Views)
Solution
Accepted by topic author ClaireD

You can use the shift register in a for loop and pull down the left side terminal of the shift register to the desired n- states. For your query you can do this way

 

 previous state.png

 

Good luck

-----

The best solution is the one you find it by yourself
Message 2 of 3
(2,104 Views)

okay. I had not thought of that.

 

Thank you !!

0 Kudos
Message 3 of 3
(2,100 Views)