LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Method for Getting the RTE version

Solved!
Go to solution

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?

0 Kudos
Message 1 of 7
(3,452 Views)

Hi,

 

may I refer to this thread?

0 Kudos
Message 2 of 7
(3,447 Views)

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).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 7
(3,439 Views)

Yes, Roberto, you are right - as usual - I somehow confused it with real time...  

0 Kudos
Message 4 of 7
(3,433 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 7
(3,430 Views)

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?

0 Kudos
Message 6 of 7
(3,421 Views)
Solution
Accepted by DBCepull

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.

Message 7 of 7
(3,412 Views)