05-04-2017 10:03 AM
I was trying to send data from RT to Host.The problem was without creating a reader end point in Host , " Create Network stream writer end point got connected.
Is this possible? If it is , Please tell me the situations those can cause this problem.
05-04-2017 10:24 AM - edited 05-04-2017 10:31 AM
if my memory serves me right, that should not happen.
for every writer there is a reader needed.
do you have any more info on your setup, like a minimal RT-fake and Host-fake vi that reproduce the behaviour?
<edit>
i appended my initial test vis for network streams, no guarantees for prettyness, but i hope they help
</edit>
05-04-2017 03:19 PM
Post your code, especially the code on the Remote that contains the Writer that you think "connects" without a Reader. It is possible to have one element of the Reader/Writer pair run without the other (in fact, this is almost a requirement, as it is extremely difficult to start them at precisely the same time, so one has to start first and "wait for a connection").
Bob Schor
05-04-2017 03:26 PM
now bob that you mention it, i think he might mistake the default timeout of -1 for a connection, or did you mean something else?
05-04-2017 05:12 PM
Well, without seeing the code, I truly have no real idea what the Original Poster was trying to say, nor do I understand what was meant by "endpoint got connected". Of course it is not possible for one endpoint to get "connected" without the other, but it is possible for the code to run without an error. You are certainly correct, something may be mis-wired, or something might be mis-understood, but my ability to "guess" what was done is not as good as it used to be ...
Bob Schor
05-04-2017 08:36 PM
Thank you for your response,
I've attached the VIs which I was using in RT target. I have 5 VIs like this which are doing the same functionality but only this VI is connecting without reader end point has been created.
05-05-2017 02:04 AM
unfortunately your vi is not executable, because of missing typedef and .. i would have to set up a queue and stuff.
but i saw that you have a timeout of "-1", which means your vi will block there until it makes a connection.
to verify drop a breakpoint after "Create Writer" and perhaps also drop in the network stream property node.
if it is really connecting somewhere, that would mean that there is a reader with the name you specified.
can it be that you run these vi's asynchronously and there was still a reader running in the background somewhere?
regards
05-08-2017 09:08 AM
Yes, I wanted to show you that I've wired "-1" to the time out input of Create writer end point VI.
I also thought some other reader is opened and it started communicating with it but restarted the PC and open only this VI and ran but it was behaving same way. Anyways I dint find why it was behaving like that but the problem didn't arise again.
Thank for your response , if u find the reason just send it to me.
Thank you.