ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean Logic

It's not so much of a LabVIEW issue... more of a logic issue, it's late in the day and my mind is mush at this stage. Here's my desired functionality;

 

I read two controls in a loop labeled: Boolean and Boolean 2 respectively. Boolean is initialized to true.

 

If Boolean 2 is pushed, then Boolean should go false and Boolean 2 should go true.

 

Likewise if Boolean is pushed, then Boolean 2 should go false and Boolean should go true.

 

There should never be a case where the two buttons are both false or both true.

 

I've tried many combinations of boolean logic both in labVIEW and on paper but can't come up with a solution as of yet and am looking for a pointer.

 

VI attached and I apologise for the unimaginative control names.

 

Strokes

0 Kudos
Message 1 of 6
(3,295 Views)

You could use radio buttons.

 

This isn't really a boolean logic question, just a user interface question.

 

What you need to do is use local variables or property nodes to set the other boolean.  Better yet would be to use an event structure.

 

Message 2 of 6
(3,287 Views)

Hi strokes,

 

ever tried those funny items named "radio buttons"? 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 6
(3,284 Views)

AHHHHHHHHHHHHHHHHHHHHHHHH radio buttons. I knew I learned about them for some reason in college...

 

Anyway I can get rid of the border around them in the Modern control/indicator palatte? I've tried translucent brush. I think it may only be possible to get rid of a border when choosing from the Classic panel if I remember correctly but not sure...

0 Kudos
Message 4 of 6
(3,272 Views)

Correct.  Transparent brush on the radio button container from the classic palette.

Message 5 of 6
(3,269 Views)

Correct2: Transparent brush on the radio button container from the modern palette. Remember to set both colors (FG/BG) to transparent...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(3,263 Views)