Jump to content

Calling LabVIEW Using ActiveX


Recommended Posts

I have noticed that when you call the LabVIEW developement environment using ActiveX it will only open a reference to the last used version of LabVIEW. Is there a simple way to call the version you want. I can think of two ways, but they are not very pretty. One is to open the version of LabVIEW using the call exe function before calling the ActiveX open (haven't tried this, so I don't know if it will work). The other is to update the registry so the ActiveX call thinks the last LabVIEW opened was the one that you want. Isn't there a simple way out there?

The target application I am thinking of using this functionality are tools that can save vi's in any version, but the entire tool is written in only one version. It would be an EXE that calls out to the LabVIEW development environment using ActiveX for the save.

Thanks for any inputs.

Link to comment
Have you tried invoking the server object with the desired version? For example, "LabVIEW.Application.7.1" instead of just "LabVIEW.Application".

Saludos,

Aitor

Yeah...you can't really do that. You can't really force the activeX through the registry, or by calling the exe first and then calling the activeX. It will call the LabVIEW version that was first opened when multiple versions are opened, the version that is open if you are just using one version, and the last called version if you call the ActiveX from an EXE with no versions open.

The way we are going to use the function though I think it will work as long as they don't have more than one version of the devlepment environment open. It will use the version that is open that they are calling the EXE from.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.