DIAdem Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Radek_Codr

SCRIPT Calling simplification

Status: Completed

From DIAdem 2015 on it is possible to use the channel object as parameter. Example:

ChnSmooth(oMyChannel, oMyChannel, 10, “maxNumber“)

Greetings

Walter

Let argument in object.GetReference(argument) method should be optional and as default set ExtendChnName

  In this case calling of function should look like Call ChnSmooth(oMyChannel.GetReference,oMyChannel.GetReference,10,“maxNumber“)

 

Also include in Channel object even required properties (description, unit, max, min, length, etc.). This should be equivalent to oMyChannel.Properties(NameOrIndex).Value

1 Comment
Walter_Rick
NI Employee (retired)
Status changed to: Completed

From DIAdem 2015 on it is possible to use the channel object as parameter. Example:

ChnSmooth(oMyChannel, oMyChannel, 10, “maxNumber“)

Greetings

Walter