DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

VB Language Issue in DIADEM

Somewhat elementary question.  Is there a way to change channel names from a script in DIADEM?  If so, how is it done?  I cannot seem to find a function that does this.
Paul
0 Kudos
Message 1 of 2
(3,162 Views)
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
Message 2 of 2
(3,154 Views)