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 anad 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:

AsVariableBase
AsVariableAcoustic
AsVariableVirtual
AddVariable
ExportData
ExportEVD
ExportSettings
ExportTrackToImage

Name
Useable
VariableType

 

Description

ExportData

ExportData(string FileName, int FirstPing, int LastPing)

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.
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
    

See also

Scripting with COM objects
COM object hierarchy
EvVariableAcoustic
EvVariableVirtual
EvVariablesCollection