Jump to content

Getting reference to remote VI inside built app


Recommended Posts

Is it possible to use VI server calls to get a reference to a VI inside a built application on a remote computer, if the remote computer does not have the labview development environment installed? I guess what I'm really asking is if the VI server is included in teh LV runtime engine or only in the development environment. I would be thankful for any answers :) .

/Gustav

Link to post
Share on other sites

Yes, this is possible..

Just make sure that you have an ini-file with the same name as your application's executable and make sure you enable tcp/ip access to your app. You can copy these settings from your labview.ini.

I think it's something like:

server.tcp.enabled=True

server.tcp.access=+*

to enable unrestricted access to your app.

Link to post
Share on other sites
Yes, this is possible..

Just make sure that you have an ini-file with the same name as your application's executable and make sure you enable tcp/ip access to your app. You can copy these settings from your labview.ini.

I think it's something like:

server.tcp.enabled=True

server.tcp.access=+*

to enable unrestricted access to your app.

Thanks, that sounds like exactly what I needed to know. And an impressively fast response too :) !

Link to post
Share on other sites
I got it to work, allthough I had no luck with the ini files so I used an application property node instead. Thanks!

You might have forgotten a piece that was omitted in the original post. If your application is called MyApp.exe create an ini file called MyApp.ini in the same directory and add:

[MyApp]

server.tcp.enabled=True

server.tcp.access=+*

Bascially the exact settings can be best configured in the LabVIEW development system and then copied over to your ini file but it is important to adapt the ini file header to match your application name. Leaving the VI server open entirely does not seem to be a very good idea to me.

Rolf Kalbermatter

Link to post
Share on other sites

Join the conversation

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

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