DIAdemヘルプ

Command: ChnResampleChnBasedExt

  • 更新日2024-09-12
  • 16分で読める

Display all  Hide all

Command: ChnResampleChnBasedExt

Maps several signals onto a common interpolation channel.

Set ChnResult = ChnResampleChnBasedExt(XW, ChnList, SamplingPointChn, ResampleMappingMode, ResampleAntiAliasingFilter, ResampleInterpolateNovalues, [ResampleInterpolationMethod])

Input Parameters

XW Specifies the data channel containing the time values. If all y-channels are waveform channels, you do not need to specify this channel.
ChnList Specifies one or more channels.
SamplingPointChn Specifies the data channel containing the interpolation points.
ResampleMappingMode Specifies the mapping mode for the resampling.
ResampleAntiAliasingFilter Specifies that DIAdem filters the y input channel. The default value of the variable is FALSE, so that DIAdem does not filter the input channel.
ResampleInterpolateNovalues Specifies that DIAdem replaces the NoValues in the y-values by interpolating the neighboring points. The default value of the variable is FALSE so that DIAdem does not replace NoValues.
[ResampleInterpolationMethod] Specifies how DIAdem interpolates the y-channels if the ResampleMappingMode variable has the value "Analog". As a default, the ResampleInterpolationMethod variable has the value "Akima", which means that DIAdem interpolates the signal with Akima subsplines if you do not specify the value.

Return Parameters

ChnResult Contains the result channels with the y-values converted to the interpolation points. ElementList <Data> type return value.
The names of the result channels are composed of ResampledSignal_ and the respective name of the y-channel.
Refer to the Help page Resampling and Synchronization for further information.

Examples

The following example maps the signals defined through the first channel of the first channel group and the channels starting with “T” of the fourth channel group onto the interpolation channel [1]/[3]. DIAdem saves the result channels in the Results channel group and specifies the interpolation type automatically without filtering the input channel. DIAdem creates the default Results group and accesses the input channels through channel objects.

VBScriptPython

 

Dim oMyXChannel, oMyX1Channel, oMyChannelList, oMyResultChn
Set oMyXChannel = Data.Root.ChannelGroups(1).Channels(1)
Set oMyChannelList = Data.GetChannels("[4]/T*")
Set oMyX1Channel = Data.Root.ChannelGroups(1).Channels(3)
If Not(Data.Root.ChannelGroups.Exists("Results")) Then Data.Root.ChannelGroups.Add("Results") 
Data.Root.ChannelGroups.Item("Results").Activate
Set oMyResultChn = ChnResampleChnBasedExt(oMyXChannel, oMyChannelList, oMyX1Channel, "Automatic", False, False, "Akima")
Call MsgBox("Result channel: " & oMyResultChn(1).ChannelGroup.Name & "/" & oMyResultChn(1).Name)

The following example maps the signals defined through the first channel of the first channel group and the channels starting with “T” of the fourth channel group onto the interpolation channel [1]/[3]. DIAdem saves the result channels in the Results channel group and specifies the interpolation type automatically without filtering the input channel. DIAem creates the channel list and the default Results group through channel objects and accesses the input channels through the channel reference.

VBScriptPython

 

Dim oMyChannelList, oMyResultChn
Set oMyChannelList = Data.GetChannels("[4]/T*")
If Not(Data.Root.ChannelGroups.Exists("Results")) Then Data.Root.ChannelGroups.Add("Results") 
Data.Root.ChannelGroups.Item("Results").Activate
Set oMyResultChn = ChnResampleChnBasedExt("[1]/[1]", oMyChannelList, "[1]/[3]", "Automatic", False, False, "Akima")
Call MsgBox("Result channel: " & oMyResultChn(1).ChannelGroup.Name & "/" & oMyResultChn(1).Name)

Dialog Box Call

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

Resampling

Related Topics

Command: ChnResampleChnBased | Command: ChnResampleChnBasedXOffsetCalc2 | Command: ChnResampleChnBasedXOffsetCalc3 | Command: ChnResampleFreqBased | Command: ChnResampleFreqBasedExt | Command: ChnResampleFreqBasedXOffsetCalc2 | Command: ChnResampleFreqBasedXOffsetCalc3 | Resampling