> showing/hiding the controls. This process is a pain. There must be a
> better way. I'm new to this labview language and any help will be
> much appreciated.
>
Since I'm not sure exactly what you want to draw, I'll just cover a few
techniques that make animation and graphics easier in LV.
As you noticed, LV isn't an HMI package that started life as a CAD
program and then learned to program. It is a programming environment
that has some UI components for instrumentation. But it can do quite a
bit of graphics. I know of quite a few games that have been built using LV.
One key graphic piece is the ring control. For things that you don't
need to move around, but want to select between N images, Draw up the N
images in your favorite CAD, draw, or paint package, copy them, and
paste them in the ring control. From the diagram you can write the
index to the ring to show the appropriate image. This might be what you
want for your arrows -- one blank and several with arrows going in
various directions. Hopefully once you build the ring, you can use it
in a number of locations. Other tricks for rings. If the images are
masked, like pngs, or built using a drawing package, like EMFs, then
they don't have to be rectangular and you can layer these on top of one
another and get more reuse out of them. The rings and other objects in
LV also accept animated GIFs and MNGs. If you have a cycle of images,
you can make a GIF of it and add it to the ring.
Other controls people sometimes import graphics into instead of a ring?
A button is good for two states. Use the control editor to get the
images in. This works much better for controls the user should click
on. Sliders can have a custom thumb and housing, so making something
slide horizontally or vertically is sometimes easier and more reusable
like this than using property nodes. You might be tempted to do the
same thing with knobs, but it probably won't work the way you expect.
Another good trick is transparency. Layering a few objects is often
easier than programming everything into one. Placing a transparent
button over a graphic or a set of animating graphics can let the user
click and makes a simple diagram. You can also have one state be
transparent and another colored to show/hide things on the panel without
as many property nodes.
Another tool you will want to learn to use is Group and Lock. When you
have a couple objects that should stay together, select and group them.
If you have something like a background graphic, select it and lock it
in place so that it doesn't get in your way while editing.
Finally, some things are more easily done using the picture control.
The picture control is a 2D drawing surface you write to using the
picuture control icons on the diagram. They include a number of vector
commands for lines, circles, and boxes, but also include pixmap
functions. Most of what I described above can also be accomplished with
the picture control once you get the hang of it, and it is then just up
to what tool you want to use.
If you have more specific questions, just ask.
Greg McKaskle