From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Structure condition

Bonjour, 

 

J'aimerai savoir si il est possible d'intégrer un "OU" dans la condition d'une structure condition.

J'ai un menu déroulant de texte en entrée de ma structure composé de choix A, choix B, choix C.

Je souhaiterai alors faire:

Si j'ai le choix A ou le choix B, j'allume la led 1

Si j'ai le choix C, j'allume la led 2 (voir le programme en pièce jointe)

 

Avez-vous des idées ?

Merci par avance

 

Hello world,

 

I would like to know if it's possible to integrate an "OR" between two conditions inside the condition structure.

I configure a drop down menu of characters composed by three possibilities A, B and C.

I would like to do :

If I get choice A or choice B, I switch on the led 1

If I get choice C, I switch on the led 2 (open the attached software)

 

Have you got any ideas ?

Thanks

 

Gabriel Leroy

Download All
0 Kudos
Message 1 of 5
(2,675 Views)

Hi gleroy,

 

write the condition as "A", "B" instead of "A" or "B" - as is described in the help for the case structure!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,656 Views)

Or Case.png/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 5
(2,654 Views)

Ah, string. Listen to Gerd. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(2,648 Views)

Thank you

I will try it and I will tell you if it's ok

 

Have a good day

0 Kudos
Message 5 of 5
(2,639 Views)