COM object EvVariableBase

EvApplication > EvFileCollection > EvFile > EvVariablesCollection > EvVariableBase

 

View the COM map and the COM summary.

The EvVariableBase object gives access to information on and actions with a variable in an EV file. This includes acoustic, virtual and other Echoview variables.

You can use the EvVariableBase object to determine if the variable is an acoustic variable or a virtual variable. With this knowledge you can proceed to use the methods and properties of the EvVariableAcoustic object or the EvVariableVirtual object.

The EvFile.Variables[] property lists all of the variables in an EV file and is an EvVariablesCollection.

EvVariable base methods and properties:

AddExporter
AddVariable
AsVariableBase
AsVariableAcoustic
AsVariableVirtual
CloseAssociatedViews
ExportData
ExportEVD
ExportEVDRange
ExportSettings
ExportTrackToImage

Name
OpenView
Useable
VariableType

 

Description

ExportData

ExportData(string FileName, int FirstPing, int LastPing, double MaxFileSizeMB)

Summary

Export the data for the current variable. ExportData includes support for acoustic, position, attitude and distance variables.

Parameters
  • FileName
  • The name of file and path to export data to.
  • FirstPing
  • The ping to begin data export.
  • LastPing
  • The ping to end the data export.
  • MaxFileSizeMB (optional)
  • Specifies the Target file size (MB) (refer to Export options).
  • The default is -1 and exports a single file.
Return

True, if successful.

Notes:

  • Exports to a nominated filename with a default .csv extension (if no extension is specified). Other file extensions such as .mat (MATLAB) can be specified.
  • To export a whole echogram when the start and stop ping numbers are unknown, use -1 for the FirstPing and LastPing. For example:
    EvVar.ExportData "C:\Echoview exports\Test.mat", -1,-1, -1

See also

Scripting with COM objects
COM object hierarchy
EvVariableAcoustic
EvVariableVirtual
EvVariablesCollection