....
> I've tried all sorts of things but have so far been unable to figure out
> how to do the menu/push button type interface using LabView. I tried to
> write a VI which has a single boolean control (switch until released
> mechanical action, the type which mimics the stand alone mode) which
> increments a digital indicator by +1 with each press, whilst still running
> the VI. I thought that if I could achieve this then I could do what I
> wanted to do using LabView. But I've not been able to do this simple
> thing!
>
Start out with the single Boolean VI. Switch from a switch to a latched Boolean.
In particular, the Latch on Mouse Down, or the Latch until Released. The
first will be read once and pop back up when read by the diagram. So it will
be read on
ce unless the mouse is pressed again before the diagram reads
it. The
second will be read at least once, but will stay True until the mouse
goes up,
and the diagram reads it.
After this, you will likely want to build an array or cluster of these buttons
so that this is easier to manage. Then surround this with a cluster or array
of string controls.
Now that I've told you how to do what you are asking for, I'd highly recommend
another approach. The technique of reusing buttons for lots of actions is
being used by the HW because that is what choice they have. It isn't possible
for them to add more buttons, bring up dialogs, etc. It took many
man-years for
someone to build the interface to your instrument. You probably don't need
all of the functionality duplicated on the remote computer. You
probably need
access to a dozen or so actions. Work on a decent panel using rings, buttons,
sliders, or whatever makes sense to see on the computer screen. Then
use VISA,
GPIB, or whatever
transport you are using to communicate with the instrument.
Don't worry as much about how the instrument looks, worry more about the options
and the results that you need to present on the computer.
Greg McKaskle