I am using the sample under "National Instruments\CVI2015\samples\realtime\ThreadPriorityRT" to control and communicate with the real time target (PXIe 8820, Pharlaps).
So the TCP server is on the host, and the RT target runs a client program.
How exactly I can modify the code so that when the host program is somehow shutdown by user, it can restart the host program and continue the communication with the RT target. What I found is, even I write a thread on the RT program that periodically checks the status of connection and once host program is back running, it uses "ConnectToTCPServer" (and successfully connected, judging by the returned status). However, the host program is not able to communicate with the client progrma using the ServerTCPWrite() function. The returned status shows a weird 160.
if host program starts first, rt program later (it is running a startup dll, so the rt target is restarted), it does not have any problem. I am trying to do the reverse.
any idea?
Thanks