05-07-2013 07:27 AM
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
Solved! Go to Solution.
05-07-2013 07:46 AM
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.
05-07-2013 07:51 AM - edited 05-07-2013 08:01 AM
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:
05-07-2013 08:04 AM - edited 05-07-2013 08:06 AM
Hi salah_m7,
you're looking for something like this?
----
ok, GerdW was quicker ...
05-07-2013 08:39 AM
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)
05-07-2013 08:40 AM - edited 05-07-2013 08:40 AM
05-07-2013 08:47 AM
05-07-2013 08:57 AM
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
05-07-2013 08:58 AM
05-07-2013 09:27 AM - edited 05-07-2013 09:28 AM