DIAdem Help

Command: ChnResampleFreqBasedXOffsetCalc2

  • Updated2024-09-12
  • 5 minute(s) read

Display all  Hide all

Command: ChnResampleFreqBasedXOffsetCalc2

Uses a synchronization channel to map two measurements on a new sampling rate.

Call ChnResampleFreqBasedXOffsetCalc2(XW, Y, ChnList, XOffset, XW, Y1, ChnList1, XOffset1, AutoTimeChn, XOffsetMode, SampleFrequency, [ResampleMappingMode], [ResampleAntiAliasingFilter], [ResampleInterpolateNovalues], [ResampleCorrelationMode])

Input Parameters

XW Specifies the time channel of the first measurement.  If all other channels are waveform channels, you do not need to specify this channel.
Y Specifies the synchronization channel of the first measurement.
ChnList Specifies one or more channels.
XOffset Specifies the offset for the first synchronization channel.
XW Specifies the time channel of the second measurement. If all other channels are waveform channels, you do not need to specify this channel.
Y1 Specifies the synchronization channel of the second measurement.
ChnList1 Specifies one or more channels.
XOffset1 Specifies the offset for the second synchronization channel.
AutoTimeChn Specifies whether DIAdem uses the first channel of a channel group as the time channel or whether you specify the time channel. If the value is TRUE, DIAdem uses the first channel of a channel group as the time channel. If the input channels are waveform channels, DIAdem uses the time part of the waveform.
XOffsetMode Specifies whether you set the offset or whether DIAdem automatically sets the offset.
SampleFrequency Specifies the sampling rate of the result channel in Hertz.
[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 NoValues in the y input channel by interpolating the neighbor points. The default value of the variable is FALSE so that DIAdem does not replace NoValues.
[ResampleCorrelationMode] Specifies whether DIAdem runs the cross correlation calculation in the frequency domain or the time domain. The default value of the variable is “FrequencyDomain”, so that DIAdem executes the calculation in the frequency domain.

The channels must contain at least two values and may not contain NoValues. The first channel must be a time channel or a numeric channel. If the first channel is a numeric channel, DIAdem interprets this channel as a time channel.

The command replaces the input channels with waveform result channels. The command deletes the time channel if the AutoTimeChn variable has the value TRUE and all channels in a channel group are input channels.

DIAdem additionally saves the calculated offset and the specified resampling method as custom properties with the names Result~XOffset and NI_display_mode, in the result channels. You can also find the calculated offset in the XOffsetDeltaTs variable.

Refer to the Help page Resampling and Synchronization for further information.

Dialog Box Call

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

Synchronize Data from Different Files

Related Topics

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