As mentioned in Selecting the Active Channel/Trace, you can also select a trace by the trace name, provided it has been defined earlier. To define a trace name, use the following command:
:CALC{[1]-160}:PAR{[1]-16}:TNAMe:DATA
If the trace name is not defined but used, the following error occurs:
'51, Specified trace does not exist'
If the defined trace name already exist, the following error occurs:
'63, Duplicate trace name'
The following commands allow you to select the active trace directly by using TNAMe:
SCPI.CALCulate(Ch).FSIMulator.BALun.PARameter.TNAME.BALanced.DEFine
SCPI.CALCulate(Ch).FSIMulator.BALun.PARameter.TNAME.STATe
SCPI.CALCulate(Ch).PARameter.TNAME.DEFine