Mikrobi Posted August 11, 2004 Report Share Posted August 11, 2004 Hello I have application made to exec state. (LV7.1, win2000) How could I send data to this from another VI using VIServer? Is it possible to do that? Let's say two VIs as execs and VIServer communication between them? regards Mikrobi Quote Link to comment
sam Posted August 11, 2004 Author Report Share Posted August 11, 2004 Treat the other exe like a llb and open a reference to the vi inside it. Quote Link to comment
Mikrobi Posted August 11, 2004 Report Share Posted August 11, 2004 Treat the other exe like a llb and open a reference to the vi inside it. 1396[/snapback] Could you explain ? Any simple diagram? regards Mikrobi Quote Link to comment
Michael Aivaliotis Posted August 11, 2004 Report Share Posted August 11, 2004 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? Quote Link to comment
Mikrobi Posted August 11, 2004 Report Share Posted August 11, 2004 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.