LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure following While loop

I have no idea what that means. The correct data type for  both ActPlot and Plot.Color is U32. This is clearly shown in the help for each property.

0 Kudos
Message 51 of 52
(988 Views)

colors in LV use a U32 to hold four bytes of information. The MSB is for transparency etc. The other three bytes store an eight bit fileds that represnet (working from MSB to LSB) RGB Red, Green Blue.

 

So valid colors have the low three bytes defining each of the colors with values between 0-255 so...

 

Use a random number to gen a value between 0-1 then multiply by 255 then convert these to U8's and then use the Join function to assemlbe these into a U32. There is also node on the Pictures palette that lets you asemble the three componenets into a color value.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 52 of 52
(986 Views)