NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

User:DVT/UserDocumentation/DVT Control XML Format

From Texas Instruments Wiki
Jump to: navigation, search

DVT Tasks[edit]

DVT Control XML files are based on Ant. For a basic introduction to Ant see [1]. The following DVT tasks are available.

dvt.analysisfeature.add[edit]

Adds an Analysis Feature to an Analysis Session. To complete the hook up process use the task dvt.hookup.

Attributes:

  • id: A name for the reference returned by this task pointing to itself.
  • refid: The reference to the context menu from which this Analysis Features is being launched. It is used to identify the Analysis Session to which the specified Analysis Feature will be added.
  • name: The name of the Analysis Feature to add. The solution and control xml files for the Analysis Feature are expected to be in this folder: ccsv4\dvt\AnalysisLibrary\AnalysisFeatures\<name>\. The names of the control xml and the solution must be <name>.control.xml and <name>.sol, respectively.
  • debug (optional): The default is false. If false, all components in the Analysis Feature solution whose name starts with $Debug will be removed when adding it to an Analysis Session. If true they will be retained. This is useful for debugging Analysis Features. For instance, it allows users to add extra buffers and tables to inspect the data along certain paths on the solution.

Example:

<dvt.analysisfeature.add id="countAnalysisAF" refid="contextMenu" name="CountAnalysis" /> <dvt.hookup source="contextMenu" destination="countAnalysisAF" destinationChannel="0"/>

dvt.call[edit]

Calls another target.

Limitation: Since the called target is run in a new project any properties, references, etc. set by called target will NOT persist back to the calling project. It is therefore recommended to use the depends attribute to specify execution flow whenever possible. See [2] and [3] for additional information.

Attributes:

  • target: The name of the target to call.

Nested Elements[edit]

reference[edit]

A reference to pass to the target.

Attributes:

  • refid: The name of the reference.

Example:

<dvt.call target="configure" >

 <reference refid="count"/>

</dvt.call>

dvt.config.file[edit]

Opens a File Open dialog which allows the user to choose a file.

Attributes:

  • id: The name of the property in which the path and name of the chosen file will be returned.
  • text: Text that will appear in the title bar of the dialog.
  • path: The initial path.
  • file: The initial filename.
  • extensions: A list of file extensions.

Example:

<property name="csvFileName" value=""/> <dvt.config.file id="csvFileName" text="Open File" path="" file="${csvFileName}" extensions="*.csv"/>

dvt.config.wizard[edit]

Defines a wizard. It allows user to configure Analysis Features and Data Providers.

Attributes:

  • id: A name for the reference returned by this task pointing to itself.
  • text: Text that will appear in the title bar of the wizard dialog.

Nested Elements[edit]

page[edit]

Create a wizard page.

Attributes:

  • text: Text that will appear in the title bar of the wizard dialog.
  • numColumns: The number of columns in the page.
label[edit]

Within a page element, creates a text label.

Attributes:

  • text: The text that will appear as the label.
edit[edit]

Within a page element, creates an edit box that allows the user to enter text.

Attributes:

  • id: The name of the property that will contain the entered text.
  • text: The initial text that will appear in the edit box.
combo[edit]

Within a page element, creates combo box that allows the user to make a selection from a list of items.

Attributes:

  • id: The name of the property that will contain the text of the selected item.
  • selection: The initially selected item in the combo box as identified by its zero-based number.

Example:

<dvt.config.wizard id="ConfigWizard" text="Configuration">

 <page text="Events" numColumns="2">
   <label text="Data Field"/> 
   <edit id="wizard.page1.datafield" text="Data"/>
   <label text="Key Field"/>
   <edit id="wizard.page1.keyfield" text="Key"/>
 </page>
 <page text="Views" numColumns="2">
   <label text="Context Analysis "/>
   <combo id="wizard.page2.contextanalysis" selection="1">
     <item text="Yes"/>
     <item text="No"/>
   </combo>
 </page>

