02-10-2013 06:01 PM
battler,
The OS can be determined on a platform-indiependent basis by using property nodes. Property class: VI Server: Application. Then select properties from the Operating System group.
I have not tried to get access to MAC Address or disk serial number but those could probably be obtained from the System Information application via Apple Events or the System Exec function. In the Platform folder of vi.lib is a VI (on my Mac at least) called Get System Information.vi. It returns an array of clusters of two strings including all the serial numbers, MAC addresses, and so on. Internally it uses System Exec to call Apple's System Profiler. On my machine the array had almost 10000 elements.
Of course ActiveX and .NET are Microsoft products which are not supported on the Mac.
Another thing is that front panels need to be "tweaked." Font differences result in things moving around, overlapping, and being obscured when switching platforms. Staying with default fonts and sizes minimizes these issues but does not completely eliminate them.
I do not know of any documentation on conversion.
For new projects which may need to be cross-platform stick to defaults and avoid platform-specific functions and VIs.
Lynn