![](/images/new-backgrounds/1204431/204431197x1.webp)
Programming
Programming Examples
Example 2
Example 2 applies to measurements where the sources are controlled by the 8530A
1001 | ! |
|
|
1002 | ! |
|
|
1003 | ! |
|
|
1004 | Example_2:! |
|
|
1005 | ! |
|
|
1006 | ! This example shows how to use the HP 85330A and HP 8530A’s | ||
1007 | ! Display mode. This is used for | ||
1008 | ! microwave sources are under HP 8530A |
| |
1009 | ! |
|
|
1010 | ASSIGN @Rec TO 716 | ! ASSIGN 8530A | |
1011 | ASSIGN @Rec_data TO 716;FORMAT OFF | ! ASSIGN 8530A DATA | |
1012 | ASSIGN @Hp85330a TO 70918 | ! Assign 85330A | |
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 | ! 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 |
|
| |
1025 | Angle_stop=90 |
|
|
1026 | Angle_incr=10 |
|
|
1027 |
| ||
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. |
85330A Multiple Channel Controller |