Jump to content

VI to exec and VI Server


Recommended Posts

You use the same method that you would normaly use when accessing a VI within the same labview.

Also, when communicating to another executable then you need to specify "localhost" as your servername. VI Server uses the TCP/IP protocol. TCP/IP communications between two executables require that each end of the TCP/IP link has a different TCP/IP port number. When the two VIs are running under LabVIEW, they are within LabVIEW (in other words, not communicating between executables or separate programs).

You can change the port number in the ini setting for that executable. The .ini file should have the same name and be in the same directory as the executable.

A typical ini file after the port has been changed on the executable looks like this:

[MyExecutable]

server.tcp.enabled=True

server.tcp.port=3364

server.tcp.access="+localhost"

Also, one more thing. If you want to test your code before you create an executable, you can launch multiple instances of LabVIEW. I haven't tried this but it's shown in this post in the FAQ:

Can I run multiple instances of LabVIEW?

post-2-1092249067.gif?width=400

Link to comment
Also, when communicating to another executable then you need to specify "localhost" as your servername. VI Server uses the TCP/IP protocol. TCP/IP communications between two executables require that each end of the TCP/IP link has a different TCP/IP port number. When the two VIs are running under LabVIEW, they are within LabVIEW (in other words, not communicating between executables or separate programs).

Also, one more thing. If you want to test your code before you create an executable, you can launch multiple instances of LabVIEW. I haven't tried this but it's shown in this post in the FAQ:

Can I run multiple instances of LabVIEW?

1400[/snapback]

Thank you a lot, works excellent!! :thumbup:

best regards

Mikrobi

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