04-18-2019 09:24 AM
Hi All,
We got in our lab a new pressure gauge JEVAmet VCU from JEVATEC company. This device allows cummincation through RS232 interface. I connected that device using RS232 cable to the PC and then, used a labview example (Continuous Serial Write and Read) to read the version number of the pressure gauge as a simple request, however, I always get the same error
Error -1073807339 occurred at VISA Read in Continuous Serial Write and Read.vi
Possible reason(s):
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
(see the attached photo). You can find the manual of such a device to check for the string command here https://jevatec.de/index.php/en/downloads/send/26-jevamet-vcu-en/90-ba-vcu-08-2017-en.
My attempts to solve the problem:
1- increase the timeout duration ------- failed (increasing the timeout did not solve the problem)
2- Changing the port instead of RS232 to convert it to USB using RS232 hub ---- failed
3- restart the device ---- failed
4- Changing the baud rate and check the new baud connection ------ failed
5- Check for the code display ----- failed
What is the problem I am facing here?
Solved! Go to Solution.
04-18-2019 03:26 PM
In your left frame, \n is the termination character. In the right frame, you are using the \r as the termination character which will cause a timeout as the command is not terminated properly.
04-18-2019 04:13 PM
I changed it but it still timeouts. I also used NI MAX for VISA test panel and it shows the same response.
05-05-2019 07:12 AM - edited 05-05-2019 07:12 AM
1. Your string control has a display mode of "Normal". Therefore your "\n" is NOT a carriage return. It is 2 bytes: '\' and 'n". You should change your display mode to be "\ Codes" and then your "\n" will actually mean carriage return (after you get rid of the extra '\').
2. It looks like you have the "End Write on Termination Character" set to TRUE. Therefore, you do not need to have the termination character (the "\n") in your command string. VISA will add it for you.
3. The Continuous Serial Write and Read example is BAD. I suggest using an Event Structure to send the data and immediately read the response.