Configuring Triggered Logging in Stimulus Profiles
- Updated2025-12-15
- 2 minute(s) read
Configuring Triggered Logging in Stimulus Profiles
Use triggered logging in stimulus profiles if you want to see channel data under certain conditions, such as those that you might expect to cause the unit under test (UUT) to fail.
You can also configure pre-triggered and post-triggered data logging. This saves the channel data immediately before a start trigger and after a stop trigger. For example, if the start trigger represents a fault in the system, and the stop trigger represents a return to expected values, it can be useful to see the behavior of the system that lead to the fault and how well the system recovers.
- Create a stimulus profile that logs real-time test data.
- Select the Start Logging step for a logging configuration.
-
In the Property Browser, set the
Trigger Channel to a channel
you want to watch for logging conditions.
Note This can be any channel in the system definition associated with the stimulus profile.
-
Set the Trigger Condition and the
corresponding High Limit and
Low Limit values.
Note You can set the Trigger Condition to in_limits or out_of_limits to configure logging to start and stop when the value of Trigger Channel either enters or leaves the value range specified by the limits. For example, if you set Trigger Condition to in_limits, the stimulus profile registers a start trigger when the value of Trigger Channel is greater than or equal to the Low Limit and less than or equal to the High Limit. It registers a stop trigger, and stops logging, when the value of Trigger Channel leaves this window.
-
Depending on your desired result, configure the step to handle
a situation where multiple start triggers occur.
Desired Result Configuration One file containing all logged data. Disable Replace Existing File. One file containing only data from the last occurrence of a start trigger. Enable Replace Existing File. Separate files for each set of logged data. - Enable Timestamp
Filename.Note You must enable timestamps on segmented filenames to avoid filename conflicts.
- Set Segment Options to OnStartTrigger
- Enable Timestamp
Filename.
-
If you want to specify an amount of channel data to log
immediately before a start trigger occurs, set a value for
Pre-Trigger Duration.
Note When you execute the profile, the VeriStand Gateway maintains a buffer that always contains this amount of data.
- If you want to specify an amount of channel data to log after a stop trigger occurs, set a value for Post-Trigger Duration.
- Click Save.
Related Information
- Logging Real-Time Test Data with the Stimulus Profile Editor
Use stimulus profiles to log real-time test data to the host computer while a test executes on a target.
- Start Logging Step
Starts logging data from the system definition channels you specify to a TDMS file.