:INPut:ATTenuation:T
Description
This command gets or sets the attenuation of channel 2. This command is equivalent to :INPut:ATTenuation:CH2
| Syntax | Parameter |
|---|---|
:INPut<ch>:ATTenuation<tr>:T |
<numeric> |
| Parameters | accepted format | allowed suffixes | possible Errors | description |
|---|---|---|---|---|
<ch> |
{ 1 | empty } |
none |
Invalid channel index |
Currently only one channel is supported. Empty means 1 is used as default. |
<tr> |
{ 1 | empty } |
none |
Invalid trace index |
Currently only one trace is supported. Empty means 1 is used as default. |
<numeric> |
numeric value | none |
none |
The attenuation in dB. |
| Syntax | Response |
|---|---|
:INPut<ch>:ATTenuation<tr>:T? |
<numeric> |
| Parameters | accepted format | description |
|---|---|---|
<ch> |
{ 1 | empty } |
Currently only one channel is supported. Empty means 1 is used as default. |
<tr> |
{ 1 | empty } |
Currently only one trace is supported. Empty means 1 is used as default. |
| Response value | description |
|---|---|
<numeric> |
the attenuation value in dB |
Accepted values
Warning
Not all attenuation values are valid. For a list of possible values please refer to Measurement Modes and Default Settings.
Presets
For presets please refer to Measurement Modes and Default Settings.
Sample usage
Set the attenuation of channel T to 10dB.
var visaSession = new TcpipSocket(VISA_RESOURCENAME); visaSession.RawIO.Write(":CALC:PAR:DEF S21\n"); visaSession.RawIO.Write(":INP:ATT:T 10\n");
visaSession.write(':CALC:PAR:DEF S21\n') visaSession.write(':INP:ATT:T 10\n')
Related commands
:INPut:ATTenuation:R :INPut:ATTenuation:CH1 :INPut:ATTenuation:CH2