</dvt.config.wizard>

dvt.configuration[edit]

Creates a control widget in the Configuration column of the Dashboard.

Nested Elements[edit]

button[edit]

Create a button.

Attributes:

  • text: Text that will appear inside the button.
  • icon: Path and file name to an image that will appear inside the button.


Example:

<dvt.configuration>

 <button text="Properties...">
   <dvt.call target="openFile">
     <reference refid="csvViewerDp"/>
   </dvt.call>
 </button>

</dvt.configuration>

dvt.configure[edit]

Configures a Data Provider, Analysis Feature, or Solution with the set properties. An Analysis Feature must be hooked up using dvt.hookup before it can be configured.

Attributes:

  • refid: The reference to the Data Provider, Analysis Feature, or Solution as returned by dvt.dataprovider.add or dvt.analysisfeature.add in the id attribute.

Example:

<dvt.analysisfeature.add id="durationAf" refid="contextMenu" name="DurationAnalysis" /> <dvt.hookup source="contextMenu" destination="durationAf" destinationChannel="0"/> <dvt.configure refid="durationAf"/>

dvt.connect[edit]

Connects two data processors in the data model.

Attributes:

  • source: The name of the source data processor.
  • destination: The name of the destination data processor.
  • sourceChannel: The channel number of the output of the source data processor.
  • destinationChannel: The channel number of the input of the destination data processor.

dvt.dataprovider.add[edit]

Adds a Data Provider to an Analysis Session.

Attributes:

  • id: A name for the reference returned by this task pointing to itself.
  • name: The name of the Data Provider to add. The solution and control xml files for the Data Provider are expected to be in this folder: ccsv4\dvt\AnalysisLibrary\DataProvider\<name>\. The names of the control xml and the solution must be <name>.control.xml and <name>.sol, respectively.
  • debug: The default is false. If false, all components in the Data Provider solution whose name starts with $Debug will be removed when adding it to an Analysis Session. If true they will be retained. This is useful for debugging Data Provider. For instance, it allows users to add extra buffers and tables to inspect the data along certain paths in the solution.

Example:

<dvt.dataprovider.add id="csvViewerDp" name="CsvViewer"/>

dvt.execute[edit]

Execute a Java method on a Data Processor.

Attributes:

  • refid: A reference to a Data Provider or Analysis Feature.
  • dataprocessor: The name of the Data Processor.
  • name: The name of the method.

Use <param value="x"/> to pass parameters to the method.

Example:

<dvt.execute refid="duration" dataprocessor="MultiHomoFSM" name="createMHFSMHelper">

 <param value="${wizard.page2.timefield}"/>
 <param value="Sequence"/>

</dvt.execute>

dvt.hookup[edit]

Hooks up an Analysis Feature to a buffer bypass hook-in point. All this does is to assign a hook-in point to an input of the Analysis Feature. The Analysis Feature will not be connected or configured at this point.

Attributes:

  • source: A context menu reference. It identifies the pane and in turn the hook-in point associated with the pane that the Analysis Feature will be hooked up to.
  • refid: The reference to the context menu from which this Analysis Features is launched. It is used to identify the pane and in turn the hook-in point associated with the pane that the Analysis Feature will be hooked up to.
  • destination: A reference to the Analysis Feature to hook up.
  • destinationChannel: The number of the input of the Analysis Feature to use.

Example:

<dvt.analysisfeature.add id="countAnalysisAF" refid="contextMenu" name="CountAnalysis" /> <dvt.hookup source="contextMenu" destination="countAnalysisAF" destinationChannel="0"/>

dvt.menu.context[edit]

Create a view context menu.

