Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: May 9, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Real-Time Sequencer Architecture Example

0 ratings | 0.00 out of 5
Print

Overview

The following attachment includes four components, the Real-Time (RT) Sequencer Example Architecture, the RT Sequencer application programming interface (API), and four example steps to use with the RT Sequencer.

Downloads

Filename: rt_sequencer_ex.zip
Requirements: View

Requirements

This example requires the following support software:

The tutorial for this architecture can be found at A Real-Time Sequencer Architecture for LabVIEW.

Installation of RT Sequencer API

Download and unzip rt_sequncer_ex.zip to a familiar location.  Close LabVIEW if it is running.  In the RT Sequencer Example folder double-click setup.exe to begin the installing the RT Sequencer API into the LabVIEW X.x\user.lib\RT Sequencer API directory.

Install Example Steps onto the RT Controller

Steps for the RT Sequencer Example must meet the following requirements:  reside on the controller inside an RTEXE, be set as Startup VIs, and located in the c:\ni-rt\startup\Steps folder.  The following are walkthrough instructions for building and deploying RT Sequencer Steps.

  1. Open RT Sequencer Example\RT Sequencer\RT Sequencer Architecture.lvproj.
  2. The example steps can be found in the project under the RT Target in the Example Steps Virtual Folder.  Refer to Figure 1.
  3. Change the IP address of RT Target by right-clicking on it and choosing Properties.
  4. In the General Category change the IP address from 10.0.36.164 to your targets IP address and click OK.
  5. Inside the project expand Build Specifications for RT Target
  6. Right-click on All Steps and choose Properties.
  7. Inside the Build Specification there are a few key selections to note.
    • In the Information Category choose where you want the steps to build to on your host computer.
    • In the Source Files Category notice how INI Test.vi, Generate100.vi, BlinkTest.vi, and Heartbeat.vi are set to be Startup VIs.  To make it so that a VI is a step you MUST make it a Startup VI.  This does not make it so that VI begins when the controller is rebooted, but does set a property in the RTEXE that makes the VI easier to find.
    • In the Destinations Category notice that the final executable named Steps.rtexe has a Destination path of c:\ni-rt\startup\Steps.  This is the default path where steps will be located.
  8. Click the Build button.
  9. Right-click All Steps and choose Deploy.  You could receive a conflict message talking about the executable not being set to automatically launch.  Click OK as this is expected.  Now the Steps have been loaded onto your real-time controller.

Figure 1.  There are four example steps that demonstrate how to use the RT Sequencer API.

Running the RT Sequencer

The RT Sequencer Folder contains the all the VIs for the host program (RT Sequencer –Host.vi) and the target program (RT Sequencer – Target.vi).

  1. Begin by opening RT Test Architecture.lvproj (if you have not already) which is the LabVIEW project for the RT Sequencer Architecture.
  2. Change the IP Address of target inside the project by right-clicking RT Target and selecting Properties.
  3. With the General Category selected change the IP address to that of your target and click OK.
  4. Under RT Target, open RT Sequencer – Target.vi and press the run button.  The VI should be downloaded to your target.
  5. Under My Computer, open the RT Sequencer – Host.vi and press the run button.  In the status window you should see text indicating that the program was started and that the available steps were sent.
  6. Click on an available steps (i.e. BlinkTest.vi, INI Test, Generate100, and Heartbeat) then click the To Run Button.  You should now see the step name under Steps To Run.
  7. Click the Start Steps button, and the steps should run.  If you are running BlinkTest.vi, LEDs on you real-time controller should blink.  If you are running Generate100.vi then you should see the status window count down from 10. The INI Test step grabs a number from the Sequencer.ini file (located in RT Sequencer Example\RT Sequencer directory) and sends it to the target.  The target then counts down from number it received.  The Heartbeat step makes it so the RT Target blinks the Heartbeat indicator on the Host Front panel at a rate specified by the "Heartbeat Rate" control for 20 seconds.

 

Requirements


Filename: rt_sequencer_ex.zip

Software Requirements


Application Software: LabVIEW Professional Development System 8.5
Toolkits and Add-Ons: LabVIEW Real-Time Module 8.5
Language(s): LabVIEW

Hardware Requirements


Hardware Group: PXI/CompactPCI, Compact FieldPoint, FieldPoint, CompactRIO, Real-Time (RT)
Hardware Model: PXI-8106 RT, PXI-8176 RT, PXI-8184RT, PXI-8186 RT, PXIe-8130 RT, cFP-2220, cFP-2110, cFP-2120, cFP-2200, cFP-2210, cFP-2100

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).