Use real-time sequences to define specific tasks for a unit under
Before you begin, you should familiarize yourself with the
Stimulus Profile Editor environment
the target and can deterministically execute. Sequences test the UUT by reading from and
writing to channels defined in the system definition file. These sequences can include a
wide variety of programming constructs, including while loops, for loops, variables, and
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
||The value the real-time sequence returns after it
||The inputs and outputs that the sequence accepts
when called and can pass out to other sequences or
the stimulus profile.
||Variables you want to access from statements
within the current sequence.
||References that allow you to read/write system
definition channels directly from a real-time
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
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.
Map parameters to system definition channels.
Select a parameter in the Variables pane.
In the Property Browser, give the parameter a
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
Resolve any Warnings and Errors.
A sequence can run
with warnings, but not errors. You can save the profile and resolve
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.