LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PICTURE CONTROLS - An ideia on how to create an manipulate multiple reactangles with only one DRAW RECT control.

Hi
Has anyone here try´d to explore the picture control sub VI´s?
I took a look inside these sub VI´s, and I found that they work by
concatenating the data contained on a cluster that has the parameters that
we wire on outside,plus an opcode, etc, with the picture line.

Now, one thing that has been keeping me busy for a while, is to find a way
to draw several identical features, rectangles for example, with diferent
colors and line types, at the same time on a picture indicator, without having to wire
one DRAW RECT control for every rectangle that I want to show and manipulate
on my picture.

So, I´ve been wondering about a way to start with an array of clusters containing
the parameters for each rectangle on each cluster, and then convert all this
information into one big cluster, organized in the right way, and send it to a picture
indicator using the TYPE CAST and CONCATENATE STRINGS controls, the same way the sub VI´s
do for just one rectangle.
This way, one just needs to increase elements in the array in order to create
more rectangles.
And by manipulating any values on the array, the corresponding rectangles would change accordingly.
Is this just an impracticable ideia, or can anyone see any good future on my words?
0 Kudos
Message 1 of 4
(2,842 Views)
Check out my posting from 4-3 in this thread.

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=5&jump=true

I think I may have answered your question before you asked it.

In that example I use the picture control to manipulate a bunch of rectangular images of booleans.

I hope this helps,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 4
(2,836 Views)
Well, I´m really impressed with the program you mentioned.
You let me completely obfuscated with it 🙂
0 Kudos
Message 3 of 4
(2,830 Views)
Thank you!

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,809 Views)