04-14-2010 04:46 PM
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.
04-15-2010 01:47 AM
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.