10-25-2021 08:44 AM
Hello,
I am trying to design a simple vi to update a indicator's value in the 1st condition, and keep the indicator's value the same (latched) in the 2nd condition. I tried to use a simple formula node and it doesn't work. The indicator always reset its value to zero in the 2nd condition. Can anyone help me to achieve this function ?
Thanks,
Charlie
10-25-2021 08:53 AM - edited 10-25-2021 08:54 AM
I would just not use the Formula Node. You can use the Greater? primitive to do the comparison and a Select primitive to choose the value to set to C. I would also store the C value in a Shift Register so I could use the value in the FALSE case of the Select.
10-25-2021 10:27 AM
Hi crossrulz,
Thanks a lot for the suggestions. The Shift Register is the magic and it works !
Cheers,
Charlie
10-25-2021 10:40 AM
Also, you should use native structures instead of the formula node. One option was the Select node mentioned earlier the other would be to use the Case structure.