LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LED indicator and control

Hai
I attached my vi, please give me an idea how to do this.

My input data is Hexa decimal format, when i send this HEX data it will convert to binary & displayed on LED ON or OFF,

Now If  i click on the LEDs  it should generate the  data according and display in the generated data  indicator

Example i am sending data 00 00 00 00 00 00 00 0f  so the leds R56, 57,58, 59 will be RED
when i click R52, 53, 54, 55 LEDs it should generate this data 00 00 00 00 00 00 0f 0f

how to do this,  give me an idea
thanks
sasi
0 Kudos
Message 1 of 4
(3,006 Views)
Hello sasi,

I would make an array out of all the LEDs - much easier to maintain than 60 single indicators.
With the array all you need is to get the right elements (Index array or Array subset) and format them to your number/hex string.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,998 Views)
Hello sasi,

just a comment on your block diagram...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,996 Views)
Hello,
 
I have attached a simple VI which does the LEDs to String conversion for you - I leave it as an exercise to create the inverse operation you are looking for.  Please study the code carefully as the techniques there should help you understand the operation in that direction, and hopefully will lead you to the other direction.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 4 of 4
(2,971 Views)