ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

circle LED

Solved!
Go to solution

Hello everyone 🙂

 

please I need to know if anybody had done before an algorithm or a vi that ,given the value of the radius, can display a circle using leds (boolean terminal) in LabVIEW like the picture in the attachement

cercle_discret.jpg

0 Kudos
Message 1 of 18
(5,160 Views)

No.  But you ought to be able to do it with a 2-D array of booleans, and some simple math using the index values to determine whether a boolean should be on or off based on the equation for a circle.

0 Kudos
Message 2 of 18
(5,152 Views)

Hi,

you might use a 2D picture for that purpose: draw a circle in a picture and display it in a picture indicator. If you really need to use an array of LEDs you can convert that picture to a black/white pixel array that in turn will be displayed by your array indicator:

 

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 18
(5,148 Views)
Solution
Accepted by salah_m7

Hi salah_m7,

 

 

you're looking for something like this?

 

 

----

 

ok, GerdW was quicker ...

 

 

 

Download All
Message 4 of 18
(5,138 Views)

Thank you for all your answers 🙂

 

but I have LabVIEW 2010 I can't open LabVIEW 2011 files, I've tried to build a block diagram like you've mentioned in the pictures but I've some errors & I don't know why (in the bundle I can't put the cluster control)

0 Kudos
Message 5 of 18
(5,114 Views)

Hi salah,

 

use my snippet...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 18
(5,111 Views)

Thank you GerdW 😄

 

Thank you for the link 🙂 , this is the first time to use a snippet

0 Kudos
Message 7 of 18
(5,097 Views)

I'm sorry, I've understood that we can convert a snippet to a vi xD

 

I've the same problem with the code because i can't put an empty cluster, if I create a constant cluster it came with 4 integers

0 Kudos
Message 8 of 18
(5,088 Views)

Hi salah,

 

the snippet has known problems with cluster constants. That's why I wrote my comments next to them...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 9 of 18
(5,088 Views)

@GerdW wrote:

Hi salah,

 

use my snippet...


 

o_O I never knew about this ... ! this is such a great feature!

0 Kudos
Message 10 of 18
(5,071 Views)