Hi,
I'm using Net.Sockets TCPClient to record data from a instrument.
Because I need to continuously listen the output data from the instrument, then according to the data to communicate with some commands, I run the program with a thread(named Thread_A) and it seems work fine.
Becaused of some reasons, I want to send some commands manually with a button and get the reply from the Thread_A. I tried many methods but none worked, I think it because every TCP connection is independent.
When we use COM port, we can use a single port to communicate under a form. I'm wondering if it's possible to done the same way with TCPClient?
Or have any ideas to solve this question? Thanks!
What I have tried:
Tried many methods but none worked.