Test Station Package XML Conventions
- 更新时间2024-10-31
- 阅读时长5分钟
The test station XML configuration file (.teststation) defines the instrument channel mappings for a test station during a given test.
Test Station XML File Tag Reference
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Unique name of the test station package. Once defined, this name should never be changed. If DisplayName is not defined, this name is shown in the Name drop-down listbox in the Test Station section of the BTS Web UI Test Plan Editor. |
| DisplayName | string | No | — | Display name of the test station. This name is shown in the Name listbox in the Test Station section of the BTS Web UI Test Plan Editor. control. |
| SystemDefinition | string | Yes | — | Name of the .nivssdf file associated with the instruments, channels, and endpoints defined in the .teststation file. |
| ChannelMappings | string | No | — | Name and location of channel mappings file. The file path should be relative to the .teststation file. |
| TestStationDebuggingPage.Plugin | string | No | — | Identifier name of plugin used to debug a test stations’ physical connections or other issues. If included, appears as a Debugging button in the Test Station section of the BTS Web UI Test Plan Editor. |
| TestStandGrpcService.UseSsl | string | No | false | Indicates if the BTS Server should establish an encrypted link between a server and a client. |
| TestStandGrpcService.Port | string | No | 64873 | Specifies the port used for the TestStand gRPC service on the Lab PCs. |
| IsDeprecated | boolean | No | False | Indicates if the test station package name should be included in the test package selector menu when creating a new Test Plan. |
| CalibrationAndScales | string | No | — | Name and location of the calibration and scales file. The file path should be relative to the .teststation file. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | Yes | — | Name of the instrument. |
| Type | enum | Yes |
| User-defined type of the instrument. The data type of this attribute can be expanded by supplying plugins that add additional types. |
| RootChannelPath | string | Yes | — | Path of the instrument in the .nivssdf file. |
| ConfigurationInstrument.ConfigurationPath | string | No | — | Name of the Instrument .xml file associated with this instrument. If a configuration path is not provided, the system looks for a path of Name.xml. |
| ChannelsAliasGroup | string | No | "" (empty string) | Name of the Channel Group the instrument's channels belong to. This name can affect the Alias folder organization and the Embedded Data Logger channel groups. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Index | unsigned int | Yes | — | Index of the socket. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| Name | string | No | "" (empty string) | Name of the <Connector> tag. This name appears in one of the drop-down listboxes in the Test Station Connector list in the DUT to Test Station Connectors section of the BTS Web UI Test Plan Editor. |
| ConnectorInterface | string | Yes | — | Name of the connector package the <Connector> tag is mapping channels to. |
| Attribute Name | Data Type | Required? | Accepted and Default Values | Description |
|---|---|---|---|---|
| ConnectorSignal | string | Yes | — | Name of the connector package signal that a test station channel is being mapped to. |
| ChannelPath | string | Yes | — | Qualified path in VeriStand to software location of specific instrument channel in an instrument. |
| 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 endpoint value. 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 | Yes | — | Qualified path in VeriStand to software location of endpoint value. |
Sample .teststation File
The following example illustrates a sample structure for a .teststation XML file.
<?xml version="1.0" encoding="utf-8" ?>
<TestSation Name ="Test Station 24"
SystemDefinition="SystemDefinition-TestStation24.nivssdf"
Hostname="192.168.132.127" Location="Bay 24">
<Instruments>
<Instrument Name="Scan Engine" Type="ScanEngine"
RootChannelPath="Targets/Controller/Scan Engine
and EtherCAT/Local Chassis/Slot2 (NI 9213)" />
<Instrument Name="Network Daq" Type="Network-DAQ"
RootChannelPath="Targets/Controller/
Custom Devices/Network DAQ" />
<Instrument Name="VCOM"
Type="Vehicle Communications" RootChannelPath=
"Targets/Controller/Custom Devices/VCOM" />
</Instruments>
<Sockets>
<Socket Index="1">
<Connectors>
<Connector Name="Socket Connector 1"
ConnectorInterface="type A" >
<SignalMapping ConnectorSignal="TC1"
ChannelPath="Targets/Controller/
Scan Engine and EtherCAT/Local
Chassis/Slot2 (NI 9213)/tc0" />
<SignalMapping ConnectorSignal="VC1"
ChannelPath="Targets/Controller/
Custom Devices/
Network DAQ/Measurements/Channel 0" />
</Connector>
</Connectors>
<Ports>
<Port Name="CAN_1" PortNumber="1"
Type="CAN" />
<Port Name="CAN_2" PortNumber="2"
Type="CAN" />
</Ports>
<Endpoints>
<Endpoint Name="Cycler Set Voltage
Upper Limit"
ChannelPath="Targets/Controller/Custom Devices/
EA PSB 1/Commands/DC Output Limits/Voltage Upper Limit" />
</Endpoints>
</Socket>
<Socket Index="2">
<Connectors>
<Connector Name="Socket Connector 2"
ConnectorInterface="type A" >
<SignalMapping ConnectorSignal="TC1"
ChannelPath="Targets/Controller/
Scan Engine and EtherCAT/
Local Chassis/Slot2 (NI 9213)/tc2" />
<SignalMapping ConnectorSignal="VC1" ChannelPath=
"Targets/Controller/Custom Devices/
Network DAQ/Measurements/Channel 2" />
</Connector>
</Connectors>
<Endpoints>
<Endpoint Name="Cycler Set Voltage Upper Limit"
ChannelPath="Targets/Controller/Custom Devices/
EA PSB 2/Commands/DC Output Limits/
Voltage Upper Limit" />
</Endpoints>
</Socket>
</Sockets>
<AuxiliaryIOConnectors>
<Connector Name="IO Connector 1" ConnectorInterface="type A" >
<SignalMapping ConnectorSignal="TC1"
ChannelPath="Targets/Controller/
Network DAQ/Measurements/TC0" />
<SignalMapping ConnectorSignal="TC2"
ChannelPath="Targets/Controller/
Custom Devices/Network DAQ/Measurements/TC1" />
</Connector>
</AuxiliaryIOConnectors>
<GeneralEndpoints>
<Endpoint Name="Chamber Set Temperature"
ChannelPath="Targets/Controller/Custom Devices
/EZT Chamber/Commands/Set Temperature" />
</GeneralEndpoints>
</TestStation>