您好社区,我想使用ENA 5071 C使用混合模式S参数进行测量。因此,我在夹具模拟器中启用了平衡 - 不平衡转换。
显示屏现在显示所需的混合模式参数Sdd11,Sdd112 ... Scc22。
但是如何将实际显示的曲线曲线传送到MS Excel(通过LAN)?
*我正在使用Agilent VEE和MS Excel / VBA,但是将命令'instrument.WriteString::CALC1:PAR1:DEF Scd12“'发送到ENA会导致错误,因为此命令仅针对带有i和j的Sij指定
= 1..4。*那么如何选择所需的混合模式S参数以及如何读取它?
*编辑*我尝试了一些事情,但只是更加困惑... instrument.WriteString“:CALC1:PAR1:SEL”instrument.WriteString“:CALC1:TRAC1:EQU:STATE ON”instrument.WriteString“:CALC1:TRAC1:
EQU:TEXT'sdd_test = S21 /(1-S11)'“instrument.WriteString”:CALC1:TRAC1:EQU:TEXT?“
equ_string = instrument.ReadString()MsgBox equ_string - >定义我自己的方程式,在左上角,跟踪符号变为“Tr1 Sdd_test Log Mag 10.000db / Ref 0.000db [Equ]”,命令MsgBox equ_string给出
'sdd_test = S21 /(1-S11)'如预期的那样。
显然混合模式S参数没有定义为方程式?!??!
至少右列中的所有定义都保持不变(Sdd11,Sdd12 ....)。
instrument.WriteString“:CALC1:PAR1:TNAM:DATA tracename”instrument.WriteString“:CALC1:PAR:TNAM:DEF?tracename”equ_string = instrument.ReadString()MsgBox equ_string - >跟踪1在通道1(在我的
实验我总是假设是活动跟踪)被赋予名称'tracename'。
MsgBox equ_string显示正确的分配,返回'tracename'作为结果。
但是在ENA的显示屏上,注释“tracename”不会出现在任何地方。
它是否正确 ?
它仍然按照我的预期说“Tr1 Sdd_test Log Mag 10.000db / Ref 0.000db [Equ]”而不是“tracename sdd_test Log Mag 10.000db / Ref 0.000db [Equ]”。
instrument.WriteString“:CALC1:PAR1:TNAM:DATA?”
equ_string = instrument.ReadString()MsgBox equ_string - >最令人惊讶的结果:equ_string现在包含“S11”。
但为什么 ???
为什么它不包含“Sdd_test”,因为之前的所有操作都涉及相同的Trace 1,Channel 1.此外,ENA在平衡模式下运行,所以我预计至少会有Sdd11。
但S11到底在哪里?编辑:Stephan Giesinger于2013年2月26日凌晨2点
以上来自于谷歌翻译
以下为原文
Hello community,
I want to make measurements with mixed mode S-parameters using the ENA 5071 C. Therefore I enabled the balance-unbalance conversion within the Fixture Simulator.
The display now shows the desired mixed mode parameters, Sdd11, Sdd112...Scc22.
But how do I transfer the actual displayed trace curve to MS Excel (via LAN) ?
*I am using Agilent VEE and MS Excel/VBA, but sending the command 'instrument.WriteString ":CALC1:PAR1:DEF Scd12" ' to the ENA, results in an error as this command is just specified for Sij with i and j = 1..4.*
So how do I select the desired mixed-mode S-parameter and how to read it ?
*EDIT*
I tried a few things but just got more puzzled...
instrument.WriteString ":CALC1:PAR1:SEL"
instrument.WriteString ":CALC1:TRAC1:EQU:STATE ON"
instrument.WriteString ":CALC1:TRAC1:EQU:TEXT 'Sdd_test=S21/(1-S11)'"
instrument.WriteString ":CALC1:TRAC1:EQU:TEXT?"
equ_string = instrument.ReadString()
MsgBox equ_string
--> Defining my own equa
tion works, in the upper left corner the notation of the trace changes to "Tr1 Sdd_test Log Mag 10.000db/ Ref 0.000db [Equ]",
Command MsgBox equ_string gives 'Sdd_test=S21/(1-S11)' as expected.
Apparently the Mixed-Mode S-parameters are NOT defined as equations ?!??! At least all definitions in the right column remain unchanged (Sdd11, Sdd12....).
instrument.WriteString ":CALC1:PAR1:TNAM:DATA tracename"
instrument.WriteString ":CALC1:PAR:TNAM:DEF? tracename"
equ_string = instrument.ReadString()
MsgBox equ_string
--> Trace 1 at channel 1 (which in my experiments I always assume to be the active trace) is assigned the name 'tracename'. MsgBox equ_string shows the correct assigment, returning 'tracename' as result.
But on the display of the ENA the annotation 'tracename' doesn't appear anywhere. Is this correct ? It still says "Tr1 Sdd_test Log Mag 10.000db/ Ref 0.000db [Equ]" instead of "tracename sdd_test Log Mag 10.000db/ Ref 0.000db [Equ]" as I expected.
instrument.WriteString ":CALC1:PAR1:TNAM:DATA?"
equ_string = instrument.ReadString()
MsgBox equ_string
--> The most surprising result: equ_string now contains "S11". But why ??? Why doesn't it contain "Sdd_test" as all previous operations concerned the same Trace 1, Channel 1. Furthermore the ENA is operated in balanced mode, so I would have expected at least Sdd11. But where the hell does S11 come from ?
Edited by: Stephan Giesinger on Feb 26, 2013 2:00 AM