Configuring Data Logging
- 更新时间2024-10-31
- 阅读时长2分钟
Create an EDL.xml file to configure most settings for the Battery Test System embedded data logger, which is a custom device for VeriStand that handles logging of data from each socket within your test environment. Complete the following steps to configure data logging for the Battery Test System:
-
Add an XML file EDL.xml within the folder
BTSPackages\TestStations\TestStationName on
the machine in your system that contains your test station packages.
Note You can use the template for an EDL.xml file installed on the Lab PC at %Public%\Documents\National Instruments\Battery Test System\Toolkit\Examples\Templates\TestStation Package Files.
-
Populate EDL.xml, using the following elements to define your data
logging preferences.
- <EmbeddedDataLogger>—Top-level tag for the EDL.xml file.
-
<CustomDeviceProperties>—Container tag for other elements;
contains attributes that define FIFO depth and whether to open a logfile.
- FIFODepth: use 1000
- OpenLogFileDuringInitialization: whether the first logfile for a test is opened automatically when the test is initialized (true) or programmatically by the test code (false).
Note NI recommends using false and explicitly opening the file in the test when ready. -
<FileSegmenting>—Contains attributes that define on what
basis to create discrete logfiles.
- Enabled: must be set to true.
- Base: whether discrete logfiles are created on the basis of file size (Size) or test duration (Time).
- Size: if Base is Size, the maximum size, in bytes, each logfile may occupy before a new logfile is created.
- Interval: if Base is Time, the time, in seconds, to elapse before a new logfile is created.
- <PreTrigger>—Defines settings for collection of pretrigger data samples. Must be disabled (Enabled="false").
-
<MetaProperties>—Lists additional metadata name/value
properties that can be attached to each TDMS file. The name used in the TDMS file for
these name/value pairs is the same as Name unless
DisplayName is provided.
- <Property Name="SerialNumber" />: Values are automatically set unless the Value field is set.
- <Property Name="ModelName" />: Values are automatically set unless the Value field is set.
- <Property Name="TestStation" />: Values are automatically set unless the Value field is set.
- <Property Name="TestPlan" />: Values are automatically set unless the Value field is set.
- <Property Name="SubmittedBy" />: Values are automatically set unless the Value field is set.
- <Property Name="CompileTime" />: Values are automatically set unless the Value field is set.
- <Property Name="SocketIndex" />: Values are automatically set unless the Value field is set.
- <Property Name="TestName" />: Values are automatically set unless the Value field is set.
- <Property Name="TestSequenceName" />: Values are automatically set unless the Value field is set.
- <Property Name="UserDefined" DisplayName="User Defined EDL Property" Value="EDL template" />: Allows you to specify a custom name to be added and a value.
-
Ensure your test station XML configuration file includes the following
<Instrument> reference to the embedded data logger:
<Instrument Name="Embedded Data Logger" Type="Embedded Data Logger" RootChannelPath="Targets/Controller/Custom Devices/Embedded Data Logger" ConfigurationInstrument.ConfigurationPath="EDL.xml" />