LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reinitilaising Enum control based on a condition.

Hi,

I need help with reinitializing one of my enum control to default value based on a certain condition. 

I am able to reset the VI but having a hard time resetting a specific control.

System mode is my enum control with 5 items. Idle is the default value for it. I want to make sure that if the below condition is satisfied, my system mode goes back to default value while the VI is running.

Satvikpai_1-1711581578883.png

 

Can someone help me with this? 

Satvikpai_2-1711581780389.png

 

 

0 Kudos
Message 1 of 2
(111 Views)

You are wiring a reference of the enum to the local variable and that makes absolutely no sense! Why not just wire a diagram constant instead? (In this case you can right-click the blue local and "create constant", then select the value you want.)

 

I recommend to do a few more basic tutorials. For example a "boolean equal TRUE?" just returns the boolean unchanged. Why do you have that green local? Where is the terminal of it?

 

We can typical offer more specific advice once you attach your code.

0 Kudos
Message 2 of 2
(97 Views)