12-09-2011 03:02 PM
I'm running into an issue trying to find out the current OS... I'm running LV2011 on Windows 64bit Professional and I'm getting "Windows95/NT" back, any ideas why am I not getting "Windows x64" back instead?
Please advise,
<<-N->>
12-09-2011 06:06 PM
@<< - N - >> wrote:
I'm running into an issue trying to find out the current OS... I'm running LV2011 on Windows 64bit Professional and I'm getting "Windows95/NT" back, any ideas why am I not getting "Windows x64" back instead?
I see the same things and only get "Windows x64" using 64bit LabVIEW. I guess 32 bit LabVIEW runs on on wow64 which looks like a 32 bit OS to the application.
Just guessing... 😉 I am sure somebody else will have a more definite answer.
12-09-2011 10:26 PM
As Christian said, LV 32 bit will always report it is running on a 32-bit OS.
If you are just trying to determine if you are on a 64-bit OS, then you need to check two things. The architecture, and WOW64. Look at this post. The ZIP file I posted includes two files in the WINAPI directory. One checks for WOW64 and the other checks for architecture. If you know you will always be running 32-bit LabVIEW, then you can just check for WOW64. If you might update the code to LV 64 bit at some point, you will also want to look at the architecture, because 64-bit LabVIEW will not report it is running WOW64.
Look at the last post in the threa di linked for further instructions as to the VIs to use to determine if you are running on a 64-bit OS.
12-10-2011 02:33 AM
I've asked a similar question before.