(.tdms) or NI-XNET log
(.ncl) files to record incoming
frame data during an NI-XNET session.
When you deploy and run the project,
VeriStand logs the frame data you specify to the log file when the trigger condition you
specify is met. You can add multiple log files to a single system definition file. A single
log file can store data from multiple clusters within an XNET database. If you do not
configure filters on the log file, it simply stores everything that is received on the port.
You can also replay the
with a CAN interface across a CAN bus.
Refer to the NI-XNET Logfile
Specification, available in the NI-XNET\Documentation directory,
for more information about the .ncl file format.
Launch the VeriStand Editor.
In the Project Files pane, double-click a system definition file
System Explorer opens.
in the configuration tree.
Select an NI-XNET LIN, FlexRay, or CAN port.
Click New Raw Frame Data Logging
In the Add NI-XNET Logging File dialog box, configure the data
Enter a XNET data logging file name.
Select a file type from the drop-down.
For TDMS files, enter a group name and channel name for storing the logged data.
Select a destination for the log file.
You can choose a destination on
either the host computer or real-time target. For real-time targets, the destination
The new file appears under Raw Frame Data Logging in the configuration tree.
On the XNET Data Logging Configuration page, enter a Buffer time
[s] that is large enough to avoid a buffer overflow while reading data.
The larger the buffer, the more
memory is required for data logging. To avoid additional dynamic memory allocation,
determine the bus load for your session before starting a data logging operation.
Select a filter from the drop-down to configure filtering of the frames to log.
Filtering uses frame IDs to include or exclude specific frames from the log
Click Trigger and File.
Configure when data logging starts, stops, and the operation that performs when logging
restarts after a stop.
For example, on a trigger channel, you can specify to start logging when value becomes
zero and to stop logging when it is not zero.
Save the system definition file.