LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a command library subvi

Solved!
Go to solution
I am making a user interface that runs different tests that involve some motion commands.  The motion commands are simply sending a string command to a DLL file.  Is there a way that I can group all of my motion commands (like move up, move down, stop, pump on, etc...) into one subvi and then call whatever command I need in the main vi?  I hope that makes sense.  Thanks
0 Kudos
Message 1 of 3
(2,944 Views)
Solution
Accepted by secr1973

Sure there is!   Smiley Very Happy

 

Oh yeah - you probably want the details...

 

Well one thing you can do is start with the VI you have now for talking to the device and replace whatever is feeding string to the IO routines now with a case structure. Next, put all the various strings in the case structure (one string per frame, please) and then wire an enum control to the selector node on the case structure. Finally, create an enumeration for each operation (move up, move down, stop, pump on, etc...). Now which ever string you select will be sent to the IO routines.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(2,935 Views)

"mikeporter" <x@no.email> wrote in message
news:1234307409188-850621@exchange.ni.com...
> and then wire an enum control to the selector node on the case structure.

And make the enum a type def, or you'll have to replace them all if you add
one item!

Regards,

Wiebe.


0 Kudos
Message 3 of 3
(2,915 Views)