好的 - 我想我知道发生了什么事。
在你的SCPI监视器日志中,我可以看到你正在通道11和12中设置SMC测量值,在这两个通道中,你想测量端口3和4之间的混频器(而不是端口1和2,你在
用于通道1和2)。
第一次在通道12中创建跟踪时,发送以下命令:00089> * CALC12:CUST:DEF'ATS_CH12_SC43_T4_W2','标量混合器/转换器','SC21'* $ DISP:WIND2:TRAC4:FEED'ATTS_CH12_SC43_T4_W2
'$ 00091> CALC12:PAR:SEL“ATS_CH12_SC43_T4_W2”$ 00092> SENS12:MIX:OUTP:FREQ:MODE SWEPT $ 00093> SENS12:MIX:OUTP:FREQ:MODE SWEPT $ 00094> SENS12:MIX:INP:FREQ:MODE
SWEPT $ 00095> SENS12:MIX:OUTP:FREQ:STAR 12060000000.000000 $ 00096> SENS12:MIX:OUTP:FREQ:STOP 12130000000.000000 $ 00097> SENS12:MIX:LO1:FREQ:MODE SWEPT $ 00098> SENS12:MIX:LO1:FREQ
:FIX 2300000000 $ 00099> SENS12:MIX:OUTP:FREQ:SID LOW $ 00100> SENS12:MIX:CALC INP $ 00101> * SENS12:MIX:PMAP 3,4 * $ 00102> SENS12:MIX:ELO:STAT 1 $
00103> SENS12:MIX:APPLY $ 00104> SENS12:SWEEP:POINTS 101 $ note * bold *命令。
第一次(或预设后),您从头开始创建通道12,当您创建新的SMC通道时,默认端口映射是端口1和2,因此,第一次发送命令时:CALC12:CUST
:DEF'ATS_CH12_SC43_T4_W2','标量混频器/转换器','SC21'在端口映射设置为1,2的通道中创建SC21测量没有问题。
但是,在创建SC21测量后,然后将端口映射更改为3,4,当您发送SENS12:MIX:APPLY命令时,通道端口映射会更改,现有的SC21测量会自动变为SC43。
但第二次,即使你删除了现有的测量,通道12仍然存在,此时,通道12的端口映射是端口3,4,所以当你尝试在该通道中创建SC21测量时,它
抱怨。
其他参数如IPwr或OPwr没有此问题,因为参数名称中没有端口号。
所以这就是它看起来有时有效的原因。
避免此问题的最简单方法是在发送calc:cust:def命令之前始终发送:SENS:MIX:PMAP 1,2 SENS:MIX:APPLY。
第一次围绕它会抱怨,因为您指定的通道尚不存在,但您可以读取并忽略这些错误(或者如果通道尚不存在,您可以编写代码以跳过这些命令)。
另一种方法是首先使用SYST:CHAN:DEL命令删除通道(如果通道已存在)。
以上来自于谷歌翻译
以下为原文
ok - I think I know what is going on. in your SCPI monitor log, I can see that you are setting up an SMC measurements in channel 11 and 12 and in these two channels, you want to measure the mixer between ports 3 and 4 (as opposed to ports 1 and 2, which you use for channels 1 and 2).
the first time you create a trace in channel 12, you send the following commands:
00089 > *CALC12:CUST:DEF 'ATS_CH12_SC43_T4_W2','Scalar Mixer/Converter','SC21'* $ DISP:WIND2:TRAC4:FEED 'ATS_CH12_SC43_T4_W2'$
00091 > CALC12:PAR:SEL "ATS_CH12_SC43_T4_W2"$
00092 > SENS12:MIX:OUTP:FREQ:MODE SWEPT$
00093 > SENS12:MIX:OUTP:FREQ:MODE SWEPT$
00094 > SENS12:MIX:INP:FREQ:MODE SWEPT$
00095 > SENS12:MIX:OUTP:FREQ:STAR 12060000000.000000$
00096 > SENS12:MIX:OUTP:FREQ:STOP 12130000000.000000$
00097 > SENS12:MIX:LO1:FREQ:MODE SWEPT$
00098 > SENS12:MIX:LO1:FREQ:FIX 2300000000$
00099 > SENS12:MIX:OUTP:FREQ:SID LOW$
00100 > SENS12:MIX:CALC INP$
00101 > *SENS12:MIX:PMAP 3,4* $
00102 > SENS12:MIX:ELO:STAT 1$
00103 > SENS12:MIX:APPLY$
00104 > SENS12:SWEEP:POINTS 101$
note the *bold* commands. the first time around (or after a preset), you are creating channel 12 from scratch and when you create a new SMC channel, the default port mapping is ports 1 and 2 and therefore, the first time you send the command:
CALC12:CUST:DEF 'ATS_CH12_SC43_T4_W2','Scalar Mixer/Converter','SC21'
it has no problems creating a SC21 measurement in a channel with a port mapping set to 1,2. however, after you have created the SC21 measurement, you then change the port mapping to 3,4 and when you send the SENS12:MIX:APPLY command the channel port mapping changes and the existing SC21 measurement automatically becomes SC43.
but the 2nd time around, even after you have deleted the existing measurement, channel 12 still exists and at this time, the port mapping for channel 12 is ports 3,4, so when you try to create an SC21 measurement in that channel, it complains. Other parameters like IPwr or OPwr don't have this problem, because there is no port number in the parameter name. so this is why it appears that it works sometimes.
the easiest way to avoid this problem is to always send:
SENS:MIX:PMAP 1,2
SENS:MIX:APPLY
before sending the calc:cust:def commands. the first time around it will complain, because the channel you are specifying doesn't exist yet, but you can read and ignore those errors (or you can write your code to skip these commands, if the channel doesn't already exist). the other way is to first delete the channel by using the SYST:CHAN:DEL command (if the channel already exist).
好的 - 我想我知道发生了什么事。
在你的SCPI监视器日志中,我可以看到你正在通道11和12中设置SMC测量值,在这两个通道中,你想测量端口3和4之间的混频器(而不是端口1和2,你在
用于通道1和2)。
第一次在通道12中创建跟踪时,发送以下命令:00089> * CALC12:CUST:DEF'ATS_CH12_SC43_T4_W2','标量混合器/转换器','SC21'* $ DISP:WIND2:TRAC4:FEED'ATTS_CH12_SC43_T4_W2
'$ 00091> CALC12:PAR:SEL“ATS_CH12_SC43_T4_W2”$ 00092> SENS12:MIX:OUTP:FREQ:MODE SWEPT $ 00093> SENS12:MIX:OUTP:FREQ:MODE SWEPT $ 00094> SENS12:MIX:INP:FREQ:MODE
SWEPT $ 00095> SENS12:MIX:OUTP:FREQ:STAR 12060000000.000000 $ 00096> SENS12:MIX:OUTP:FREQ:STOP 12130000000.000000 $ 00097> SENS12:MIX:LO1:FREQ:MODE SWEPT $ 00098> SENS12:MIX:LO1:FREQ
:FIX 2300000000 $ 00099> SENS12:MIX:OUTP:FREQ:SID LOW $ 00100> SENS12:MIX:CALC INP $ 00101> * SENS12:MIX:PMAP 3,4 * $ 00102> SENS12:MIX:ELO:STAT 1 $
00103> SENS12:MIX:APPLY $ 00104> SENS12:SWEEP:POINTS 101 $ note * bold *命令。
第一次(或预设后),您从头开始创建通道12,当您创建新的SMC通道时,默认端口映射是端口1和2,因此,第一次发送命令时:CALC12:CUST
:DEF'ATS_CH12_SC43_T4_W2','标量混频器/转换器','SC21'在端口映射设置为1,2的通道中创建SC21测量没有问题。
但是,在创建SC21测量后,然后将端口映射更改为3,4,当您发送SENS12:MIX:APPLY命令时,通道端口映射会更改,现有的SC21测量会自动变为SC43。
但第二次,即使你删除了现有的测量,通道12仍然存在,此时,通道12的端口映射是端口3,4,所以当你尝试在该通道中创建SC21测量时,它
抱怨。
其他参数如IPwr或OPwr没有此问题,因为参数名称中没有端口号。
所以这就是它看起来有时有效的原因。
避免此问题的最简单方法是在发送calc:cust:def命令之前始终发送:SENS:MIX:PMAP 1,2 SENS:MIX:APPLY。
第一次围绕它会抱怨,因为您指定的通道尚不存在,但您可以读取并忽略这些错误(或者如果通道尚不存在,您可以编写代码以跳过这些命令)。
另一种方法是首先使用SYST:CHAN:DEL命令删除通道(如果通道已存在)。
以上来自于谷歌翻译
以下为原文
ok - I think I know what is going on. in your SCPI monitor log, I can see that you are setting up an SMC measurements in channel 11 and 12 and in these two channels, you want to measure the mixer between ports 3 and 4 (as opposed to ports 1 and 2, which you use for channels 1 and 2).
the first time you create a trace in channel 12, you send the following commands:
00089 > *CALC12:CUST:DEF 'ATS_CH12_SC43_T4_W2','Scalar Mixer/Converter','SC21'* $ DISP:WIND2:TRAC4:FEED 'ATS_CH12_SC43_T4_W2'$
00091 > CALC12:PAR:SEL "ATS_CH12_SC43_T4_W2"$
00092 > SENS12:MIX:OUTP:FREQ:MODE SWEPT$
00093 > SENS12:MIX:OUTP:FREQ:MODE SWEPT$
00094 > SENS12:MIX:INP:FREQ:MODE SWEPT$
00095 > SENS12:MIX:OUTP:FREQ:STAR 12060000000.000000$
00096 > SENS12:MIX:OUTP:FREQ:STOP 12130000000.000000$
00097 > SENS12:MIX:LO1:FREQ:MODE SWEPT$
00098 > SENS12:MIX:LO1:FREQ:FIX 2300000000$
00099 > SENS12:MIX:OUTP:FREQ:SID LOW$
00100 > SENS12:MIX:CALC INP$
00101 > *SENS12:MIX:PMAP 3,4* $
00102 > SENS12:MIX:ELO:STAT 1$
00103 > SENS12:MIX:APPLY$
00104 > SENS12:SWEEP:POINTS 101$
note the *bold* commands. the first time around (or after a preset), you are creating channel 12 from scratch and when you create a new SMC channel, the default port mapping is ports 1 and 2 and therefore, the first time you send the command:
CALC12:CUST:DEF 'ATS_CH12_SC43_T4_W2','Scalar Mixer/Converter','SC21'
it has no problems creating a SC21 measurement in a channel with a port mapping set to 1,2. however, after you have created the SC21 measurement, you then change the port mapping to 3,4 and when you send the SENS12:MIX:APPLY command the channel port mapping changes and the existing SC21 measurement automatically becomes SC43.
but the 2nd time around, even after you have deleted the existing measurement, channel 12 still exists and at this time, the port mapping for channel 12 is ports 3,4, so when you try to create an SC21 measurement in that channel, it complains. Other parameters like IPwr or OPwr don't have this problem, because there is no port number in the parameter name. so this is why it appears that it works sometimes.
the easiest way to avoid this problem is to always send:
SENS:MIX:PMAP 1,2
SENS:MIX:APPLY
before sending the calc:cust:def commands. the first time around it will complain, because the channel you are specifying doesn't exist yet, but you can read and ignore those errors (or you can write your code to skip these commands, if the channel doesn't already exist). the other way is to first delete the channel by using the SYST:CHAN:DEL command (if the channel already exist).
举报