LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP transfer data

Solved!
Go to solution

Hi all. I have a big problem. I must to transfer data from Labview with TCP in C#( TCP server). I am using this  code https://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener(v=vs.110).aspx . If i put one breakpoint at this line

 while((i = stream.Read(bytes, 0, bytes.Length))!=0) 

and press F5(continue) i can receive data from Labview program but without breakpoint, there's no data transfered. How cand i obtain same result without stop for brekpoint?

Thank you so much.

0 Kudos
Message 1 of 2
(2,744 Views)
Solution
Accepted by topic author Claudinho18

It was to quickly. I tried to wait in Labview but no effect. I put a timer on C# and work fine.

0 Kudos
Message 2 of 2
(2,716 Views)