LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I determine which version of windows os is installed on the computer that my application is running on.

I need to determine which version of windows os in on the computer running my application to make some minor adjustments to a subvi.  Is there a programmatic way to determine this using Labview.
0 Kudos
Message 1 of 7
(5,432 Views)
Place a property node (App control palette) on the diagram and select the Operating System>>Version Number property.

___________________
Try to take over the world!
Message 2 of 7
(5,430 Views)
Thanks,
 
madg
0 Kudos
Message 3 of 7
(5,425 Views)

For posterity, I found it useful to map the version number to the actual name of a Windows version. That information is here:

 

Operating System Version

0 Kudos
Message 4 of 7
(4,769 Views)

Or, use the Application property node Application>OS>Detailed Name.  Although I can't say anything about its output on other-than-Windows OSes.

 

By the way, I think you win the "reviving old thread" award today Smiley Very Happy

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 5 of 7
(4,759 Views)

See attached VI.  depending on your admin rights you might have to add command to run as admin.  Tested on both Windows 10 and Windows 7 and works.

0 Kudos
Message 6 of 7
(4,394 Views)

dj_tony_0-1645092646951.png

shrink down to this. due to lacalization of windows that change, for example, "system type" in "Tipo sistema: x64-based PC" in Italian.

btw it works. thanks.

-------------------------------------------------------------------------------------
CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 7 of 7
(2,460 Views)