DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: ChnConvertWaveformToNumeric

Display all  Hide all

Command: ChnConvertWaveformToNumeric

Valid names: ChnConvertWaveformToNumeric, WfChnToChn

Converts waveform channels into channel pairs of x-channels and y-channels.

Set ChnResult = ChnConvertWaveformToNumeric(ChnList, [KeepWfProperties], [WfXStartTimeMode])

Input Parameters

ChnList Specifies one or more channels.
[KeepWfProperties] 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.
[WfXStartTimeMode] 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.

VBScriptPython

 

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

Was this information helpful?