DIAdem API Reference

Command: ChnConvertAssignmentToNumeric

  • Updated2023-02-21
  • 2 minute(s) read

Display all  Hide all

Valid names: ChnConvertAssignmentToNumeric, AssignmentChnToNumericChn

Generates a numeric channel from an assignment channel. The channel properties remain, whereas the assignments are lost.

Set ChnResult = ChnConvertAssignmentToNumeric(Y, ReplaceWithNoValue, [DeleteAssignments])

Input Parameters

Y Specifies the data channel containing the y-values.
ReplaceWithNoValue Specifies that DIAdem replaces the values in the numeric channel with NoValues, which are connected to assignments in the assignment channel. The default value of the variable is FALSE, so that DIAdem does not replace the values originally connected with assignments with NoValues.
[DeleteAssignments] Specifies that DIAdem deletes the assignments for the AssignmentChnToNumericChn command and replaces the numeric channel with the assignment channel for the ChnToAssignmentChn command and also that DIAdem deletes the channel from where the assignment texts originate. The default value of the variable is FALSE.

Return Parameters

ChnResult Contains the result channel. ElementList <Data> type return value.
Note  The y-channel must be an assignment channel. DIAdem adds the numeric channel behind the assignment channel to the Data Portal and uses the channel name of the assignment channel with the extension Numeric.
If you want to use waveform channels in this command, follow Rule 2.3 for Calculating with Waveform Channels.

Dialog Box Call

Call SUDDlgShow("Main", ResourceDrv & "AnaAssignment")

Numeric Channels <-> Assignment Channels

Related Topics

Command: ChnConvertAssignmentToText | Command: ChnConvertCartesianToPolar | Command: ChnConvertNumericToAssignment | Command: ChnConvertNumericToTime | Command: ChnConvertNumericToWaveform | Command: ChnConvertPolarToCartesian | Command: ChnConvertTextToAssignment | Command: ChnConvertTimeToNumeric | Command: ChnConvertWaveformToNumeric