LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use the boolean data of a cluster as a byte

Solved!
Go to solution

Hi Laian,

 

as you forgot to attach your VI with some meaningful default data set in a control I cannot explain what "doesn't show in your cluster"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 14
(471 Views)

Hiiii everybody

Finally I did it 🙂

Thanks you all and Mr GerdW.

I have attached my VI for every one that may have the same problem in the future

Also again I m keen to get any advice for improvement

Thanks

0 Kudos
Message 12 of 14
(448 Views)

Hi Laian,

 

I strongly suggest to improve your VI.

 

Ideas:

1. Replacement to your conversion from string to your boolean cluster. No need to set an iteration count for the loop, no need to create a 2D boolean array, no need for ReshapeArray…

 

2.

Why do you need so much code to convert the boolean cluster into a string again? Why do you use a while loop when you need a FOR loop? Why does that button had no label? Why does that loop(s) spin as fast as possible just to burn one CPU core?

 

On your overall VI: you really should implement a state machine!

I also think there will be a better UX when you would present those 160 switches in a different way to the user…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
Message 13 of 14
(423 Views)

Hi Mr GerdW

as you said I have used state machine. but it is for another device and has a little bit change

Is there any advice for improvement? 

Thanks

0 Kudos
Message 14 of 14
(387 Views)