I'm an experienced programmer, new to Labview, and struggling with how
to do simple things.
I'm trying to create a momentary push-button, where when you click the
button, it performs some action. In my case, I want it to execute a
method in an ActiveX COM object, but the action doesn't much matter,
it's the button logic that gets me.
The only way I can see to do this is like this: Make the button
mechanical action Latch when pressed (or latch when released). Tie the
button output to a while loop , and make the loop "stop on true". Add
a wait till next ms multiple timer to the while loop, not connected to
anything except an input with, say 50 mS constant. Run the automation
refnum wire through the while loop, not connecting
to anything in the
loop, but tunneling through it, and then connecting to my ActiveX
method (outside the while loop). Then put this whole thing in another
while loop, that runs forever, or perhaps is tied to the "power"
switch.
OK, that seems to work, but it seems like a remarkably complicated way
of doing something that is very simple, and very common. Is there an
easier way? What am I missing?"
I have looked through the manuals and help files (LV 6), with no
success. I have also looked through the examples, and have not found
one that seems to do what I need. If it's there, please point me in
the right direction.
Speaking of examples, I find the examples hard to learn from. Is there
a way, when looking at a diagram, to tell what function a particular
icon performs? If you're new to Labview, you don't know the symbols,
and there's no fly-over help or other way, that I can see, to tell
what tool or function corresponds to a particular tool (other than
searching through the toolbars
).
Thanks for your help,
--
Frank Hamilton
Please reply to the group