LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing characters with Visa

Solved!
Go to solution

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?

0 Kudos
Message 1 of 3
(684 Views)
Solution
Accepted by KatherineMaslova

Kyle97330_0-1700696272140.png

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:

VIWeek 2020/Proper way to communicate over serial

Message 2 of 3
(673 Views)

Thank you so much! It worked!! 🤝

0 Kudos
Message 3 of 3
(644 Views)