12-25-2020 10:28 PM
this property help「Returns FALSE if the local host does not report a connection between the endpoints.」
i want to know how to check connection.
Solved! Go to Solution.
12-26-2020 10:03 PM
I've used Network Streams for LabVIEW RT systems for almost a decade, but I've never used the Connected property. Under what circumstances do you need it?
Bob Schor
12-26-2020 10:56 PM
i use this property to check 「HOST⇔RT connection」 alive or not.
if 「connected property value is false」, then RT set「analog output voltage」 to 0V(for ensurrng safety).
In long time(24Hour) working system, system check 「connected property is false or not」 every 1 second cycle.
In 24 Hour、「connected property is false(1~3seconds)」occure every 3~4 hours.
i want to know why temporary disconnection occur.
12-27-2020 02:25 AM
I use the NS "Is Connected" property before sending data from RT to Host to at least in theory, save a
little time in detecting an error. Without it one would have to wait for the timeout to occur (~700ms).
Note that from the help description - it does not actually contact the remote endpoint. So does it really
help that much? I don't know, but I'm going with the belt and suspenders approach.
One thing worth checking - verify that your NS reference is maintained throughout your code.
"Use default if unwired" or a for loop without using a shift register can bite you.
Over several systems including an 1100 hour life test, I haven't seen spurious connection errors.
I'm only half joking when I ask, "Is someone next store using an Arc Welder"?