11-22-2023 05:10 PM
Hello, everyone!
I'm trying to acquire data from a pressure sensor (RS-232) using VISA. The block diagram is in the attached photo.
I configured everything according to the manual (as baud rate, data bits, parity and write buffer) . The code runs and give me the answer that means the pressure value, but the answer is always incomplete. The complet answer should have 17 characters, but it returns only 11 characters and the missing characters appears in the other measurement, so, the answer is always wrong. The answer should be something like that: "@253ACK1.00E-5;FF", where "1.00e-5" is the pressure value in Torr. As you can see in the photo "Code running 1", there are only 11 characters and the missing characters appears together with the second measurement, as you can see in the photo "Code running 2". Can someone help me?
Solved! Go to Solution.
11-22-2023 05:40 PM
The problem is the blue wire here. It connects the output for "number of characters sent" to the input for "number of characters to read".
You likely just want to replace that with a large number, assuming your device has a termination character set on all its replies.
Highly recommended to watch this video:
11-22-2023 07:08 PM
Thank you so much! It worked!! 🤝