02-01-2021 11:25 AM
wiebe@CARYA wrote:
I also tend to get customers that not only want to have Boolean values, but also want my code to enable\disable them. That also rules out arrays.
Not really. 😄
You could use an array of color boxes, where "disabled" is just another color (Greyish). 😉 You can have many states (TRUE, FALSE, UNKNOWN, DISABLED, BROKEN, OFFLINE, etc.).
02-02-2021 02:53 AM
@altenbach wrote:
wiebe@CARYA wrote:
I also tend to get customers that not only want to have Boolean values, but also want my code to enable\disable them. That also rules out arrays.
Not really. 😄
You could use an array of color boxes, where "disabled" is just another color (Greyish). 😉 You can have many states (TRUE, FALSE, UNKNOWN, DISABLED, BROKEN, OFFLINE, etc.).
Not just Booleans... I need disabled strings and numerics as well.
Also, I use system controls, and a ring can't be populated with images at run time.
A trick to show\hide controls\indicators is to make one boolean state transparent, the other background color. Switching to transparent actually allows using the controls behind it, switching to background hides everything behind it.
It can get difficult when you want to show\hide and enable\disable an array of controls... The only solution is to do lots of subpanel and\or picture control magic, or to make enough controls\indicators and handle their state and position individually.
02-18-2021 02:06 PM - edited 02-18-2021 03:02 PM
Synchronizing a few booleans in a cluster might require
03-02-2021 11:33 AM
So we receive a short well formatted space delimited text string containing four numeric values. Apparently, we need to use a postcard worth of code to get these numbers.
We can probably guess how the string looks like and how to parse it on one single step, independent of localization.
03-09-2021 10:26 AM - edited 03-09-2021 10:27 AM
Count how many of four booleans are TRUE (Seen here)
(negating the inverted output is a classic double-negative...)
03-11-2021 02:48 AM
That indexing technique gets a +1 for creativity.
03-15-2021 01:18 PM
If you want to present a truly mysterious error to the user, it is best to create an error with code=0 and no explanation. 😄
03-15-2021 01:41 PM
I mean not quite that, more like: There was an error and nothing is wrong.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-15-2021 03:06 PM
@altenbach wrote:
If you want to present a truly mysterious error to the user, it is best to create an error with code=0 and no explanation. 😄
I would bet a kudos here and wherever AQ responds that , that right there is a default error ring backsaved for previous version;)
The rube rube goldberg is actually in the migration.
03-15-2021 04:57 PM
@JÞB wrote:
I would bet a kudos here and wherever AQ responds that , that right there is a default error ring backsaved for previous version;)
Really? There is a more proper error constant in the other case structure to the right. Back-saving would have affected both. I also have never seen a default error constant where the error is TRUE.