Create a Real-Time Sequence with a Channel Reference
- Updated2025-10-27
- 2 minute(s) read
Create a Real-Time Sequence with a Channel Reference
Create a real-time sequence that uses a channel reference to read/write a engine power channel and a parameter to specify the value to read/write.
- In the VeriStand Editor, click .
- In the Stimulus Profile Editor, click New Real-Time Sequence.
- Save the sequence as Set Engine Power tutorial in the <Common Data>\VeriStand Projects\Engine Demo\Stimulus Profiles\Engine Demo Channel References directory.
-
Create variables.
- In the Primitives palette, expand Variables and drag a Boolean into the Parameters section of the Variables pane.
- In the Property Browser, enter the Identifier, as OnOff.
-
Click the Evaluation Method pull-down, select
ByReference.
This parameter specifies whether to turn the engine on or off. You set the value when you call this sequence from the stimulus profile.
- In the Variables pane, right-click Channel References and click Insert Channels.
-
In the Select channels dialog box, expand
Aliases, enable
EnginePower, and click
OK.
This channel reference writes the value of the OnOff parameter to the EnginePower channel.
-
In the Primitives palette under Variables, drag
Void Return Value into the Return
Variable section of the Variables
pane.
This variable returns no value. Instead, you call this sequence from a stimulus profile to turn the engine on and off.Note By default, the return value node is named Pass.
The Variables pane will look like the following image.
-
Configure the real-time sequence to turn the engine on or off based on the
value of the OnOff parameter.
- In the Variables pane, drag EnginePower into Main.
-
In the Property Browser, enter the
Expression as EnginePower =
OnOff.
This allows you to toggle the engine on or off by calling this sequence from a stimulus profile.
- Save the real-time sequence.
The real-time sequence code will look like the following image.

Related Information
- VeriStand Directories and Aliases
VeriStand uses directories and aliases for project files, models, and custom devices.
- Create a Real-Time Sequence with Channel References and Local Variables
Create a real-time sequence that uses channel references to measure how long the engine takes to settle at a specified RPM.
