LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a multiple OS program

I am trying to create a vi that can run on Mac, Linux and Windows OS.  I would simply have the user select their OS at the outset of the program and then throughout the program when different subvis are necessary for the specific OS a case structure would be used.  Is there any way that I can run the program with unexecutable subvis in certain cases that are not being used (ie., Mac subvis will be unexecutable when a windows OS is in use). 

 

Thank-you for your time - I really appreciate it.

0 Kudos
Message 1 of 2
(2,361 Views)

The Conditional Disable Structure will be your friend here. Though in earlier versions of LabVIEW, it complained if it couldn't load code in the currently disabled cases. Not sure if 2009 improved on that.

 

I usually solve this problem by calling the appropriate VI dynamically through VI server.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(2,342 Views)