Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HP 70950a OSA

Hi

 

I want to extract data from my HP 70950a Optical Spectrum Analyzer (OSA). I'm not quite sure how to proceed with this, but what I found out (http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/hp-70950a-osa-and-8163a-multimeter/td-p/11018... was that there are no drivers for this, so I need to do it "manually". In the VISA Interactive Control I have chosen GRIB0, and in the GRIB-control I have tried executing

 

OUTPUT\s723;"CENTERWL\s1300NM;SPANWL\s10NM;RL\s-5DBM;"\sSet\smeasurement\srange

 

as a test. It says "No error", but doesn't change the wavelength on the OSA. Does anybody have any experience with getting data from the device?

 

Best,

Karin.

0 Kudos
Message 1 of 16
(3,985 Views)

Hi,

 

Try updating the trace with the single sweep mode "SNGLS" or single sweep "TS" command or both.

and try the commands without "\s", just leave a space

 

Curt

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

Hi

 

Thanks for helping. It still says "No error", though, without doing anything. I'm not sure if I am doing it correctly, but I am Executing the commands in the GPIB contol of the VISA Interactive Control.

 

Best,

Karin.

0 Kudos
Message 3 of 16
(3,978 Views)

Are you using an NI GPIB card?

0 Kudos
Message 4 of 16
(3,971 Views)
0 Kudos
Message 5 of 16
(3,969 Views)

Hi Karin,

 

Open up the NI-MAX application. It should be on your desktop. Select the GPIB0 card under devices and interfaces.

Click 'Scan for Instruments' and when your OSA shows up in the device list, click on it and then

click the 'Communicate with Instrument'

Click NI-Spy to start the spy app and when that starts goto menu Spy->Start Capture

 

Enter your commands, one at a time in the communicate window and see if you're OSA responds correctly

 

Hope this helps

 

Curt

0 Kudos
Message 6 of 16
(3,966 Views)

Thanks, that's very kind of you. I'm not in the lab at the moment, but I'll try it our tomorrow, I'll make sure to check back!

 

Best,

Karin.

0 Kudos
Message 7 of 16
(3,965 Views)

You aren't really including "OUTPUT\s723;"" in the  text of the interactive control, are you? That would be silly.

0 Kudos
Message 8 of 16
(3,951 Views)

I did at first (silly, yes!), but I have also tried without.

 

Best,

Karin.

0 Kudos
Message 9 of 16
(3,946 Views)

Thanks, now I can change the wavelength span and center by the above commands. However,

 I am still not sure how to do something like this (taken from the OSA manual):

 

10 CLEAR 723 Initialize analyzer.
20 OUTPUT 723;"IP;SNGLS;TS;"
30 OUTPUT 723;"CENTERWL 1300NM;SPANWL 10NM;RL -5DBM;" Set measurement range.
40 OUTPUT 723;"TS;" Sweep trace A.
50 OUTPUT 723;"MKPK HI;" Mark highest signal level.
60 OUTPUT 723;"MKWL?;" Return wavelength at marker.
70 ENTER 723;W Assign wavelength to computer variable.
80 OUTPUT 723;"MKA?;" Return amplitude at marker.
90 ENTER 723;A Assign amplitude to computer variable.
100 W=W/1.E-9 Convert wavelength from meters to nanometers.
110 PRINT W,A Print values.

 

Where can I write scripts like this, and execute them?

 

Thanks for all your help so far.

 

Best,

Karin.

 

 

0 Kudos
Message 10 of 16
(3,916 Views)