Network Stream Shows 'Connected' Property as True when Endpoint Has Been Destroyed

Updated Jul 30, 2018

Reported In

Software

  • LabVIEW

Issue Details

I have created reader and writer network stream endpoints in my VI. When I destroy one of the endpoints then check whether the other endpoint is connected using a property node, it returns a connected status. Shouldn't this be returning not connected? Why is this occurring?

Solution

Getting an incorrect connection status is a rare occurrence that is due to a race condition. It occurs when the streams have not yet finished exchanging messages and therefore the endpoint is not yet aware that the other endpoint has been destroyed.

This problem will occur in a limited number of cases, when the reader and writer are on the same block diagram and the connection is verified immediately after the one endpoint has been destroyed. Even in this case, the connection status will sometimes correctly return a not connected status and other times return an incorrect connected status.

WAS THIS ARTICLE HELPFUL?

Not Helpful