Hello Paul,
Assuming you know the channel number (x) here is what you want to do :
CN(x) = "new name"
There is a more general approach to change any channel related properties : Go to the DataPortal, select the channel and then drag and drop the property you want to change from the list in the lower part of the DataPortal to the SCRIPT window. You will get a line of code generated telling you what the name of the parameter is. For the channel name you should get something like this :
ChnPropGet("[1]/Torque", "name") ??? Call ChnPropSet("[1]/Torque", "name", "")
You want to select either the "Get" or the "Set" function from the generated code.
Hope this helps
Andreas