LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.

Mr Kartiknattar,

 

is it possible is not a program's problem?

Because i already having reading TimeOut error at VISA Test Panel.

0 Kudos
Message 11 of 16
(975 Views)

The time out error is because you are trying to read 1024 bytes of change change it to 50 bytes in visa test panel you will not see any error.

Also try the read command in visa test panel if you are getting the output or not


CLD Using LabVIEW since 2013
0 Kudos
Message 12 of 16
(962 Views)

Okay, I feel we haven't even gone over the basics.  Let's do this:

billko_0-1644225089168.png

(This WILL work.  Notice - no termination character.  You don't need one when writing to anything other than a COM port.)

Better yet, just save yourself some additional heartache by bopping on down to the driver page on the NI Instrument Driver Network and use that instead.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 16
(954 Views)

Hi, another doubt.

 

when i changed the byte to 50.

and command is *IDN?\n   (which means Identification Query, according to manual)

 

and in VISA test panel, 

if i click: 1. Write -> OK, 2. Query -> OK, 3. Read -> TimeOut ERR

but if i click 1. Write -> OK, 2. Read -> OK,

 

why when i click Read after Query will have time out ERR ? 

0 Kudos
Message 14 of 16
(949 Views)

Hi Mr Bill 

 

i run the basic program you send, if the Visa write and Visa Read both have no Error.

Can i assume that the labview and equipment is communicating well,
and do not have hardware or driver issue ?

Noob_intern_0-1644284078183.png

 

0 Kudos
Message 15 of 16
(944 Views)

@Noob_intern wrote:

and in VISA test panel, 

if i click: 1. Write -> OK, 2. Query -> OK, 3. Read -> TimeOut ERR

but if i click 1. Write -> OK, 2. Read -> OK,

 

why when i click Read after Query will have time out ERR ? 


A Query is a Write followed by a Read.  So you just need to click on Query.  You might be confusing the instrument by sending the command twice and then attempting to read twice.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 16 of 16
(931 Views)