You are on page 1of 4

Quick Start Guide: QUBE-Servo NI myRIO Interface

STEP 1 Check Components and Details


Make sure your QUBE-Servo experiment includes the following components:

1. Quanser QUBE-Servo
1 2 3
2. Inertia disc module
3. Pendulum module
4. 15V 2.0 A power supply
4 5
5. NI myRIO MXP Interface Cable
6. Quanser Workstation Resources*
(include controllers; User Manual,
Quick Start Guide and courseware;
and other files)
6 Instructor workbook
student workbook
QubE-servo Experiment for LabVIEwQube-servo
users experiment for LabVIew users
Standardized for ABET * Evaluation Criteria Standardized for ABET * Evaluation Criteria
Developed by:
Jacob Apkarian, Ph.D., Quanser
Michel Lévis, M.A.SC., Quanser
Developed by:
Jacob Apkarian, Ph.D., Quanser
Michel Lévis, M.A.SC., Quanser
uSer MaNuaL
QuBe-Servo experiment
Set Up and Configuration

QUBE educational solutions


QUBE educational solutions
are powered by:

*Download the student version from the RCP Toolkit


are powered by:

Course material
Course material
complies with:
complies with:

Resources at www.ni.com/labviewtools/rcp. For the


captIVatE. MotIVatE. GraduatE.
Solutions for teachinginand research.
higher education Made
for over in
CaptIVate. MotIVate. Graduate.
*ABET Inc., is the recognized accreditor for college and university programs in applied science, computing, engineering, and technology, providing leadership and quality assurance
in higher education for over 75 years.
*ABET Inc., is the recognized accreditor for college and university programs in applied science, computing, engineering, and technology, providing leadership and quality assurance
75 Canada.
years.
Captivate. Motivate. Graduate.
full instructor version, contact quanser@ni.com

STEP 2 Additional Components Required for Set Up


To complete the Quanser QUBE-Servo NI myRIO set up, you will also need the following:

1. NI myRIO system
1 2 3
2. Power supply for NI myRIO
RCP Toolkit 3. Quanser Rapid Control Prototyping Software 2013 SP1
ni.com/labviewtools/rcp
for NI LabVIEW™. Visit www.ni.com/labviewtools/rcp
4. USB cable
5. Power cable for the QUBE-Servo power supply
(available through National Instruments based
on your country’s power/voltage requirements)
4 5
Note: These components must be purchased separately.

STEP 3 Install LabVIEW™ and Add-Ons


Make sure LabVIEW™ 2013 SP1 or later is installed with the following required add-ons:

1. LABVIEW™ myRIO Module 6. Quanser Rapid Control Prototyping Toolkit® 2013 SP1
2. LABVIEW™ Real-Time Module Note: The Quanser Rapid Control Prototyping (RCP) Toolkit
3. LabVIEW™ Control Design and Simulation Module must be installed after LabVIEW. See the RCP Toolkit Installation
4. LabVIEW™ MathScript RT Module [only used in certain VIs] Guide for more information (www.quanser.com/products/
5. NI-DAQmx rcptk/documentation)
STEP 4 Set Up the Hardware
To set up your QUBE-Servo NI myRIO, please read the following instructions carefully. The steps below use the Quanser QUBE-Servo
NI myRIO Interface, which is designed to interface exclusively with the NI myRIO. If you are using the QUBE-Servo Direct I/O or USB
interfaces, please refer to their own Quick Start Guides or the QUBE-Servo User Manual for instructions on connecting your system.

A Before proceeding, set up and test your NI


myRIO as described in its Quick Start Guide,
B Place the QUBE-Servo on a flat surface with
enough space so that the modules will not
and the RCP Toolkit 2013 SP1 for NI myRIO be obstructed.
Installation Guide.

C
Connect the inertia disc module to
the QUBE-Servo base by aligning
QUBE-Servo
the inertia disc magnets with the
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada

magnets on the QUBE-Servo module


connector. The module should snap
into place.

D
QUBE-Servo

