Reading and Writing Channels Directly from a Real-Time Sequence Tutorial

Use channel references, parameters, and variables to turn on a car engine, set the engine speed to three different RPM values, measure how long the engine takes to settle at each specified RPM, and turn the engine off.

You can use channel references to read/write channels in a system definition directly from a real-time sequence. Unlike a parameter, which you must assign to a system definition channel, a channel reference automatically binds to a channel when you add the channel reference to a real-time sequence. This makes channel references easier to manage than parameters in stimulus profiles that access many channels, especially when accessing channels in nested sequences.
Note Channel references bind to specific system definition channels, and therefore a real-time sequence that contains channel references can only be used with the system definition file that contains those channels.
  1. Deploy the Engine Demo—Deploy the engine demo's system definition before running a stimulus profile.
  2. 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.
  3. 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.
  4. Create a stimulus profile that calls a channel referencing sequence—Configure a stimulus profile to turn on the engine and measure how long it takes the engine to settle at various RPMs.
  5. Run the stimulus profile—Compile and run the stimulus profile to see the real-time sequence interact with the Engine Demo.