LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean coerce to a typedef

Solved!
Go to solution

I have a Boolean button that is typedef.  I'm doing a DOWHILE and checking that this boolean and an error cluster.  If boolean OR status is true I stop the dowhile.  The boolean button is showing a red dot...( coerce).  I can't find anything on coercing a boolean.  Do I need to worry that the boolean won't be coerced correctly?  If I do need to worry how do you coerce a boolean?

0 Kudos
Message 1 of 23
(3,974 Views)

@clint100 wrote:

I have a Boolean button that is typedef.  I'm doing a DOWHILE and checking that this boolean and an error cluster.  If boolean OR status is true I stop the dowhile.  The boolean button is showing a red dot...( coerce).  I can't find anything on coercing a boolean.  Do I need to worry that the boolean won't be coerced correctly?  If I do need to worry how do you coerce a boolean?


Is it a strict type def? I ran into this when putting a regular boolean into a strict type def boolean indicator (a custom display). Never had a problem.

 

Josh
Software is never really finished, it's just an acceptable level of broken
0 Kudos
Message 2 of 23
(3,966 Views)

Taking over someone elses code.  Don't think its strict...just typedef.

0 Kudos
Message 3 of 23
(3,954 Views)

It is..just a typedef.

0 Kudos
Message 4 of 23
(3,948 Views)

@clint100 wrote:

It is..just a typedef.


 

Post an igae for use to "look over your shoulder" but I suspect LV is just reminding you about the type def... no action reqired on your part.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 23
(3,943 Views)

@Ben wrote:

@clint100 wrote:

It is..just a typedef.


 

Post an igae for use to "look over your shoulder" but I suspect LV is just reminding you about the type def... no action reqired on your part.

 

Ben

 


Post an image for us so we can "look over your shoulder."  But, I suspect LV is just reminding you about the type def... no action reqired on your part.

 

-Google translate from beneese to english.

 

 


"Should be" isn't "Is" -Jay
Message 6 of 23
(3,935 Views)

...Post an image for us so we can "look over your shoulder."  But, I suspect LV is just reminding you about the type def... no action reqired on your part.

 

-Google translate from beneese to english.

 

 


Smiley Frustrated

 

After trying to find "beneese" in Google translate I came back to stare at this post. About five minutes latter I got it. Thanks for the auto-translate.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 23
(3,925 Views)

@JÞB wrote:

-Google translate from beneese to english.


 

Ben "the typo" Rayner

Message 8 of 23
(3,910 Views)

My question is why is a single boolean a type def?  That's just another useless layer.  If you are looking for a front panel sort of thing, a normal control would do the job.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 9 of 23
(3,892 Views)

@crossrulz wrote:

My question is why is a single boolean a type def?  That's just another useless layer.  If you are looking for a front panel sort of thing, a normal control would do the job.


 

I can think of one reason which you can feel to free to stomp on.

 

As a place holder for a strict type def.

 

Huh?

 

YOu can use a strict type def to force a GUI update but not with a normal type def. So the hack goes like this;

 

Edit the type def on the boolean

Change its look

change it from type def to strict type def

Apply changes (since they now strict the apperence is applied to all instance)

change back to normal type def.

Save all after saving the type def.

 

SO you get the appearence change only when you want to apply it everywhere and you are not restricted to the rules of a strict type def.

 

Does any of that need translated?

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 23
(3,886 Views)