LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What's the proper way to do this cross-platform app?

Solved!
Go to solution

hey y'all

 

I'm making a multimedia app  with LV2010 and I'm trying to make it cross platform (win and mac os x).

 

The functionality I need requires the use of  system libraries, I have access to somewhat similar functions in both OS's

(winmm.dll in windows, coreMidi.framework in mac OS X)

 

Except for the  actual system calls  the VIs will be identical.

 

I can make the VI work in either platform by using the  call library function node,  but  i don't want to  have two copies of everything.

 

I've tried  doing  a  wrapper sub  VI that puts  the  call library function node  in a case statement  and detect the OS but this VI will not be  executable because of dependencies (won't find the  library referenced in one of the cases. depending on the OS executed)

 

Is there any way  I can specify  which subVI's to load  on a project or something to  get this whole dependency issue sorted?

 

 

 

 

 

 

0 Kudos
Message 1 of 3
(2,610 Views)
Solution
Accepted by topic author jeds

You want to wrap the platform-specific code in a Conditional Disable structure, with one condition for each supported platform.  The OS symbol is already defined; see the help for Creating Conditional Disable Structures, which lists the pre-defined symbols and values.

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

thanks, absolutely epicRobot Happy

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