03-08-2011 04:11 PM
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?
Solved! Go to Solution.
03-08-2011 05:09 PM
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.
03-08-2011 05:26 PM
thanks, absolutely epic