LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to make a binary image of a graded array of dots

I'm interested in creating a binary image that consists of a graded array of dots, like in the picture that I've linked, where the spacing is increasing between the concentric layers of squares. I created the example in layouteditor, a CAD program, however, I need to create that pattern for potentially hundreds of concentric layers of squares, and layouteditor doesn't seem ideal for this. A friend suggested LabVIEW could be more useful. I've done some searching and haven't found any suggestions. Can anyone advise me or suggest a simple way to do this in LabVIEW?

 

graded array example.png

0 Kudos
Message 1 of 2
(2,909 Views)

It's certainly possible, but you need to keep the following in mind:

 

  1. LabVIEW is a programming environment. That means you have to write code which will do what you want.
  2. You need to decide what the logic for generating the dots is.
  3. Having hundreds of squares could be a problem. Even if each dot is a pixel, you're still talking about an image which could be many thousands of pixels across. This can be an issue in terms of memory.

Assuming you know what the logic is, you could use the VIs in the picture control palette. You would need to write code which would iterate over an image (use a loop and a shift register to keep the current value of the image) and repeatedly add points to it. When you're done, you can use its VIs to save it as a BMP or PNG file.

 

Again, I feel that hundreds of squares with growing distances could be an issue. The picture control is not very efficient in how it handles memory and an image of that size might be too much for it. Haven't tried myself.


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,882 Views)