Hi,
I'm currently working on a test bench project involving 3 serial communications and one USB communication (USBTMC). I'm using a state machine model.
One of the steps of my state machine is to send a char to my Arduino by serial port to commute a relay.
This operation is done approximatively each 30 seconds.
I'm using very basic VISA write, and still, randomly i've got a VISA write timeout after hours of executions. After that the Arduino do not response any more, the only thing i can do is to close the visa and reopen the visa communication. Then it works again.
The solution i get for the moment is to do a specific error handling that closes the VISA and reopen it. It works but i would like to have a clue on what is happening. I'm not satisfied with this patch.
I tried to run this step of the state machine in a while loop until I have the error, but i never happens. So maybe my error is coming from my other serial communications.
Have you ever experienced a similar problem ? do you have a clue on what i could be ?
Have a great day,
Nicolas L