LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GUI: Implementing Previous-Button

Hello!

I have several SubVI's which all take effect on the
content of one cluster. Now I want to build a GUI
which calls all the SubVI's in an determined order.
Implementing the 'Next'-Button was no problem, but
I had some troubles with the 'Previous'-Button.

In Labview-Language the Previous-Button from one
SubVI calls this SubVI's caller. Does everyone
understand what I want to do with the Previous-Button?

The solution I found goes like this:
Open, call and close the SubVI's via VI-References
in a while loop. Test in each SubVI if 'Previous'- or
'Next'-Button was pressed and decrement (previous) or
increment (next) a counter. Return this counter to
the while loop. Call previous or next VI depending
on the actual coun
ter value (and forward the actual
counter to this VI). Exit the loop when the counter
reaches the upper limit. There is no lower limit for
the counter, because the first VI has got no
'Previous'-Button.

(Puuh, I am not used to write in english.)

It works - as far as I see. My question is: is there
a more intelligent/effective or better implementation
for such a 'Previous'-Button?

Any hints? Suggestions?

Uwe Stange
0 Kudos
Message 1 of 2
(2,314 Views)
I think you have made a description of what a state machine
is, a while loop with a shift register wired to a case
structure, where you put the different conditions. I also
think this is intelligent enough and very powerful too.
Best regards

Gorka


* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping. Smart is Beautiful
0 Kudos
Message 2 of 2
(2,314 Views)