NI VeriStand 2018 Help
»View Product Info
You can use stimulus profiles to log real-time test data to the host computer while a test executes on a target. Logging test data enables you to easily review and save the responses of a unit under test (UUT) to specific scenarios. NI VeriStand saves logged data in the TDMS file format, which you can later view and analyze using the TDMS File Viewer workspace tool, other National Instruments software such as NI DIAdem, or Microsoft Excel. The Stimulus Profile Editor provides support for both triggered and segmented logging to help you manage large data sets and long test scenarios.
||Note This topic only applies to logging operations you execute in the Stimulus Profile Editor.
Complete the following steps to create a stimulus profile that logs real-time test data:
- Create a stimulus profile that calls a real-time sequence for which you want to log test results.
- Add a Start Logging step to the stimulus profile, before the Real-Time Sequence Call step. The step appears as Start Logging Configuration with a Channel Group substep.
- Select Start Logging Configuration in the stimulus profile code and use the Property Browser to configure the following properties:
- Configuration Name—The name you want to use to control the logging operation. You use this name to start and stop logging.
- File Path—The name and location for the resulting log file.
- Timestamp Filename—Whether to append the start time of the logging operation to the name of the log file.
- Replace Existing File—Whether to replace an existing file with the same filename. If you set this property to FALSE, the Stimulus Profile Editor appends any new log data to the existing file. This property performs a basic append, so you will need to use the channel data in the final file to determine where new data is appended.
||Tip Add a time channel to your log to easily identify breaks in data logging.
- Log Rate [Hz]—The Stimulus Profile Editor logs data at the closest possible rate to this value without exceeding the rate at which the target produces data.
- (Optional) Triggered Logging—Configure trigger conditions to specify when data logging starts and stop. If you do not configure triggers, the Stimulus Profile Editor continuously logs all specified channel data beginning when the Start Logging step executes.
- Select the Channel Group step in the stimulus profile code and configure the following properties:
- Channel Group Name—The name of the channel group used in the TDMS file.
- Channels—Adds channels to the channel group. Click the Browse button to navigate to channels by path in the system definition or, if you defined aliases for the channels, by alias.
- (Optional) Add additional Channel Group steps under Start Logging Configuration in the stimulus profile code to log data in multiple channel groups.
- Add a Stop Logging step after the Real-Time Sequence Call step, and set the Configuration Name to exactly match the name you specified in the Start Logging step.
- Save and run the stimulus profile. The Stimulus Profile Editor logs data on the channels you specified, using the triggers and file segmenting you specify.