cancel
Showing results for 
Search instead for 
Did you mean: 

change between cases

thess
Member

change between cases

Message contains an attachment
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
4 REPLIES 4
Christian Mergl
Trusted Enthusiast

Re: change between cases

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

jcarmody
Trusted Enthusiast

Re: change between cases

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

Highlighted
GerdW
Knight of NI

Re: change between cases

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
thess
Member

Re: change between cases

Message contains a hyperlink
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...