Jump to content

open LV via Application reference


Recommended Posts

Posted

Hi to everybody,

I am about to experiement a little about with application references.

I read that it is possible, to start applications or Frontpanels of VIs.

So I tried to do the same as with the VIPM:

calling the LV-IDE to do a masscompile with some VIs I have.

On my testcomputer I have a few LV-Version installed.

Out of LV11 I wanted to start LV 8.5 to do a masscompile.

But I failed doing so.

Is there a secred on how VIPM do calling the different LV-Versions via a Port-ID

or can somebody explain me how to program such a task?

Greetings

Spirou

Posted

Antoine: That JKI mass compile tool... I never saw it before. It is described as being for LV 8.0. There were a lot of issues in LV 8.0. Is that tool still relevant at LV 2012? Has the built-in mass compile come up to speed with the JKI tool? Or is there still a difference?

Posted (edited)

Good questions... I don't know the answers.

I can't edit my previous post, you're right, I should have described it differently.

I personally don't use the JKI Fast Mass Compile Tool but I know it exists and I thought it could help petit_spirou.

Edited by Antoine Châlons
Posted

I don't know exactly how VIPM deals with this but there are two external interfaces to VI server, either TCP or activeX. My thought is they would have to use activeX to be able to actually launch the application, but this would be Windows only.

Of course there maybe something I'm missing, you could also launch LabVIEW using system exec, but you would not be able to control it through this.

Posted

I don't know exactly how VIPM deals with this but there are two external interfaces to VI server, either TCP or activeX. My thought is they would have to use activeX to be able to actually launch the application, but this would be Windows only.

Of course there maybe something I'm missing, you could also launch LabVIEW using system exec, but you would not be able to control it through this.

While ActiveX has the feature to also launch the application server there is no reason why you can't use the TCP/IP interface, and I'm pretty sure they do that for multiplatform reasons. You simply have to first launch the executable with System Exec yourself.

The entire VIPM stuff is likely a bit involved and complicated, enumerating the installed LabVIEW versions from the registry, finding their install path, reading (and possibly manipulating) the according LabVIEW.ini file to find out the TCP/IP server properties and then trying to connect to it and in case of failure start it with System Exec and try again to connect.

But it's all doable although the details about timeouts to use when trying to connect can be a lot of trial and error.

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.