LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timeout error on VISA write and read

Solved!
Go to solution

I am having timeout error problems with a VI  that just Writes and Reads the needed data and will eventually be added as a subVI. Everything is configured the same as my device. I have tried increasing the timeout session time but that does not work and I'm not sure what else to try.

Any help would be much appreciated! 

0 Kudos
Message 1 of 8
(8,714 Views)
With a serial connection, you can get a timeout if the settings (baud rate, etc.) are wrong, you are sending the wrong command, you are sending the wrong termination character, you are expecting the wrong termination character, you are using the wrong type of serial cable. You have not provided the make and model of the instrument. I can't look at the VI since I am posting from my phone. I would suggest you do some basic troubleshooting including trying a regular terminal emulation program such as putty or MAX. the This problem has been discussed hundreds/thousands of times on these boards so look ing through the related threads is also recommended.
0 Kudos
Message 2 of 8
(8,703 Views)

Quick answer

 

Does your Scale require a Termination Char after your "IP" command?

What does your Scale's manual tell you about Termination Char?

Read your Scale's Manual.

Omar
0 Kudos
Message 3 of 8
(8,687 Views)

I am using an Ohaus Adventurer Pro Balance (model AV8101) with RS232. In terms of a termination key, the manual does not specify one or mention the need for any at all. 

Any other ideas? I'm stuck now because the settings are all correct and I know the command is right because it works on a basic Serial Write and Read.

 

Thanks!

0 Kudos
Message 4 of 8
(8,595 Views)
The example you mention has the string control set for \ Codes Display. What is the exact string you are sending with the example? Why aren't you using the existing driver?
Message 5 of 8
(8,589 Views)

I am using IP\r for an Immediate Print of displayed weight. 

And what do you mean that I'm not using the existing driver?

0 Kudos
Message 6 of 8
(8,580 Views)

I figured it out. Turns out the string control had been set to Normal Display on my computer. Thanks for your help!

0 Kudos
Message 7 of 8
(8,575 Views)
Solution
Accepted by kmarcella
The \r is the termination character (carriage return) and you MUST set the string control/constant for \ Codes Display. This is a right click option.

The driver is found by doing Help>Find Instrument Drivers. The main driver page has links on what a driver is and how to use one.

http://www.ni.com/downloads/instrument-drivers/
0 Kudos
Message 8 of 8
(8,570 Views)