LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie - How to have two states update the same indicator?

I have an indicator one my VI panel. I am using a state machine design pattern. I want data from two mutually exclusive states to be able to populate the indicator with data so the state updates the indicator. How is that done?

0 Kudos
Message 1 of 4
(942 Views)

You can use a local variable.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
Learn LabVIEW

0 Kudos
Message 2 of 4
(939 Views)

Thank you. I should have explicitly mentioned that this is NXG.

 

No local variables in NXG but only in LabVIEW. I found what you have to do is right button click on an indicator and select "Create Duplicate Terminal". Apparently a duplicate terminal in NXG is like a local variable in LabVIEW.

 

I have worked through most of the NXG training online videos. Do you feel the LabVIEW training would still be useful?

0 Kudos
Message 3 of 4
(923 Views)

You can also keep the value in a shift register and update it outside the case structure. Wire it across in statesthat don't update it and modify it in the other states.

0 Kudos
Message 4 of 4
(911 Views)