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
(3,088 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
(3,069 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
(3,067 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
(3,061 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
(3,052 Views)