COM object EvResample

EvApplication> EvFileCollection > EvFile > EvVariablesCollection > EvVariableBase As EvVariableVirtual >EvVariableAcousticProperties > EvResample

 

View the COM map and the COM summary.

The EvResample object gives you access to information about settings on the Resample page of the Variable Properties dialog box of the acoustic virtual variable. EvResample may be used to inspect or set supported settings on the Resample page for any of the (three) variations of the Resample operator.

EvResample methods and properties:

CustomRanges
NumberOfDataPoints
NumberOfPings
StartRange
StopRange

 

Description

CustomRanges

(read-write) integer CustomRanges

Summary

Get or set the Custom ranges setting under the Output section of the Resample page of the Variable Properties dialog box.

  • 1 selects the Custom range setting.
  • 0 selects the Use ranges from operand 1 setting.
Example
Dim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication")
Dim EvFile: Set EvFile = EvApp.OpenFile("C:\EV files\Resample.EV")
Dim vEvVariablesCollection: Set vEvVariablesCollection = EvFile.Variables
Dim vEvVariable: Set vEvVariable = vEvVariablesCollection.FindByName("Resample by number of pings 1")

vEvVariable.Properties.Resample.NumberOfPings = 15
vEvVariable.Properties.Resample.NumberOfDataPoints = 1500

msgbox "check"

vEvVariable.Properties.Resample.CustomRanges = 1
vEvVariable.Properties.Resample.StartRange = 0.123
vEvVariable.Properties.Resample.StopRange = 10.123

msgbox "check"

NumberOfDataPoints

(read-write) integer NumberOfDataPoints

Summary

Get or set the Number of datapoints under the Output section on the Resample page of the Variable Properties dialog box.

Example

See Resample example.

NumberOfPings

(read-write) integer NumberOfPings

Summary

Get or set the Number of pings in interval under the Input section on the Resample page of the Variable Properties dialog box.

Example

See Resample example.

StartRange

(read-write) double StartRange

Summary

Get or set the Start range (m) under the Output section on the Resample page of the Variable Properties dialog box. This setting is available when Custom ranges is selected.

Example

See Resample example.

StopRange

(read-write) double StopRange

Summary

Get or set the Stop range (m) on the Resample page under the Output section of the Variable Properties dialog box. This setting is available when Custom ranges is selected.

Example

See Resample example.

See also

EvVariableAcousticProperties
Scripting with COM objects
COM object hierarchy