Command: ChnConvertWaveformToNumeric
- Updated2024-09-12
- 3 minute(s) read
Command: ChnConvertWaveformToNumeric
Command: ChnConvertWaveformToNumeric
Valid names: ChnConvertWaveformToNumeric, WfChnToChn
Converts waveform channels into channel pairs of x-channels and y-channels.
Input Parameters
![]() |
Specifies one or more channels. |
![]() |
Specifies whether DIAdem maintains the waveform properties during this operation. The default value is FALSE and specifies that DIAdem does not maintain the waveform properties. |
![]() |
Specifies the type of time reference when converting numeric channels to waveform channels, and whether DIAdem considers the waveform start time when converting waveform channels to numeric channels or when generating a channel from the x-part of a waveform channel. |
Return Parameters
ChnResult | Contains the x result channels. For two consecutive waveform channels with the same x-part in a group in the Data Portal, DIAdem creates one common x-channel. This x-channel is repeated for every waveform channel in the channel list. Therefore, the returned channel list contains the same number of elements as DIAdem has converted waveform channels. ElementList <Data> type return value. |
Example
The following example converts the waveform channels of the fourth channel group, whose names start with T, into channel pairs of x- and y-channels.
VBScript | Python |
Dim oMyChannelList, oMyResultChn Set oMyChannelList = Data.GetChannels("[4]/T*") Set oMyResultChn = WfChnToChn(oMyChannelList, False, "WfXRelative") Call MsgBox("Result channel(1): " & oMyResultChn(1).ChannelGroup.Name & "/" & oMyResultChn(1).Name & vbCRLF &_ "Result channel(2): " & oMyResultChn(2).ChannelGroup.Name & "/" & oMyResultChn(2).Name & vbCRLF &_ "Result channel(3): " & oMyResultChn(3).ChannelGroup.Name & "/" & oMyResultChn(3).Name)
Related Topics
Command: ChnConvertAssignmentToNumeric | Command: ChnConvertAssignmentToText | Command: ChnConvertCartesianToPolar | Command: ChnConvertNumericToAssignment | Command: ChnConvertNumericToTime | Command: ChnConvertNumericToWaveform | Command: ChnConvertPolarToCartesian | Command: ChnConvertTextToAssignment | Command: ChnConvertTimeToNumeric