Command
:CALCulate<Ch>:PARameter<Tr>:SELect
This command sets the selected trace as active trace. Use :DISP:WIND:ACT to activate the channel.
Ana.WriteString ":CALC1:PAR1:SEL", True
Trace Next, Trace Prev
SCPI.CALCULATE(Ch).PARAMETER(Tr).SELECT
For :CALCulate<Ch>[:SELected]:xxxx commands, we have another expression of CALCulate<Ch>:TRACe<Tr>:xxxxxx. The trace number can be selected at the same time.
For example:
:CALCulate1:PARameter2:SELect
:CALCulate1:AVER
The same operation can be done by:
:CALCulate1:TRACe2:AVER