LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant to data boolean

Hello everybody,

I want to convert a variant data  into boolean. I use the Variant to Data control, but in order to extract the boolean data, I assume, I need to provide it with the type of the data I want this conversion to be performed (boolean, that is). There 's a terminal to do so, but I don;t know whether I should use a constant (what's the numerical constant for the boolean type) or what sort of boolean constant I should link the terminal with? Shortly, I don't know what I should link it with.
THere's an enclosed picture coming with the post.
Thank you,
Dana
0 Kudos
Message 1 of 11
(3,932 Views)
Wire a True constant or a False constant (Functions palette >> Boolean). This constant is only used to set the expected data type but its value is meaningless.
Message 2 of 11
(3,927 Views)
Hi JB,

I tried so, and doesn't work.
In essence, I have 12 cases frames, and I want them linked to the same Stop button.
I have the code attached,
Thanks for the idea.

Dana
0 Kudos
Message 3 of 11
(3,921 Views)
Hi Dana,

you too create new threads when not needed. Please stick with your original one...

What's the mechanical mode of your stop button?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(3,916 Views)
Yes, let's limit our answers to the original post.
0 Kudos
Message 5 of 11
(3,913 Views)

THAT saved me some time! THANKS!

One should welcome adversity as an opportunity to excel.
0 Kudos
Message 6 of 11
(3,060 Views)

More than a decade later...

This is funny !

Message 7 of 11
(3,046 Views)
0 Kudos
Message 8 of 11
(3,040 Views)

Move common things (check button loop, writing into message) out of the case. In this particular case leave only message selection there. 

Add 100 ms wait to the loop not to kill CPU.

Learn what is data flow. Apply good patterns to reduce block diagram size to screen.

Damn, I am grave digging, sorry.

0 Kudos
Message 9 of 11
(3,029 Views)

Nice... 

 

I'll check the dates next time. 

 

It's fun being made fun of for being polite though.

One should welcome adversity as an opportunity to excel.
0 Kudos
Message 10 of 11
(3,019 Views)