Example 2, Example 2 -25 – Agilent Technologies Multiple Channel Controller 85330A User Manual

Page 99

Advertising
background image

85330A Multiple Channel Controller

6-25

Programming

Programming Examples

Example 2

Example 2 applies to measurements where the sources are controlled by the
8530A

1001 !

1002 ! RE-SAVE “EX2”

1003 !

1004 Example_2:!

1005 !

1006 ! This example shows how to use the HP 85330A and HP 8530A’s Multi-parameter

1007 ! Display mode. This is used for multi-frequency measurements when the

1008 ! microwave sources are under HP 8530A HP-IB control.

1009 !

1010 ASSIGN @Rec TO 716 ! ASSIGN 8530A HP-IB.

1011 ASSIGN @Rec_data TO 716;FORMAT OFF ! ASSIGN 8530A DATA HP-IB.

1012 ASSIGN @Hp85330a TO 70918 ! Assign 85330A HP-IB

1013 !

1014 DIM Outstr$[128]

1015 DIM Err_str$[128]

1016 !

1017 Scu_addr=0 ! SCU address

1018 Chan_start=1 ! First Channel

1019 Chan_stop=4 ! Last Channel

1020 Chan_pts=(Chan_stop-Chan_start)+1 ! Number of channels

1021 Switch_start=Scu_addr*100+Chan_start ! Starting SWITCH ADDRESS

1022 Switch_stop=Scu_addr*100+Chan_stop ! STOPPING SWITCH ADDRESS

1023 !

1024 Angle_start=-90

1025 Angle_stop=90

1026 Angle_incr=10

1027 Angle_pts=((Angle_stop-Angle_start)/Angle_incr)+1

1028 !

1029 Freq_start=2

1030 Freq_stop=20

1031 Freq_pts=5

1032 !

1033 Rec_averages=1

1034 !

1035 Set_receiver: !

1036 !

1037 INTEGER Preamble,Data_bytes

1038 ALLOCATE REAL Data_freq(1:Freq_pts,1:2)

1039 !

1040 OUTPUT @Rec;”FREQ;” ! FREQUENCY DOMAIN.

1041 OUTPUT @Rec;”EDITLIST;CLEL;SADD;” ! Edit FREQ LIST.

1042 OUTPUT @Rec;”STAR”;Freq_start;” GHZ;STOP”;Freq_stop;”GHZ;”! Set Start, stop.

1043 OUTPUT @Rec;”POIN”;Freq_pts;”;SDON;EDITDONE;” ! Set points.

Advertising