Jump to content
Sign in to follow this  
Dawid

Problem with Network Streams in EXE LabVIEW

Recommended Posts

I'm trying to find a way to communicate between two executable LabView app, because of several reasons I chose (associated with my application) Network Streams. Everything works fine so long as they are the VIs. When I build exe files there is no communication between apps. The apps waits forever for connection (because there is no timeout). Did anybody meet the same problem? I will be very grateful for any advices and comments.

 

 

 

TestStream.vi

TestStream2.vi

post-52806-0-19325000-1414491272_thumb.p

post-52806-0-19450100-1414491276_thumb.p

Edited by Dawid

Share this post


Link to post
Share on other sites

I found the solution!

 

I tried to delete the topic, but I cannot. Anyway the problem was associated with Streams Names, which should be unique. Till you are using streams in LabView there is no need to build "Stream Name" as full URL,

"ni.dex://host_name:context_name/endpoint_name". Context_name is optional when Streams works in LabView, but it's necessary to have this name when you are building exe files. The context_name is the name that identifies which application context the endpoint resides in. If somebody need more info, everything is here: http://www.ni.com/white-paper/12267/en/

  • Like 1

Share this post


Link to post
Share on other sites

If you have multiple instances of an application that uses network streams, you can have each EXE give its stream a unique context name by generating a GUID. There is a way to get it via .NET. 

Share this post


Link to post
Share on other sites

I found the solution!  I tried to delete the topic, but I cannot. 

You can formally request topic moderation by using the Report to Moderator button.  But in this case I would rather we leave the topic as is.  Even if your issue was solved, others may look for help on this subject, and finding what you have already done helps the community.

Share this post


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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.