Logging Incoming NI-XNET Frames
- Updated2025-10-27
- 2 minute(s) read
Create TDMS (.tdms) or NI-XNET log (.ncl) files to record incoming frame data during an NI-XNET session.
Note Refer to the NI-XNET Logfile
Specification, available in the NI-XNET\Documentation directory,
for more information about the .ncl file format.
- Launch your project in the VeriStand Editor.
- In the Project Files pane, left-click a system definition file (.nivssdf) and select Configure in System Explorer.
- Click in the configuration tree.
- Select an NI-XNET LIN, FlexRay, or CAN port.
- Click .
-
Click New Raw Frame Data Logging
.
-
In the Add NI-XNET Logging File dialog box, configure the data
logging file.
- 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.
Note You can choose a destination on either the host computer or real-time target.
-
Click OK.
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.
Note 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.
- Optional:
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 file.
- 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.
Related Information
- Replaying Logged NI-XNET CAN Frame Data
Add and replay TDMS (.tdms) or NI-XNET log (.ncl) files on a CAN bus.
- Monitoring Incoming NI-XNET Frame Logging
Check the status of your logging of incoming NI-XNET frames by using the Error, Finished Files, and Status channels.
- Raw Frame Data Logging FAQs
Answers to common questions on using raw frame data logging in VeriStand.