03-17-2016 06:46 AM
Hello All,
I'm fairly new in Labview.![]()
I'm trying to communicate 2 VI in the same computer using STM function. One VI are collecting the data via DAQmx, and send it over using STM function, while the other VI read the data from STM and plot the data in the waveform graph.
However, I got the problem on the very beginning of the program. The client always get an error on establishing connection with the server with error 56. I tried to change the port number, change the timeout, and check the available port using command prompt, and yet, the problem still appears. The current port I used is free and still not running. Is there any suggestion for my problem here?
Thank you!
Regards,
Stefan
Solved! Go to Solution.
03-17-2016 07:19 AM
Do you have the Server.vi running before you start the Client.vi?
03-17-2016 07:31 AM
Hi Crossrulz!!
Thx for fast reply!
Yes, I do start the server first. I normally wait around 4-5 second before start the client.
When I start the Server, the server went well. But as soon as I start the Client, the server suddenly turn off, followed by the client as well.
Thx!
03-18-2016
09:27 AM
- last edited on
09-22-2026
07:40 AM
by
Content Cleaner
Hi Stefan,
I know this article is based on communication between different computers, but I think it's worth reading through as there are some points that would apply to you as well.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Lz2SAE&l=en-US
Also, are you able to do this communication using one of the LabVIEW examples?
03-21-2016 03:54 AM
Hi,
Thanks for your reply.
Yeah, I read this article before, I tried to do their suggestions as well.
The example program is running perfectly, there are no problem until I add the Stop FGV in the system.
03-22-2016
03:42 PM
- last edited on
09-22-2026
07:40 AM
by
Content Cleaner
Hi Stefan,
Why are you using the Stop FGV in the system? You can stop parallel loops with just using a local variable: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGxRCAW&l=en-US
The top example there describes how to do it. You shouldn't need to use Stop FGV.
03-23-2016 01:48 AM
Hi gdrag!!
Good morning!
Thanks for your reply and input. I am currently working on it. I hope your suggestion work well!!