From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1073807339 VISA READ TIME OUT

Solved!
Go to solution

Hi! I am writing a VI used for Razorbill RP100 strain cell power supply. 

I wrote a small and simple VI to see if I can communicate with LabView and it turned out that VISA Read got problem every time, getting Error 1073807339.

 

I can write and read from NI Max VISA panel perfectly well, and I have installed NI VISA on my laptop. 

The VISA open doesn't have problem so I assume it's not the problem from the connection.

I got the baud rate and other stuff from the settings of VISA panel of NI MAX( when the read and write were working well).

微信图片_20190819171840.png

I followed the suggestions from here: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L3mSAE&l=en-GB ; but neither of them worked.

 

Does anyone have any ideas on how to solve this?

 

Thank you!

0 Kudos
Message 1 of 20
(3,404 Views)

1.  Do you know if your device will respond to the command *IDN?

 

2.  In your string to write, you have *IDN?\r\n   Is that string constant in normal mode or \Code mode?  Make Sure it is in \Code mode.  (This is item "D" in the link you attached.)

0 Kudos
Message 2 of 20
(3,351 Views)
Solution
Accepted by Seabass666

Hi,

  • *IDN? is allowed as a command, so I also suspect that you've used the default string display, and if you switch it to \ Display you'll see "*IDN?\\r\\n" (note double backslash - the first escapes the second).
    • To fix this, whilst in the \ mode, remove one of each pair of \. Then you'll see "*IDN?\r\n". If you go back to the normal display, you'll see a 2 line string constant.
  • Your device always replies with CRLF, but LabVIEW will only allow 1 termination character - you can set this to LF and then trim the CR each time, but creating a subVI to do that for you might be useful
  • Your device accepts any of CR, LF, or CRLF as terminators, so you can just use one to make it a bit simpler (especially if you choose to use the LF constant (or CF, etc) and Concatenate String, which removes ambiguity regarding display styles).

GCentral
0 Kudos
Message 3 of 20
(3,334 Views)

Hi! Thank you for replying. 

I tested it and I think the device can't read *IDN? itself but has to have a \n as well.

0 Kudos
Message 4 of 20
(3,319 Views)

Thank you!

I added one block for termination character and finally I can read string.

 

0 Kudos
Message 5 of 20
(3,316 Views)

Hi!

 

I can read string now but I keep getting error. It's a bit confusing.

 

Does anyone have any ideas on this situation?

 

Thanks!

微信截图_20190820130414.png

0 Kudos
Message 6 of 20