LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Equipment: Agilent E4440A Spectrum Analyzer 

 

i connect laptop to this instrument via GPIB-USB-HS, when i do visa test panel in NI MAX, i encounter error during Read ( Write, Query works OK).

 

screenshot of the error message below

visa test panel 3 (error) .PNG

 

screenshot of setting of my visa test panel 

visa test panel 2.PNGvisa test panel 1.PNG

 

Also, i tried the sample code inside Labview GPIB with VISA function.vi, and error appears when it reaches VISA read part, as shown as screenshot below 

 

initialize OK, write OK, read ERR

labview sample code (read error).PNG

 

 

Do reply to my post if you have a slight idea what might be the problem 

THANK YOUUU 😉 

0 Kudos
Message 1 of 16
(2,227 Views)

While using ni max you are using termination character "\n" in the query, while in the labview code you are not using it. Concatenate the query with a linefeed constant and check the result.


CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 16
(2,214 Views)

hi thank you for replying,

although i used "\n" in Ni MAX visa test panel, i still got time out error. when i testing READ.

no problem when i WRITE, QUERY.
i not sure what is the reason.

 

and i am very new inn\ labview, do you mind explaining how i can do this?
"Concatenate the query with a linefeed constant and check the result."

i dont really understand what this sentence means 😥

0 Kudos
Message 3 of 16
(2,209 Views)

You were getting error in ni max because you were trying to read 1024 bytes of data when the actual data size is around 40-50 bytes only.

 

LV_strcat.png

the above image shows how to concatenate 2 strings.

just add a line feed constant with your query


CLD Using LabVIEW since 2013
0 Kudos
Message 4 of 16
(2,196 Views)

i tried reducing bytes to read to 40 and 50... TimeOut error still exist 😩

 

i understand timeout error means, nothing is read from the instrument i connected to.

Noob_intern_0-1644275806006.png

Noob_intern_1-1644275842092.png

 


 

0 Kudos
Message 5 of 16
(2,177 Views)

Noob_intern_0-1644276148952.png

is it what you mean ?

Sorry if i misunderstood 

btw, this is the example code inside labview, under hardware i/o under GPIB

0 Kudos
Message 6 of 16
(2,175 Views)

you have to add termination while writing and not reading

concatenate.png


CLD Using LabVIEW since 2013
0 Kudos
Message 7 of 16
(2,157 Views)

Modified program 

Noob_intern_0-1644278448823.png

 

program error during run 

Noob_intern_1-1644278535298.png

 

 

0 Kudos
Message 8 of 16
(2,154 Views)

Instead of \n try using kartiknattar_0-1644221513687.png which you can find in strings pallet and reduce the bytes to read to a lesser value

 


CLD Using LabVIEW since 2013
0 Kudos
Message 9 of 16
(2,150 Views)

Hi all the experienced seniors, 

So basically i always have reading TimeOut ERR , whenever i read from the spectrum analyzer in my own program/ example code/ visa test panel. 

 

(the program i posted is all labview built-in example code for testing purposes only)

 

is there anything that i  might missed out? hardware? setting ? driver ? 

 

Appreciate a lot, this issue has been with me for daysss..😬

i couldnt test if my program even works, if i cant read from the equipment :< 

 

 

0 Kudos
Message 10 of 16
(2,146 Views)