LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change between cases

i have this vi diode-transistor. it should change from diode to transistor and back with the enum on the front panel.i ve looked in the forum for other people having the same problem and did what i found but nothing worked.  please take a look if you have the time and tell me what you think. thanks in advance
0 Kudos
Message 1 of 5
(2,873 Views)

Hey,

 

Please have a look at the statemachine or producer/consumer design patterns, I think this could help you.

You will need to place the enum inside a loop. In your code it will be read once, just at the start of your VI.

 

 

Christian

0 Kudos
Message 2 of 5
(2,866 Views)
I don't understand the question...
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 5
(2,846 Views)

Hi thess,

 

you used a RING and not an ENUM. They are NOT the same!

 

Anyway: you already wired it up. Where did you have problems exactly?

I would only remove those locals on the right side, just use wires from their terminals...

 

Additional note: I couldn't read a lot of your labels. What language settings are you using?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,828 Views)
i am from greece that's why. my labels are in greek. thanks for taking the time to have a look at it though. i just opened my pc again so i ll spend some time to look at it again and get back to you. thanks ag...
0 Kudos
Message 5 of 5
(2,810 Views)