07-27-2012 04:15 AM
Does anyone know how to write a software to get the computer name from Mac OS X Lion system by labview? I really have no idea about it. It's appreciated someone can tell me. Thanks!
07-27-2012 04:23 AM
Hi,
I don't know if it's the same than on PC, but with Windows version, this is trivial :
Hope this will help you.
Best Regards,
07-27-2012 08:39 AM
The Environment class apparently does not exist on the Mac. The snippet is broken and nothing like that appears in the menus.
It might be possible using Apple Events to query System Preferences >> Sharing >> Computer Name. I think Lion changes System Preferences to a different name.
Lynn
07-30-2012 06:44 PM
Hi,
How do you get the environment property? I cannot find it in my Labview version 2011.
07-30-2012 08:29 PM
I cannot find it either. Nor can I find any mention of it in the Help files.
Lynn
08-01-2012 11:35 AM - edited 08-01-2012 11:35 AM
Hi Everyone,
Here is the easiest way to get your computer name on OSX.
That is the System Exec VI.
Regards,
Matt M.
08-01-2012 03:39 PM
Matt M.,
Thanks.
I suspected that there might be some way to use System Exec that way but did not know the commands.
That works on my iMac. Apple apparently uses a strange ' (apostrophe) character because Johnson's iMac produces hex code display of three bytes for the apostrophe. When I edited the name to something else and then typed in an apostrophe again from the keyboard it shows up as an apostrophe (hex 27).
Lynn