QUBE-Servo
Using the NI myRIO MXP cable,
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada
connect the MXP A or MXP B
ports on the NI myRIO to the
myRIO Connector A/B socket
on the QUBE-Servo Power

E F G
QUBE-Servo
Connect the power Connect
QUBE-Servo
the power The green Power LED
QUBE-Servo
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada
connector on the supply to a wall outlet
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada
on the QUBE-Servo
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada
QUBE-Servo to the using the appropriate should turn ON.
supplied 15V power power cable.
supply.
Power Power Power Power
STEP 5 Testing the QUBE-Servo
Follow the procedure below to test your QUBE-Servo experiment.

A B Download the Quanser QUBE-Servo Workstation Resources


Make sure your PC (www.ni.com/labviewtools/rcp) and locate the Quick Start.
is powered ON. Copy the Quick Start folder to your local hard drive.
Note: Browse online for the latest QUBE-Servo resources at
www.quanser.com/courseware

C D In the LabVIEW Project file, open the


LabVIEW Virtual Instrument (.vi).
Open the LabVIEW
Attention NI myRIO users: Before
Project file (.lvproj)
proceeding, make sure your LabVIEW
found under the
Project file is configured
Quick Start folder
with your NI myRIO (refer to the RCP
on your hard drive.
Toolkit for NI myRIO Installation Guide).

E Go to the block diagram


(CTRL-E) and double click
F
Under the Main tab, select the
on the HIL Initialize data aquisition device that is
Express VI. installed on your system in the
Board type section (e.g.,qube_
servo_myrio_mxp_a).

G Click on the OK button. H Go to the Front Panel (CTRL-E) of the VI, (pictured in Step 5D).

I J K
Click on the The scopes should look similar to
white arrow those shown here.
to run the VI. The measured servo angle (in red) Click on the
The inertia disc should be tracking the desired angle STOP button to
should begin (in blue) in the Servo Angle (deg) stop running
rotating back scope. The motor voltage is displayed the VI.
and forth. in the Motor Voltage (V) scope.
If not, consult the Troubleshooting
section at the end of this guide.
TROUBLESHOOTING Review the following recommendations before contacting Quanser’s technical support engineers.

1. Check the connections outlined in Step 4 of this guide.


2. Make sure cables are firmly connected.

You are getting A. Make sure you installed all the LabVIEW add-ons listed in Step 3.
‘VI Missing’ B. Verify that the correct LabVIEW version is installed for the Quanser Rapid Control
messages Prototyping Toolkit 2013 SP1. Refer to the RCP Toolkit Quick Installation Guide.

A. Make sure your Data Acquisition (DAQ) device has been properly connected to
You get an ’An (or installed on) your PC/laptop. Note that some DAQ devices need to be powered
operating system externally, e.g., NI myRIO.
specific kernel-
B. Ensure you selected the correct board type in the HIL Initialize block, as outlined
level driver for in Steps 5E, 5F, and 5G.
the specified
card could not be C. Refer to the User Manual or Quick Start Guide that is supplied with your Data
Acquisition (DAQ) device for more specific troubleshooting information and testing
found’ message.
procedures.

A. Ensure the green Power LED on the QUBE-Servo is lit. If not, make sure the power
supply is operational and properly connected.
The Motor is B. Verify that the data acquisition (DAQ) device used to connect to the QUBE-Servo
not responding. is functional. Refer to the User Manual or Quick Start Guide that is supplied with
your Data Acquisition (DAQ) device for more specific troubleshooting information
and testing procedures.

For further assistance from a Quanser engineer, contact us at


STILL NEED HELP?
tech@quanser.com or call +1-905-940-3575.

To find out about


To browse andthe full range
download theoflatest
Quanser Control modules,
QUBE-Servo resources, visit
LEARN
LEARN MORE
MORE visitwww.
www.quanser.com
quanser.com/courseware

©2015 Quanser Inc. All rights reserved. LabVIEW™ are registered trademarks of National Instruments. V.1.3

You might also like