Attributes:

  • id (optional): A name for the reference returned by this task pointing to itself.
  • refid (optional): A reference to a Data Provider, Analysis Feature or Solution. The context menu will only appear for views that are associated with the provided reference.
  • view (optional): The name of the DVT view for which this context menu will appear.
  • allViews (optional): If set to true, the context menu will appear on all views.
  • type (optional): If set to "table" the menu will only appear for DVT table views. If set to "graph" the menu will only appear for DVT graph views.
  • text: The text that will appear in the menu.

The task can be nested to created nested menus.

Example:

<dvt.menu.context type="table" text="Analysis Features">

 <dvt.menu.context id="contextMenu" type="table" text="Count Analysis">
   <dvt.call target="analyze" >
     <reference refid="contextMenu"/>
   </dvt.call>
 </dvt.menu.context>

</dvt.menu.context>

dvt.property[edit]

Sets or reads out DVT properties of views or data processors.

Attributes:

  • id: The name of the Ant property in which the read out DVT property value will be returned.
  • refid: A reference to a Data Provider, Analysis Feature or Solution.
  • dataprocessor: The name of the DVT data processor whose property is to be set or read. The data processor name is the original name as specified in the solution.
  • view: The name of the DVT view whose property is to be set or read. The view name is the original name as specified in the solution.
  • name: The name of the DVT property to be set or read. See the DVT Component Reference Guide or open the solution in the Solution Builder to see the available properties of a component. If the property is part of a property hierarchy, provide the complete hierarchy path using ":" as a separator.
  • value: The value to set the property to.

Example: Set data processor properties

<dvt.property refid="countAnalysisAF" dataprocessor="CountAnalyzer" name="Data Field" value="${wizard.page1.datafield}"/>

Example: Set view properties

<dvt.property refid="csvViewerDp" view="${viewName}" name="General:Row count column" value="true"/>

Example: Read out data processor properties

<dvt.property id="original" refid="csvViewerDp" dataprocessor="CSVFileReader" name="File Name"/>

Example: Read out the field names of a view

<dvt.property id="fields" refid="countAnalysisAF" view="Count Analysis" name="fieldNames"/> <echo message="${fields}"/> <echo message="${fields:0}, ${fields:1}, ${fields:2}"/>

dvt.remove[edit]

Remove an Analysis Feature, Data Provider, or context menu.

Attributes:

  • refid: A reference to a Data Provider, Analysis Feature or context menu.

Example:

<dvt.remove refid="openFileMenu"/> <dvt.remove refid="csvViewerDp"/>

dvt.setloglevel[edit]

Sets the log level for error reporting. The log level will be changed just for executing that particular .control.xml file only. To see full traces for exceptions set the log level to at least verbose.

Attributes:

  • level: error, warn, info (default), verbose, debug.

Example:

<dvt.setloglevel level=”verbose”/>


dvt.start[edit]

Starts the data sources feeding the specified Analysis Feature, Data Provider, or solution.

Attributes:

  • refid: A reference to a Data Provider, Analysis Feature or Solution.

Example:

<dvt.start refid="csvViewerDp"/>

dvt.status[edit]

Creates a control widget in the Configuration column of the Dashboard.

Nested Elements[edit]

button[edit]

Create a button.

Attributes:

  • text: Text that will appear inside the button.
  • icon: Path and file name to an image that will appear inside the button.

Example:

<dvt.status>

 <button icon="openFile.gif">
   <dvt.call target="openFile">
     <reference refid="csvViewerDp"/>
   </dvt.call>
 </button>

</dvt.status>


dvt.stop[edit]

Stops the data sources feeding the specified Analysis Feature, Data Provider, or solution.

Attributes:

  • refid: A reference to a Data Provider, Analysis Feature or Solution.

Example:

<dvt.stop refid="csvViewerDp"/>


dvt.view.show[edit]

Opens and shows a DVT view.

Attributes:

  • refid: A reference to a Data Provider, Analysis Feature or Solution.
  • view: The name of the DVT view to show. The view name is the original name as specified in the solution.

Example:

<dvt.view.show refid="countAnalysisAF" view="Count Analysis"/>