Command: ChnEventDetectionDifference
- Updated2024-09-12
- 4 minute(s) read
Command: ChnEventDetectionDifference
Command: ChnEventDetectionDifference
Checks whether two successive single values differ by a certain amount.
Input Parameters
XW | Specifies the data channel containing the x-values. You do not need to specify this channel. |
Y | Specifies the data channel containing the y-values. |
![]() |
Specifies the sum of the difference value on which DIAdem checks a channel. |
![]() |
Specifies the difference type of the difference value on which DIAdem checks a channel. |
![]() |
Specifies at which line number DIAdem starts checking the values of the data channel. The default value is 0, which means that DIAdem starts checking the values from the first row. |
![]() |
Specifies the line number up to which DIAdem checks the values of the data channel. The default value is 0, which means that DIAdem checks the values up to the last row. |
![]() |
Specifies the maximum number of result values. The default value is 0 and means that DIAdem uses all result values. |
![]() |
Specifies whether DIAdem uses a NoValue at the end of the value area searched for. The default value is FALSE, which means that DIAdem ignores NoValues. |
Return Parameters
ReturnValue | A return value is a two-dimensional array containing the search results. Refer to Result of the Event Search for a detailed description of the array. Use the variables ChnEventList1, ChnEventList2, or ChnEventResultList as the return value of this function, or define your own variable. |
Examples
The following example searches the areas in which the values of the [1]/[3] channel differ from their preceding value by 100. The example returns an Event/EventStatus channel, which contains the value 1, when the difference condition is met. Otherwise the result channel contains the value 0.
VBScript | Python |
ChnEventResultList= Null ChnEventResultList = ChnEventDetectionDifference( , "[1]/[3]", 100, "absolute") Call ChnEventCreateStatusChn("Event/EventStatus", ChnEventResultList, "[1]/[3]", 0, 1)
Dialog Box Call
Call SUDDlgShow("Main", ResourceDrv & "AnaChnEventDetection")
Related Topics
Command: ChnEventCompareChnEQ | Command: ChnEventCompareChnGE | Command: ChnEventCompareChnGT | Command: ChnEventCompareChnLE | Command: ChnEventCompareChnLT | Command: ChnEventCompareChnNE | Command: ChnEventCopyValues | Command: ChnEventCount | Command: ChnEventCreateFilteredChn | Command: ChnEventCreateFilteredFalseChn | Command: ChnEventCreateFilteredTrueChn | Command: ChnEventCreateStatusChn | Command: ChnEventCreateXYChannels | Command: ChnEventDetectionEqualStr | Command: ChnEventDetectionInStr | Command: ChnEventDetectionSlope | Command: ChnEventDetectionWindow | Command: ChnEventDuration | Command: ChnEventFilter | Command: ChnEventFind | Command: ChnEventGate | Command: ChnEventInvalidValues | Command: ChnEventOperationAND | Command: ChnEventOperationEventIncluded | Command: ChnEventOperationNOT | Command: ChnEventOperationOR | Command: ChnEventPatternFind | Command: ChnEventResultAddPrePost | Command: ChnEventSampleCount | Command: ChnEventSort | Command: ChnEventStatArithMean | Command: ChnEventStatMax | Command: ChnEventStatMin | Command: ChnEventStatRange | Command: ChnEventStatStandardDeviation | Command: ChnEventStatSum | Command: ChnEventStatValueCount | Command: ChnFind | Command: ChnFindReverse | Result of the Event Search