I'm develloping an apllication with a Crio 9012 in LabVIEW 8.2.
My application contains two loops running on the Crio Controller. One of them is communicatiing with the FPGA, the other one controls the TCP/IP communication.
The TCP/IP communication is quite busy it sendsand receives up to 20 000bytes. However due to interupts running on the FPGA. I don't need to run the TCP /IP loop faster than 5Hz.
I found that the controller would loose communication after a few minutes when the communication loop runs every 250ms. If I try to probe the errors generated by the TCP/IP functions, the system TCP/IP connection does not fail and beomes highly reliable.
After building this application as a RT apllication, the communication is lost after a few minutes. My TCP/IP loop retrieves the comunication but the two seconds during which the communication have been lost cannot be tolerated due to data transfer taking place between the Host computer and the FPGA.
I have changed the timer in the TCP/IP loop for a 500ms wait. This cure the problem when running in the Labview environment system. However the communication still fail while running the same code as a RT apllication.
I have been monitoring the controller with the system manger, It uses only 5% of the CPU for the TCP/IP loop and 15% for the FPGA host. The memory usage is slightly above 50% and it doesn't increase with time.
I wouldn't be surprised if the opposite happened: being able to run reliably a RT apllication but not being able to run it in the labview environment and monitoring it at the same time.
Can anyone think about a difference between the TCP/IP communication in both configuration that would justify such a behaviour.
Sorry for the lenght of the mesage and thank you in advance for your help
Etienne