03-12-2026 05:01 AM
Bonjour,
Je cherche une astuce pour vérifier la bonne communication entre le Crio et le HOST ( via l'interface utilisateur), pendant un essai pour prévenir l'opérateur ou arrêter un actionneur.
Par exemple savoir quand la communication est coupé ( câble débranché , plus de batterie pc ....).
Je pensais utilisé une variable partagé (boolean) qui ferait le lien entre le RT et le HOST, mais je ne suis pas sur de savoir quand la variable partagée ne communique plus.
Avez vous une méthode qui fonctionne 🙂
Merci.
Solved! Go to Solution.
03-12-2026 05:29 AM
Shared variables are not ideal since they are not really connection based. As long as the server itself is not down, you are not able to detect that anything is wrong.
Two network streams (reader/writer) (or if you want to go all low level, your own TCP server/client) works more reliably. If you do some regular communication on this channel you can quickly detect if the connection is down or the cRIO went down. And if you implement a watchdog in the FPGA that is triggered from the RT regularly you can even make the cRIO restart from the FPGA when the RT system goes down (happened to me yesterday when trying to read a huge data log file that exhausted the available memory on the controller).
03-12-2026 05:41 AM
Thank you for your response and for sharing your experience.
03-12-2026 05:42 AM
Hi bis,
@maybebis wrote:
Hello,
I'm looking for a way to verify proper communication between the Crio and the HOST (via the user interface) during a test, to alert the operator or stop an actuator.
For example, to know when communication is interrupted (cable unplugged, PC battery dead, etc.).
I was thinking of using a shared variable (boolean) that would link the RT and the HOST, but I'm not sure how to determine when the shared variable stops communicating.
Do you have a working method?
Thanks.
Please ask in English to help us to help you (or use the French regional board)…
To detect communication interruptions usually "watchdog" concepts are used:
A shared variable brings its own overhead and introduces some delays as you forward the network communication to a different software layer. I usually prefer my own routines using TCP or UDP to communicate with cRIO RT devices "directly"…