Skip to main content
Definition: ModelCenter/src/ModelCenter.odl (line 1531) COM Instance.

Members

Properties

Property isVisible

Definition: ModelCenter/src/ModelCenter.odl (line 1)
Determine if the data collector is visible Return type: BOOL

Public functions

Function storeCurrentDesignPoint

Stores the current Model values into the Data Collector as a run. Return type: void

Function enableGraphTab

Enables or disables the graph tab. Parameters:
  • flag: Enable(TRUE) or Disable(FALSE).
Parameters:
  • BOOL flag
Return type: void

Function show

Displays the Data Collector GUI. Return type: void

Function addCustom

Adds a custom variable to the Data Collector. Parameters:
  • variable: Name of the custom variable.
  • label: Label of the custom variable.
Parameters:
  • BSTR variable
  • BSTR label
Return type: void

Function selectX

Selects the x-axis variable for the Data Collector graph. Parameters:
  • name: Full ModelCenter path of the variable.
Parameters:
  • BSTR name
Return type: void

Function selectY

Selects a y-axis variable for the Data Collector graph. More than one y-axis variable can be selected. Parameters:
  • name: Full ModelCenter path of the variable.
Parameters:
  • BSTR name
Return type: void

Function setNumExpectedRuns

Sets the range of the Data Collector progress meter. Parameters:
  • numRuns: Number of expected runs.
Parameters:
  • long numRuns
Return type: void

Function startRuns

Informs the Data Collector that data is about to be collected. Return type: void

Function endRuns

Informs the Data Collector that data collection is complete. Return type: void

Function getNumFailedRuns

Finds out how many runs failed in the Data Collector. Returns: The number of failed runs. Return type: long

Function getErrorID

Gets the error ID for the specified run. If the ID is 0, then the run succeeded. Parameters:
  • run: Index of the run you want the error ID for (0-based index).
Returns: The error ID. Parameters:
  • long run
Return type: int

Function getErrorMessage

Gets the error message for a specified run. Parameters:
  • run: Index of the run you want the error ID for (0-based index).
Returns: The error message. Parameters:
  • long run
Return type: BSTR

Function getNumRuns

Finds out how many runs are in the Data Collector. Returns: The number of runs. Return type: long

Function getNumVariables

Finds out how many variables are in the Data Collector. Returns: The number of variables. Return type: long

Function getValue

Gets the value for a variable/run combination. Parameters:
  • index: Index of the variable location (0-based index).
  • run: Index of the run (0-based index).
Returns: The value. Parameters:
  • VARIANT index
  • long run
Return type: VARIANT

Function getVariableDescription

Gets the description of a variable. Parameters:
  • index: Index of the variable location (0-based index).
Returns: An IDispatch* to the description of the variable. Parameters:
  • VARIANT index
Return type: IDispatch *

Function isValid

Finds out whether or not a variable/run combination is valid. Parameters:
  • index: Index of the variable location (0-based index).
  • run: Index of the run (0-based index).
Returns: yes(TRUE) or no(FALSE). Parameters:
  • VARIANT index
  • long run
Return type: BOOL

Function save

Saves the data to a .pxt(ModelCenter Trade Study) file. Parameters:
  • fileName: Path of the .pxt file to be saved.
  • displayName: Display name of the Trade Study.
  • description: Description of the Trade Study.
  • author: Author of the Trade Study.
  • saveModel: Whether or not to save the Model as part of the Trade Study.
Parameters:
  • BSTR fileName
  • BSTR displayName
  • BSTR description
  • BSTR author
  • BOOL saveModel
Return type: void

Function exportToCSV

Saves the Data Collector data as a comma separated list of values. Parameters:
  • fileName: Path of the .csv file to write.
Parameters:
  • BSTR fileName
Return type: void

Function toString

Converts the Data Collector setup and data to a string. Returns: Converted value of the Data Collector as a string. Return type: BSTR

Function fromString

Restores the Data Collector data and setup from a string. Parameters:
  • str: String containing the Data Collector setup.
Parameters:
  • BSTR str
Return type: void

Function getDataExplorer

Returns the ModelCenter 6.0 API style object for the Data Collector (termed the Data Explorer). Returns: An IDispatch* to a IDataExplorer object. Return type: IDispatch *

Function hide

Hides the Data Collector. Return type: void

Private functions

Function enableCarpetPlotTab

Parameters:
  • BSTR var1
  • BSTR var2
  • BSTR plotVar
Return type: void

Function storeCustomDesignPoint

Parameters:
  • IDispatch * customDesignPoint
Return type: void

Function createEmptyRuns

Parameters:
  • long numEmptyRuns
Return type: void

Function setCustomRun

Parameters:
  • long index
  • IDispatch * customDesignPoint
Return type: void

Function newCustomDesignPoint

Return type: IDispatch *

Function enableMainEffectsTab

Return type: void