DUT Package XML Conventions
- 更新时间2024-10-31
- 阅读时长4分钟
The DUT XML configuration file (.dut) defines the characteristics and signals associated with a DUT. A DUT XML configuration file can be created and edited within TestStand by navigating to Tools»Edit DUT XML. Use the DUT XML editor to customize the configuration by defining how this test should appear in the Web UI. For example, you can customize the display name that shows in the Web UI Test Definition selector menu, or the description that shows in the info tip in the Web UI; you can declare a connector with its endpoints and measurement types; and you can declare the communication channels with their measurement types that need to be mapped to test endpoints in the Web UI and/or that you need to logged to a file.
DUT XML File Tag Reference
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Unique name of the DUT package. Once defined, this name should never be changed. If DisplayName is not defined, this name is shown in the Model drop-down listbox in the DUT Model section of the BTS Web UI Test Plan Editor. |
| DisplayName | string | No | — | Display name for the DUT model. This name is shown in the Model drop-down listbox in the DUT Model section of the BTS Web UI Test Plan Editor. |
| Description | string | Yes | — | High-level description of the DUT described in the DUT package. Once a DUT is added to a test plan, this description is shown as an info tip in the DUT Model section of the Test Plan Editor in the BTS Web UI when the corresponding test is selected in the Model drop-down listbox. |
| BarCodeScanner.Plugin | string | No | — | Component name of a DUT plugin that allows DUT serial numbers to be read using a barcode scanner. If included, appears to the right of the Serial Number control in the DUT Model section of the BTS Web UI Test Plan execution page. |
| DutDebugging.Plugin | string | No | — | Component name of a DUT plugin that allows live confirmation of a DUT connection to the BTS. If included, appears to the right of the Serial Number control in the DUT Model section of the BTS Web UI Test Plan Editor. |
| DutHelper.Plugin | string | No | — | Component name of a DUT plugin that gives specific instructions to an operator on how to connect and set up a DUT. These instructions can take the form of text or an image. If included, appears to the right of the Serial Number control in the DUT Model section of the BTS Web UI Test Plan Editor. |
| SystemLink. ConfigurationPath | string | No | — | Name and location of a SystemLink configuration file. The file defines a select set of port endpoints to publish as SystemLink tags. The file path should be relative to the .dut file. |
| IsDeprecated | boolean | No | False | Indicates if the DUT package name should be included in the DUT selector menu when creating a new Test Plan. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the DUT measurement. This name appears in one of the drop-down listboxes in the Endpoint list in the Endpoint Mappings section of the BTS Web UI Test Plan Editor. |
| ChannelPath | string | No | — | Path of the port-related channel, such as a VCOM custom device channel. For VCOM custom device channels, the path is relative to the VCOM custom device. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the DutConnector tag. |
| ConnectorInterface | string | Yes | — | Name of the connector package the <DutConnector> tag maps measurements to. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| ConnectorSignal | string | Yes | — | Name of the connector package signal that a DUT measurement is being mapped to. |
| MeasurementEndpoint | string | Yes | — | Name of the DUT measurement being mapped. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the port. |
| PortNumber | unsigned int | Yes | — | Number of the port. |
| Type | enum | Yes |
| Type of industrial communication protocol used on the port. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the measurement endpoint. |
Sample .dut File
The following example illustrates a sample structure for a .dut XML file.
<?xml version="1.0" encoding="utf-8" ?>
<DutModel Name ="6251.12" Description="Generic Battery"
SystemLink.ConfigurationPath =
"SystemLinkConfiguration.xml">
<MeasurementEndpoints>
<MeasurementEndpoint Name="Cell Voltage">
<VoltageInputAttributes Unit="Voltage"
MinValue = "0" MaxValue = "5"
InputConfiguration="Differential"/>
</MeasurementEndpoint>
<MeasurementEndpoint Name="Cell Temperature">
<TemperatureInputAttributes Unit="Celsius"
MinValue="0" MaxValue = "80"/>
</MeasurementEndpoint>
<MeasurementEndpoint Name="BMS Bat Pack Voltage"
ChannelPath="HS1_Rx/VICM/MSG_2005/HVBI_BatPackPrcdVltg">
<VoltageInputAttributes Unit="Voltage"
MinValue="0" MaxValue="450" />
</MeasurementEndpoint>
<MeasurementEndpoint Name="BMS Bat Pack Current"
ChannelPath="HS1_Rx/VICM/MSG_2005/
HiVltgBatPrcdCurr">
<CurrentInputAttributes Unit="Amperage"
MinValue="0" MaxValue="1000" />
</MeasurementEndpoint>
</MeasurementEndpoints>
<DutConnectors>
<DutConnector ConnectorInterface="ConnectorA" >
<SignalMapping ConnectorSignal="VC"
MeasurementEndpoint="Cell Voltage" />
<SignalMapping ConnectorSignal="TC"
MeasurementEndpoint="Cell Temperature" />
</DutConnector>
</DutConnectors>
<Ports>
<Port Name="CAN_1" PortNumber="1" Type="CAN">
<Endpoint Name="Battery Pack Voltage" />
<Endpoint Name="Battery Pack Current" />
</Port>
</Ports>
</DutModel>
相关内容
- Measurement Attribute XML Conventions
Measurement Attributes describe different types of measurements that can be monitored during a test executed in the BTS.