Rolfe wrote:
> Casey - Did you ever find an answer regarding the meaning of the
> picture opcodes? I'm trying to make some custom plots using picture
> controls which need to update very quickly and which potentially
> contain many overlapping points. Using the provided picture
> manipulation tools is not an acceptable solution, since each
> overlapping point seems to be drawn separately and consequently the
> control takes too long to update. I tried working directly with
> pixmaps and converting these to pictures, but the pixmaps/pictures
> change very little between updates, whereas the picture must be
> entirely reconstructed from the pixmap on each iteration, which also
> takes too long. My next move is to try to manipulate picture objects
> directly, but it would be nice to have some documentation.
You can't do magic with those opcodes. It is simply a format NI defined
with the opcode defining what exact data follows in the picture byte
stream. There are no other secret opcodes than the ones you see used in
the subVIs to create Picture Control data.
What you should look at are two possibilities. First the Picture Control
can be used in a mode where it doesn't clear each time before adding new
data. The option "Erase First" in the pop-up menu controls this and you
have also access to this property through the property node. Disable
"Erase First" and then execute a property node "Erase First" with the
value 1 whenever you want to start with a new picture.
For the rest wire the new data to the subVIs to create the points and
wire that picture stream to the Picture Control. The new points, lines,
or whatever will be added to the already existing picture each time
without the need to draw all points again each time. If this is still to
slow the Picture Control simply won't cut it for you.
Or check out the 3D OpenGL examples for the Picture Control released by
NI a few weeks ago. This is however a newly added feature in LabVIEW 7.1
to the Picture Control. It is meant for 3D graphics but could possibly
be used to create other graphics.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390