Write/Read |
About Diff I/Q App |
Description |
Sets and reads the amount of source attenuation. Sending this command will set AutoRangeState Property False. On the Source Configuration dialog under Power, this is the Source Attenuation setting. |
VB Syntax |
DIQ.PortAttenuator (port) = value |
Variable |
(Type) - Description |
DIQ |
A Differential I/Q (object) |
port |
(String) Source port name. Use SourcePortNames to read a list of valid source ports. |
value |
(Double) Source Attenuation value. Choose from 0 to the maximum amount of source attenuation in the correct step size. Rounding will occur when the selected value can not be achieved. |
Return Type |
Double |
Default |
0 |
Examples |
oDIQ.PortAttenuator("port 2") = 0 |
Value = oDIQ.PortAttenuator("port 2") 'Read |
|
C++ Syntax |
HRESULT get_PortAttenuator(BSTR port, double* PortAttenuator); HRESULT put_PortAttenuator(BSTR port, double PortAttenuator); |
Interface |
IDIQ |