cancel
Showing results for 
Search instead for 
Did you mean: 

circle LED

SOLVED
salah_m7
Member
Solved!

circle LED

Message contains an image

Hello everyone Smiley Happy

 

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

17 REPLIES 17
RavensFan
Knight of NI

Re: circle LED

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.

GerdW
Knight of NI

Re: circle LED

Message contains an image

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
alexderjuengere
Active Participant
Solution

Re: circle LED

Message contains an attachment

Hi salah_m7,

 

 

you're looking for something like this?

 

 

----

 

ok, GerdW was quicker ...

 

 

 

salah_m7
Member

Re: circle LED

Thank you for all your answers Smiley Happy

 

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)

GerdW
Knight of NI

Re: circle LED

Message contains a hyperlink

Hi salah,

 

use my snippet...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
salah_m7
Member

Re: circle LED

Message contains a hyperlink

Thank you GerdW Smiley Very Happy

 

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

Highlighted
salah_m7
Member

Re: circle LED

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

GerdW
Knight of NI

Re: circle LED

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
alexderjuengere
Active Participant

Re: circle LED

Message contains a hyperlink

@GerdW wrote:

Hi salah,

 

use my snippet...


 

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