You are on page 1of 4

Quick Start Guide: QUBE-Servo Direct I/O Interface

STEP 1 Check Components and Details


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

1. Quanser QUBE-Servo Direct I/O Inferface


1 2 3
2. Inertia disc module
3. Pendulum module
4. RCA to RCA cable
4 5 5. Set of two 5-pin DIN to 5-pin DIN
encoder cables
6. 15V 2.0 A power supply
7. Quanser Workstation Resources*
(include controllers; User Manual, Quick
6 7 INSTRUCTOR WORKBOOK
STUDENT WORKBOOK
Start Guide and courseware; and other files)
QUBE-Servo Experiment for LabVIEW
QUBE-Servo
Users
Experiment for LabVIEW Users
Standardized for ABET * Evaluation Criteria
Standardized for ABET * Evaluation Criteria
USER MANUAL
Developed by:
QUBE-Servo Rotary Servo Experiment
Developed by:
Jacob Apkarian, Ph.D., Quanser
Jacob Apkarian, Ph.D., Quanser Set Up and Configuration
Michel Lévis, M.A.SC., Quanser
Michel Lévis, M.A.SC., Quanser

*Download the student version from the RCP Toolkit


QUBE educational solutions QUBE educational solutions
are powered by: are powered by:

Course material Course material


complies with: complies with:

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


full instructor version, contact quanser@ni.com
CAPTIVATE. MOTIVATE. GRADUATE.
CAPTIVATE. MOTIVATE. GRADUATE.
*ABET Inc., is the recognized accreditor for college and university programs in applied science,
*ABETcomputing,
Inc., is the recognized
engineering,
accreditor
and technology,
for college
providing
and university
leadership
programs
and quality
in applied
assurance
science, computing, engineering, and technology, providing leadership and quality assurance
in higher education for over 75 years. in higher education for over 75 years.
CAPTIVATE. MOTIVATE. GRADUATE.
Solutions for teaching and research. Made in Canada.

STEP 2 Additional Components Required for Set Up


To complete the Quanser QUBE-Servo Direct I/O Interface set up, you will also need the following:

1. Quanser Rapid Control Prototyping Software 2013 SP1


1 2a for NI LabVIEW™. Visit www.ni.com/labviewtools/rcp
RCP Toolkit 2. One of the following data acquisition devices:
ni.com/labviewtools/rcp
a. NI CompactRIO with Quanser Q1-cRIO module, or
b. Quanser Q2-USB, or
c. NI PCI/PCIe with NI M and X Series Terminal Board
2b 2c 3 3. Power cable for the QUBE-Servo power supply
(available through National Instruments based
on your country’s power/voltage requirements)
Note: These components must be
purchased separately.

STEP 3 Install LabVIEW™ and Add-Ons


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

1. NI-DAQmx Note: The Quanser Rapid Control Prototyping (RCP) Toolkit


2. LabVIEW™ Control Design and Simulation Module must be installed after LabVIEW. See the RCP Toolkit Installation
3. LabVIEW™ MathScript RT Module [only used in certain VIs] Guide for more information (www.quanser.com/products/
rcptk/documentation).
4. Quanser Rapid Control Prototyping Toolkit®
STEP 4 Set Up the Hardware
To set up your QUBE-Servo Direct I/O Interface, please read the following instructions carefully. The connections shown below
are illustrated using a generic data acquisition (DAQ) device (you may have a different DAQ). For detailed instructions, see the
QUBE-Servo User Manual.

A Before proceeding, set up and test your DAQ device (e.g., Q1-cRIO, Q2-USB). For detailed instructions, see the
Quick Start Guide or User Manual for your DAQ device.

B C
Place the QUBE-Servo on a flat Connect the inertia disc moduleQUBE to
ROTARY SERVO EXPERIMENT
surface with enough space so the QUBE-Servo base by aligning the
Direct I/O Interface
WWW.QUANSER.COM

that the modules will not be inertia disc magnets with the magnets Made in Canada

obstructed. on the QUBE-Servo module


Amplifier
connector.
Input 0
The module should snap into place.
Power

D
Encoder 0 Encoder 1 15V 2.0A

Analog QUBE
ROTARY SERVO EXPERIMENT
Direct I/O Interface Using the RCA to RCA cable, connect
Output WWW.QUANSER.COM
Made in Canada
Analog Output Channel #0 (AO #0)
(AO)
Amplifier
Input 0 on the data acquisition (DAQ) device
Power
to the Amplifier Input 0 socket on
the QUBE-Servo.
Data Acquisition Device
Encoder 0 Encoder 1 15V 2.0A

E
QUBE
ROTARY SERVO EXPERIMENT
Using the 5-pin DIN to 5-pin DIN
Encoders
Direct I/O Interface
WWW.QUANSER.COM
Made in Canada
encoder cable, connect the Encoder 0
(EI) Amplifier
Input 0
socket on the QUBE-Servo panel to the
Power
Encoder Input #0 socket on the data
acquisition device.
0
Data Acquisition Device Encoder 0 Encoder 1 15V 2.0A

F G H
QUBE
ROTARY SERVO EXPERIMENT
Direct I/O Interface
QUBE-Servo
ROTARY SERVO EXPERIMENT

QUBE-Servo
ROTARY SERVO EXPERIMENT
WWW.QUANSER.COM
Made in Canada Connect the power WWW.QUANSER.COM
Made in Canada
The green Power
WWW.QUANSER.COM
Made in Canada
Amplifier connector on the Connect the power LED on the QUBE-
Input 0
QUBE-Servo to the supply to a wall outlet Servo should turn
Power
supplied 15V power using the appropriate Power ON. Power

supply. power cable.


Encoder 0 Encoder 1 15V 2.0A
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. folder. 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 Quanser Q1-cRIO users: Before
Project file (.lvproj) proceeding, make sure your LabVIEW Project
found under the file is configured with your NI CompactRIO
Quick Start folder (refer to the RCP Toolkit Installation Guide).
on your hard drive.

E Go to the block diagram


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

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. Click on the
The measured servo angle (in red)
The inertia disc STOP button to
should be tracking the desired angle
should begin stop running
(in blue) in the Servo Angle (deg)
rotating back the VI.
scope. The motor voltage is displayed
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 your Quanser Rapid Control
messages Prototyping Toolkit. Refer to the RCP Toolkit Quick Installation Guide.

A. Make sure your Data Acquisition (DAQ) device has been properly connected to
(or installed on) your PC/laptop. Note that some DAQ devices need to be powered
You get an ’An externally, e.g., NI CompactRIO.
operating system B. Ensure you selected the correct board type in the HIL Initialize block, as outlined
specific kernel- in Steps 5E, 5F, and 5G.
level driver for C. Verify that your Data Acquisition device shows up in Device Manager (e.g., when
the specified using the Quanser Q2-USB DAQ, the Q2-USB A and Q2-USB B should appear under
card could not be the Universal Serial Bus controllers).
found’ message.
D. 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.

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
not responding. B. Verify that the data acquisition (DAQ) device used to connect to the QUBE-Servo
is functional. Refer to the Data Acqusition (DAQ) Device User Manual or Quick Start
Guide for specific troubleshooting guidelines 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.5

You might also like