Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

getting time expired error in labview while getting screen capture

Solved!
Go to solution

Hello,

I have to capture a screen shot for Agilent's Spectrum analyzer, ESA series. But Whenever i run the program i always get time expired before operation is completed. I am attaching the program and also screen-shot of program. If anyone can solve this problem i would be very glad.

Thanking you all...

Pals

0 Kudos
Message 1 of 9
(5,489 Views)

How many bytes are you tring to read and have you tried increasing the timeout?

0 Kudos
Message 2 of 9
(5,472 Views)

Hi, 

I tried to increase the time out but it didnt work. i am trying to read 1 byte at a time... So is it ok?

Thanks so much....

0 Kudos
Message 3 of 9
(5,458 Views)

Hi, 

Here is the attached file which says how to program and say same thing...

0 Kudos
Message 4 of 9
(5,449 Views)

Actually, that doesn't say the same thing, at least as far as the actual transfer is concerned. In that VB code it's not reading one byte initially to get the number of bytes, and then reading that many bytes. So, you must have gotten that information from somewhere else. What I've usually seen in these kinds of transfers is that the first byte is just a marker, then you get 2 bytes to indicate how many digits will follow to indicate the number of bytes of data. Somewhere else in that manual it should have the exact structure of the data that is being returned by the instrument.

0 Kudos
Message 5 of 9
(5,391 Views)

Hello All,

I am getting screen-shot but i always get same screen-shot. I never get current screen-shot. So where is the problem i dont know...... Hope anyone can tell the problem...

Thanks a lot....

pals 

0 Kudos
Message 6 of 9
(5,334 Views)
Solution
Accepted by Sim5

Hello All,

I got the solution... we have to add MEMM:DEL function at the end... And time bet two screen-shot must be more than 10 mins then it gives Current screen-shot... 

Thanks so much...

Pals

0 Kudos
Message 7 of 9
(5,294 Views)

Hi,

 

I am creating a similiar program, but I have a problem with my ESA. It takes about 20 sec. to save the image on the ESA's hard disk after command: ":MMEM:STOR:CSR 'C:tmpimage.gif' "  . Is there any possibility to make it faster?

 

 

Piotr

0 Kudos
Message 8 of 9
(4,647 Views)

No the ESA is a very slow instrument. The CPU is very underhorsepowered. Only thing faster would be to dump the trace data and recreate the plot in Labview.

0 Kudos
Message 9 of 9
(4,583 Views)