LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

network stream clear state

Thank you for replying.

 

I have tried to set a stop condition for the code. However, it still has the same error. I have attached the code, please have a check.

0 Kudos
Message 11 of 13
(457 Views)

In your sbRIO, I would recommend stopping the loop on an error.  Have your writing loop stop with a stop button.  What should happen is when you disconnect on the writer side, the reader will have an error (connected endpoint disconnected or something along those lines).

 

And you will want a wait on your writer side or else you are going to hammer your CPU and fill up the stream really fast.  You don't need a wait in the reader.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 12 of 13
(454 Views)

Thanks for replying.

 

I made some changes based on your suggestion. However, it is still the same error. And another is that should I use the shift register for the reference and error status? I have attached the code again, please have a check.

0 Kudos
Message 13 of 13
(450 Views)