LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent E440x Spectrum Analyzer screen capture?

pals,

I have a working VI but it was written for a E4446 and uses TCPIP. It is almost identical to your VIs except for the following:

 

1) I would run the subVI "BINBLK2FILE" before deleting the GIF file (i.e. MMEM:DEL 'filename')

2) My VI commands need to be terminated with a newline character (\n) at the end of each command. However this may only be a TCP/IP requirement

3) In the subVI "BINBLK2FILE" read only 1 byte (not 50) to discard the '#' char and 1 byte (not 50) to read '# of chars'

 

 

0 Kudos
Message 11 of 16
(2,993 Views)

Hi jamiva,

Thanks so much... initially i did same. As you suggested, i byte instead of 50 bytes and after reading at end del option but still at first visa read it always gives error that time expired before operation is completed. I have tried lot of try and error methods but i failed. So if you can guide me more. I will be very thankful to you.

I am doing for USB GPIB interface so i guess i dont need to /n command.

Thanks so much... 

0 Kudos
Message 12 of 16
(2,981 Views)

Hi jamiva,

If you dont mind can u upload your program. I will do the changes in you program as i am using USB GPIB. So it will be helpful to me.

As i tried again doing the changes you mentioned me but i failed again....Thanks so much...

Pals... 

0 Kudos
Message 13 of 16
(2,978 Views)

Hi Jamiva,

 

Now i am getting the results... Thanks so much.... Problem was i was using MMEM:DEL function after binary data read also dones not work. Thats why it was giving error. Now i am able to take screen-shot. Only one problem that after running the program the Spectrum Freezes i cant do any changes. DO you have any idea why is this happening?

Thanks so much so much.....

 

Pals

0 Kudos
Message 14 of 16
(2,968 Views)

pals

What do you mean by freezes? Does the display freeze or do the front panel buttons freeze. Usually when you open a GPIB session it locks out the device. You need to press the "LOCAL" button on the front panel to enable manul control of the analyzer (or send a "local" command via GPIB)

 

If the display freezes, then I don't know what the problem is. I use all the same commands as you do without any issues.

 

Note: You use the same filename "TMPIMAGE.GIF" for each iteration. If that file already exists on the analyzer, it causes an error warning to appear when you try to over write the file. However, I don't think this is the cause of your problem.

0 Kudos
Message 15 of 16
(2,956 Views)

Hello Jamiva,

Problem is solved of freezing, after using local button also it was freezing its ok now... I have to take screen-shot in continuous mode. But when i run the program i get same screen-shot not the current one. And when i use MMEM:DEL Fucition and try to run then no screen-shot will come. But when i delete MMEM:DEL function after running once then Current Screen-Shot will come. Then again if i run the program without MEMM:DEL function again same Screen-Shot will come... Sorry i am bothering you lot but yesterday almost three hrs i was doing this and after all these processes i was getting the  current snap-shot.

 

I just feel i am using MMEM:DEL function at wrong place or some file name wrong so it giving me same screen-shot. And when i use MMEM:DEL function and run no screen-shot comes but after deleting it, it must be saving current scrren-shot. 

 

I just hope that you can help me in this.

 

Thanks so much and Sorry...

Pals

0 Kudos
Message 16 of 16
(2,937 Views)