Creating Real-Time Sequences
- Updated2025-10-27
- 3 minute(s) read
Use real-time sequences to define specific tasks for a unit under test (UUT).
Real-time sequences appear on the VeriStand Editor in the Project Files tab with the file extension .nivsseq. A real-time sequence cannot execute on its own and must belong to a stimulus profile.
- In the VeriStand Editor, click .
-
In the Stimulus Profile Editor, click .
The sequence organizes your code into the Setup, Main, and Clean Up blocks. The Primitives palette contains programming building blocks, such as statements and variables, you can use to define the task the real-time sequence completes.
-
Create the variables your sequence code can access.
-
Drag variables from the Primitives palette to one
of the following sections of the Variables
pane.
Section Description Return Variable The value the real-time sequence returns after it executes. Parameters The inputs and outputs that the sequence accepts when called and can pass out to other sequences or the stimulus profile. Local Variables Variables you want to access from statements within the current sequence. Channel References References that allow you to read/write system definition channels directly from a real-time sequence. Note Channel references bind to specific system definition channels when added to a real-time sequence. The sequence that contains them is bound to that system definition file. If you want to write a sequence that you can reuse across multiple system definition files, use Parameters.Note Use Double or Boolean primitives to create parameters that you want to map to system definition channels. All channels in VeriStand are 64-bit floating point numbers (doubles), but many can also accept Boolean values. - To add channel references, right-click Channel References and click Insert Channels.
-
Drag variables from the Primitives palette to one
of the following sections of the Variables
pane.
-
Map parameters to system definition channels.
- Select a parameter in the Variables pane.
- In the Property Browser, give the parameter a unique Identifier.
- Next to Default Assignment, click Browse and navigate to the appropriate channel or click View aliases in the window to select a channel by its alias.
- If you want to use Local Variables in statements or expressions, use the Property Browser to configure a unique Identifier and a Default Value for those variables
-
If you want to call another sequence from an expression in the current
sequence, add the new sequence to the References pane.
You can drag variables from the Variables pane or sequences from the Sequences palette directly to the sequence code to automatically create expressions that act on those elements. In the case of sequences, VeriStand also creates references to the sequence.
-
Use expressions, structures, and other primitives to build the sequence code.
Select any item in the sequence code to configure it in the Property Browser.
-
Click Compile.
-
Resolve any Warnings and Errors.
Note A sequence can run with warnings, but not errors. You can save the profile and resolve errors later.
-
Resolve any Warnings and Errors.
- Save the sequence.
After creating the real-time sequence, add a call for the real-time sequence to a stimulus profile. A sequence cannot execute independently of a stimulus profile. Run the stimulus profile to run the sequence.