02-15-2012 01:18 PM
Using LW/CVI 2010 SP1.
Is there a method for getting the version of the currently running RTE? I've used GetCVIVersion() to return the version of the LabWindows/CVI Run-time Libraries, but that doesn't offer a clue as to the Engine being used.
Anybody else ever need this?
Solved! Go to Solution.
02-15-2012 02:01 PM
02-16-2012 12:05 AM - edited 02-16-2012 12:07 AM
What's the matter with GetCCVIVersion? It should return the version of the (unique) RTE that is installed in the system. Unlike LabVIEW, CVI maintains only one version of the RTE in the system, which is backward compatible across versions: every time you install the CVI environment or run an installer build with CVI, it will check the installed RTE and replace it with its own release if newer than the installed one in the system.
GetCVIVersion returns the RTE version multiplied by 100 (i.e. for CVI8.5 it returns 850, for CVI 2009 it should return 900 and so on).
02-16-2012 12:47 AM
Yes, Roberto, you are right - as usual - I somehow confused it with real time...
02-16-2012 01:47 AM
Actually I have to correct myself: 900 is returned for CVI9 RTE, while 2009 returns 910, 2009 SP1 returns 911 and 2010 SP1 returns 1001.
There actually exists also GetCVIVersionYear () function that returns in a string the release for year-based versions of CVI (i.e. from 2009 on): it appears not to reflect the service pack installed, though.
02-16-2012 06:46 AM
What I'm looking for is a method of determining what RTE is RUNNING the current application. I have some applications accessible from a network which can be run from a client that has no RTE installed. The apps find their RTE on the network drive local to the application. So getting the currently installed RTE for the client machine is not desirable.
Exactly where does the GetCVIVersion() function get its information?
02-16-2012 08:54 AM
GetCVIVersion and GetCVIVersionYear return the version information for the RTE (cvirte.dll) that you are calling - that is the RTE that is RUNNING in your application. Basically, the version information is embedded in the RTE DLL's implementation of these functions and when you call these functions, they return the embedded information. You are NOT getting the version of the installed RTE.