DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: ChnSub

Display all  Hide all

Command: ChnSub

Subtracts one channel from another.

Set ChnResult = ChnSub(Y, Y1, ResultChannel)

Input Parameters

Y Specifies the data channel containing minuend values.
Y1 Specifies the data channel containing the subtrahend values.
ResultChannel Specifies the result channel.

Return Parameters

ChnResult Contains the result channel. ElementList <Data> type return value.

Example

The following example subtracts one channel from another. DIAdem saves the result channel name in the MyResultChn variable.

VBScriptPython

 

Dim MyResultChn
MyResultChn = ChnSub("Group1/Channel1","Group1/Channel2")

Related Topics

Command: ChnAdd | Command: ChnDiv | Command: ChnMul

Was this information helpful?