I have pressure measuring device which reads the pressure periodically and sends information every 250ms. I would like to read the data for about one and half hour or even for some more time. I wrote 2 programs for this operation
1. VISA Read and write every 250ms: Here I configure the settings then write and read data every 250ms. (This fails after some time).
2. VISA using events.
I have attached the both programs. Would you suggest which one is appropriate for this operation or any further suggestions, improvements???
Error message is : -1073807339.
I found out that there is no need of VISA write. As soon I open the VISA port and set the port configuration the data is available on the interface.
I did even tried the example from ni here and I have the same error.
A timeout error implies one of two possible issues:
1. Your instrument does not constantly send out data
2. You are using the wrong termination character.
What is the difference between the Serial Character and Serial TermChar for the input: event type?
The Serial Character just means that something can into the serial port. The Serial TermChar means that the Termination Character was found in the serial port.