Linear Servo Base With Pendulum Quick Start Guide (MATLAB)

Linear%20Servo%20Base%20with%20Pendulum-Quick%20Start%20Guide%20(MATLAB)

Linear%20Servo%20Base%20with%20Pendulum-Quick%20Start%20Guide%20(MATLAB)

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 4

DownloadLinear Servo Base With Pendulum-Quick Start Guide (MATLAB)
Open PDF In BrowserView PDF
Quick Start Guide: Linear Servo Base Unit and Pendulum
STEP 1 Check Components and Details
Make sure your Linear Servo Base Unit and Pendulum module includes the following components:
Optional

1

2
Computer

DAQ

Amplifier

Servo Base Unit

Module

1. Linear Servo Base Unit
2. Set of two 5-pin DIN to 5-pin DIN encoder cables

3

3. Long (0.6m) pendulum
4. Medium (0.34m) pendulum
Standardized for ABET * Evaluation Criteria

Instructor Workbook
Developed by:

Jacob Apkarian,
Ph.D., Quanser for LabVIEW ™ users
IP02 base Hervé
unit
Experiment
Lacheray, M.A.SC., Quanser
*
Peter Martin, for
M.A.SC.,
Quanser
Standardized
ABET
Evaluation Criteria

control over 80 Quanse
r exp
are to
oftw
erim
gS
ent
pin
s. C
oty
on
rot
tac
lP
ro
t in
nt educational solutions
Quanser
fo
Co are powered by:
@
id

RESOURCES DVD

tion.
rma
info
for

Course material
complies
with: educational solutions
Quanser
are powered by:

om
r.c
se
an
qu

SOFTWARE INSTALLATION DVD

REAL-TIME RAPID CONTROL
PROTOTYPING SOFTWARE v2.3

Ra
p

Developed by:
Jacob Apkarian, Ph.D., Quanser
Hervé Lacheray, M.A.SC., Quanser
Peter Martin, M.A.SC., Quanser

.
tion
rma
info
for

Use
QU
AR
CR
ea
l-T
im
e

uSer MaNuaL

ip02
Base unit experiment
student
Workbook

Set Up and Configuration
IP02 base
unit experiment for LabVIeW ™ users

control over 80 Quanser
expe
are to
oftw
rim
gS
ent
pin
s. C
oty
on
rot
tac
lP
t in
ro
nt
fo
@
Co
q
id

m
.co
er
ns
ua

Ra
p

6

Use
QU
AR
CR
ea
l-T
im
e

5

4

TO SET UP QUANSER WORKSTATIONS
Course material
complies with:

For use with

For MATLAB®/Simulink®

On this DVD:
• Quick start Guides
• Pre-designed Controllers
• User Manuals
• Instructor and Student Workbooks
or Laboratory Guides

R2011a,b and R2012a,b

For installation procedure please
refer to the Installation Guide on this DVD.
For assistance, contact tech@quanser.com

Quanser educational solutions
are powered by:

5. 7/64’ Allen key
6. Quanser Workstations Resources DVD*
(includes controllers; digital versions of User
Manuals, Quick Start Guide and courseware;
and other files)

Captivate. Motivate. Graduate.
CaPtIVate. MotIVate. Graduate.
*ABET Inc., is the recognized accreditor for college and university programs in applied science, computing, engineering, and technology. Among the most respected accreditation
organizations in the U.S., ABET has provided leadership and quality assurance in higher education for over 75 years.

©2
om
013
er.c
Qua
ans
nser
w.qu
Inc. All
rights reserved. ww

caPtIVatE. MotIVatE. GraduatE.

©2
013
Qua
nser I
nc. Al

*ABET Inc., is the recognized accreditor for college and university programs in applied science, computing, engineering, and technology. Among the most respected accreditation
organizations in the U.S., ABET has provided leadership and quality assurance in higher education for over 75 years.

om
er.c
ans
w.qu
l rights reser ved. ww

*DVD supplied with the QUARC Real-Time Rapid
Control Prototyping Software, see Step 2

STEP 2 Additional Components Required for Set Up

Use
QU
AR
CR
ea
l-T
im
e

2

RESOURCES DVD

TO SET UP QUANSER WORKSTATIONS
For use with

For MATLAB®/Simulink®

On this DVD:
• Quick start Guides
• Pre-designed Controllers
• User Manuals
• Instructor and Student Workbooks
or Laboratory Guides

R2011a,b and R2012a,b

For installation procedure please
refer to the Installation Guide on this DVD.
For assistance, contact tech@quanser.com

©2
om
013
er.c
Qua
ans
nser
w.qu
Inc. All
rights reserved. ww

3a

1. QUARC Real-Time Rapid Control Prototyping
Software Installation DVD

tion.
rma
info
for

REAL-TIME RAPID CONTROL
PROTOTYPING SOFTWARE v2.3

control over 80 Quanse
r exp
are to
oftw
erim
gS
ent
pin
s. C
oty
on
rot
tac
lP
ro
t in
nt
fo
Co
@
id

om
r.c
se
an
qu

SOFTWARE INSTALLATION DVD

Ra
p

control over 80 Quanser
expe
are to
oftw
rim
gS
ent
pin
s. C
oty
on
rot
tac
lP
t in
ro
nt
fo
@
Co
q

.
tion
rma
info
for

Use
QU
AR
CR
ea
l-T
im
e

id

m
.co
er
ns
ua

1

Ra
p

To complete the Linear Servo Base Unit and Pendulum set up, you will also need the following:

©2
013
Qua
nser I
nc. Al

2. Power Amplifier (VoltPAQ-X1 pictured)

om
er.c
ans
w.qu
l rights reser ved. ww

3b

3c

3. One of the following data acquisition devices:
a. Quanser Q2-USB, or
b. Q8-USB, or
c. NI PCI/PCIe with Terminal Board
4. RCA to RCA cable
5. 4-pin DIN to 6-pin DIN motor cable

4

5
Note: These components must be purchased separately.

STEP 3 Install and Test QUARC
A. Make sure you have all required software, as listed in the QUARC Compatibility Table document located in the QUARC DVD folder.
B. See the QUARC Installation Manual for details on how to install the software.
C. Make sure you test the system using the Sine and Scope demo. You can access this by typing qc_show_demos in the Matlab prompt.

STEP 4 Set Up the Hardware
To set up your Linear Servo Base Unit and Pendulum, please read the following instructions carefully. For full details, see the Linear
Servo Base Unit and Pendulum User Manual (enclosed with shipment).

A

B

Remove the T-fitting and
additional weight from
the top of the Linear
Servo Base Unit cart,
if installed.

Insert the long pendulum rod inside its T-fitting.
Ensure that it sits properly. Tighten set screw as
required.
Long Pendulum

T-fitting

T-fitting

C

D

Attach the pendulum, pointing
downwards, at the end of the
Linear Servo Base Unit cart’s
pendulum axis. Tighten the
T-fitting set screw as required.

Linear Servo Base Unit

Ensure that he track is located at the
edge of a table so that the pendulum
is free to rotate 360-degrees in front of the cart.
It is recommended to clamp down the Linear
Servo Base Unit to the table (clamp not included).

STEP 5 Wiring
The connections shown below are illustrated using a generic data acquisition (DAQ) device and a VoltPAQ-X1 amplifier (you may have a
different DAQ or amplifier). For detailed instructions, see the Linear Servo Base Unit and Pendulum User Manual (enclosed with shipment).

A
C

B

Before proceeding, set up and test your Linear Servo
Base Unit. For detailed instructions, see the Linear
Servo Base Unit Quick Start Guide or User Manual.

Analog
Output
(AO)

Analog Sensor
Inputs
S1&S2

Make sure everything is powered OFF before
making any connections. This includes turning
off your PC and the amplifier.

Using the RCA to RCA cable,
connect Analog Output
Channel #0 (AO #0) on the
data acquisition (DAQ) device
to the Amplifier Command
socket on the amplifier.

Amplifier Gain
1X
3X
Amplifier
Command

To Load

Current
Sense (1V=1A)

E-Stop

To ADC
S3

S4

0
Data Acquisition Device

Amplifier

D

MOTOR

PEN ENC

CART ENC

Amplifier Gain
1X
3X

Analog Sensor
Inputs

Amplifier
Command

To Load

Current
Sense (1V=1A)

E-Stop

S1&S2
To ADC
S3

S4

Amplifier

E

MOTOR

PEN ENC

CART ENC

Linear Servo Base Unit

Encoders
(EI)
0
1

Linear Servo Base Unit

Data Acquisition Device

Using the 4-pin DIN to 6-pin
DIN motor motor cable, connect the To Load socket on
the amplifier to the Motor
socket on the Linear Servo
Base Unit.

Using the 5-pin DIN to 5-pin DIN encoder
cable, connect the Encoder Channel #0
(EI #0) on the data acquisition (DAQ) device
to the Cart Encoder connector (CART ENC)
on the Linear Base Unit Cart.

Encoders
(EI)

CART ENC

Using the 5-pin DIN to 5-pin DIN encoder cable, connect the Pendulum Encoder socket
on the Linear Servo Base Unit panel to
the Encoder Channel #1 (EI #1) socket on
the data acquisition (DAQ) device.

0
1

Data Acquisition Device

G
Amplifier
Command

S1&S2

To Load

To ADC
S3

Current
Sense (1V=1A)

H

E

E

FUS

Analog Sensor
Inputs

Attention VoltPAQ-X1 Users:
Make sure you set the GAIN on
the VoltPAQ-X1 to 1 when using
any Linear Servo Base Unit
experiment.

FUS

Amplifier Gain
1X
3X

FUS

Linear Servo Base Unit

FUS

PEN ENC

E

MOTOR

E

F

100 VAC - 132 VAC or
200 VAC - 240 VAC
47Hz - 63Hz

Turn ON the
power switch on
the VoltPAQ-X1. It
is located on the
rear of the device.

E-Stop

STEP 6 Testing the Linear Servo Base Unit and Pendulum
S4

Follow the procedure below to test your Linear Servo Base Unit and Pendulum module.

A

B

Make sure your
PC and amplifier
are powered ON.

C

Open the Simulink
model file (.mdl)
found under the
Quick Start folder
on your hard drive.

E

Check that the
pendulum is resting
perfectly vertically with the
tip towards the ground.

H

On the Resources DVD (supplied with the QUARC and Servo Base Unit package),
locate the Quick Start Folder: Linear\Linear Servo Base Unit\Quick Start.
Copy the Quick Start folder to your local hard drive.

Click on the Run
button to start
the QUARC realtime model.

F

D

Double-click on the HIL Initialize block and choose the
board that is installed on your system (e.g. Q2-USB).

Click on the Build Model button
on the Simulink model toolbar.

I

J
Scope view of the VI Front Panel

G

Once the model code has been
compiled, click on the Connect
To Target button.

Slowly raise the pendulum to the upright position. When the pendulum
is close to vertical, the controller will activate and attempt to balance
the pendulum. Immediately release the pendulum when you feel the
balance controller engage. If there is a problem, immediately stop the
controller by clicking on the STOP button (see Step K). Do not attempt
to lower the pendulum manually once the controller has engaged!

The pendulum should balance, and
the scopes should look similar to those
shown here. Once the pendulum is
balanced, try to disturb it as little as
possible. If the pendulum is unable to
balance, consult the Troubleshooting
section at the end of this guide.

K

Click on the
Simulink
Stop button to stop
the running model.

TROUBLESHOOTING

Review the following recommendations before contacting Quanser’s technical support engineers.

1. Make sure the cables are firmly connected.
2. Check the connection outlined in Step 5 in this guide.

Getting an error
when trying to
build or run the
Quick Start Simulink model (.mdl)

A. Type ver in the Matlab Command Window and verify that QUARC is on the list. If not, then
go through the QUARC Quick Installation Guide to install QUARC. If it is listed, run mex -setup
as described in the the QUARC Installation Guide.
B. If the “… specific kernel level driver for the specified card could not be found” error is
prompted when you attempt to run, then you may not have selected the correct data
acquisition (DAQ) device in the HIL Initialize block or the DAQ device has not been installed
properly (refer to the DAQ device User Manual).

A. Review connection Steps 5C tand 5D.

The Motor is
not responding.

B. Ensure the power amplifier is powered on and operational, i.e., when using VoltPAQ-X1,
verify that the green LED is lit.
C. Verify that the data acquisition (DAQ) device is functional. Go through the DAQ User Manual
for troubleshooting guidelines.
D. Ensure the voltage is actually reaching the motor terminals. See the Linear Servo Base Unit
and Pendulum User Manual for details.

The Encoder(s) is
(are) not reading.

STILL NEED HELP?

A. Review connection in Steps 5E and 5F.
B. Verify that the data acquisition (DAQ) device is functional. Go through the DAQ User Manual
for troubleshooting guidelines.

For further assistance from a Quanser engineer, contact us at
tech@quanser.com or call +1-905-940-3575.

Expand the Linear Servo Base Unit to the following popular experiments using Quanser Linear control add-on modules.
Linear Pendulum

LEARN
LEARN MORE
MORE

Linear Flexible Joint

Flexible Inverted Pendulum

Seesaw Pendulum

ToTofind
findout
outabout
aboutthe
thefull
fullrange
rangeofofQuanser
QuanserControl
controlmodules,
experiments,
visit
www.quanser.com
visit www.quanser.com

©2013 Quanser Inc. All rights reserved. MATLAB® and Simulink® are registered trademarks of The MathWorks, Inc.

V.1 5.3.2013



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : No
XMP Toolkit                     : Adobe XMP Core 5.2-c003 61.141987, 2011/02/22-12:03:51
Create Date                     : 2013:06:03 15:51:21-04:00
Metadata Date                   : 2013:06:03 15:51:28-04:00
Modify Date                     : 2013:06:03 15:51:28-04:00
Creator Tool                    : Adobe InDesign CS5.5 (7.5.3)
Page Image Page Number          : 1, 2
Page Image Format               : JPEG, JPEG
Page Image Width                : 256, 256
Page Image Height               : 256, 256
Page Image                      : (Binary data 10478 bytes, use -b option to extract), (Binary data 11484 bytes, use -b option to extract)
Instance ID                     : uuid:93c9ceb7-4b5e-1047-bf76-adee0c6eed13
Document ID                     : xmp.did:BA5449F50F206811822AE8D2FD0E9F7D
Original Document ID            : xmp.did:3EC536BA1D206811808388F5EDB7579B
Rendition Class                 : proof:pdf
History Action                  : created, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved, saved
History Instance ID             : xmp.iid:3EC536BA1D206811808388F5EDB7579B, xmp.iid:8DEB919A22206811808388F5EDB7579B, xmp.iid:8EEB919A22206811808388F5EDB7579B, xmp.iid:AFB436AF25206811808388F5EDB7579B, xmp.iid:D26114BF31206811808388F5EDB7579B, xmp.iid:048751A63C206811808388F5EDB7579B, xmp.iid:01801174072068118083922709AEF502, xmp.iid:AE382374072068118083922709AEF502, xmp.iid:9E09015A0A2068118083922709AEF502, xmp.iid:1C88A4FC0D2068118083922709AEF502, xmp.iid:CA2D7E830E2068118083922709AEF502, xmp.iid:3E8358A6102068118083922709AEF502, xmp.iid:3F8358A6102068118083922709AEF502, xmp.iid:6D24A142112068118083922709AEF502, xmp.iid:6E24A142112068118083922709AEF502, xmp.iid:F2A70289112068118083922709AEF502, xmp.iid:F3A70289112068118083922709AEF502, xmp.iid:A36FB595112068118083922709AEF502, xmp.iid:034F02D2112068118083922709AEF502, xmp.iid:D1F1A529142068118083922709AEF502, xmp.iid:207A6F241F2068118C14AE8B46956111, xmp.iid:461F4458232068118C14AE8B46956111, xmp.iid:B8E7DA5A2B2068118C14AE8B46956111, xmp.iid:A8ACF42C3C2068118C14AE8B46956111, xmp.iid:74D3108E0A2068118C14E9B1C4E25302, xmp.iid:75D3108E0A2068118C14E9B1C4E25302, xmp.iid:05CEA96E0B2068118C14E9B1C4E25302, xmp.iid:6A0618701A2068118C14E9B1C4E25302, xmp.iid:A140409A3A2068118C14E9B1C4E25302, xmp.iid:A240409A3A2068118C14E9B1C4E25302, xmp.iid:4640559D3A2068118C14E9B1C4E25302, xmp.iid:D7278EFF422068118C14E9B1C4E25302, xmp.iid:3982890D432068118C14E9B1C4E25302, xmp.iid:3A82890D432068118C14E9B1C4E25302, xmp.iid:DD9CF829432068118C14E9B1C4E25302, xmp.iid:44074A2D432068118C14E9B1C4E25302, xmp.iid:55E48609452068118C14E9B1C4E25302, xmp.iid:6FC70B822A2068118C14ED09E90E1DF7, xmp.iid:06F2CB572B2068118C14ED09E90E1DF7, xmp.iid:FEF8C0742B2068118C14ED09E90E1DF7, xmp.iid:A9F37BF82C2068118C14ED09E90E1DF7, xmp.iid:6265767B2F2068118C14ED09E90E1DF7, xmp.iid:EA3482DF0720681192B0C05B59259046, xmp.iid:EB3482DF0720681192B0C05B59259046, xmp.iid:93DA0E8D0920681192B0C05B59259046, xmp.iid:10C59E371020681192B0C05B59259046, xmp.iid:5EF23CE70E206811822AE8D2FD0E9F7D, xmp.iid:BA5449F50F206811822AE8D2FD0E9F7D, xmp.iid:6F65C5FC0F206811822AE8D2FD0E9F7D, xmp.iid:461EA46310206811822AE8D2FD0E9F7D, xmp.iid:9AE78A5C2D206811822AE8D2FD0E9F7D, xmp.iid:1D90CC292F206811822AE8D2FD0E9F7D, xmp.iid:BAA5E19C33206811822AE8D2FD0E9F7D, xmp.iid:8DE45F8134206811822AE8D2FD0E9F7D, xmp.iid:7B7DA57B36206811822AE8D2FD0E9F7D
History When                    : 2013:04:10 13:40:03-04:00, 2013:04:10 14:14:57-04:00, 2013:04:10 14:14:57-04:00, 2013:04:10 14:37-04:00, 2013:04:10 16:03:21-04:00, 2013:04:10 17:21:23-04:00, 2013:04:11 15:07:06-04:00, 2013:04:11 15:07:06-04:00, 2013:04:11 15:27:51-04:00, 2013:04:11 15:53:52-04:00, 2013:04:11 15:57:38-04:00, 2013:04:11 16:12:56-04:00, 2013:04:11 16:16:15-04:00, 2013:04:11 16:17:18-04:00, 2013:04:11 16:17:49-04:00, 2013:04:11 16:19:16-04:00, 2013:04:11 16:19:37-04:00, 2013:04:11 16:19:37-04:00, 2013:04:11 16:21:18-04:00, 2013:04:11 16:38:04-04:00, 2013:04:16 14:16:02-04:00, 2013:04:16 14:16:02-04:00, 2013:04:16 15:13:23-04:00, 2013:04:16 17:13:47-04:00, 2013:04:23 10:11:23-04:00, 2013:04:23 10:17:39-04:00, 2013:04:23 10:17:40-04:00, 2013:04:23 12:05:04-04:00, 2013:04:23 15:55:19-04:00, 2013:04:23 15:55:24-04:00, 2013:04:23 15:55:24-04:00, 2013:04:23 16:55:25-04:00, 2013:04:23 16:55:48-04:00, 2013:04:23 16:56:29-04:00, 2013:04:23 16:56:36-04:00, 2013:04:23 16:56:41-04:00, 2013:04:23 17:10-04:00, 2013:04:26 14:26:57-04:00, 2013:04:26 14:32:55-04:00, 2013:04:26 14:33:44-04:00, 2013:04:26 14:49:44-04:00, 2013:04:26 15:02:33-04:00, 2013:04:30 10:23:18-04:00, 2013:04:30 10:34:16-04:00, 2013:04:30 10:35:18-04:00, 2013:04:30 11:23:01-04:00, 2013:06:03 10:59:49-04:00, 2013:06:03 10:59:49-04:00, 2013:06:03 11:00:02-04:00, 2013:06:03 11:02:54-04:00, 2013:06:03 14:30:17-04:00, 2013:06:03 14:43:11-04:00, 2013:06:03 15:15:23-04:00, 2013:06:03 15:21:26-04:00, 2013:06:03 15:35:35-04:00
History Software Agent          : Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5, Adobe InDesign 7.5
History Changed                 : /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata, /;/metadata
Derived From Instance ID        : xmp.iid:5EF23CE70E206811822AE8D2FD0E9F7D
Derived From Document ID        : xmp.did:4640559D3A2068118C14E9B1C4E25302
Derived From Original Document ID: xmp.did:3EC536BA1D206811808388F5EDB7579B
Derived From Rendition Class    : default
Doc Change Count                : 959
Format                          : application/pdf
Producer                        : Adobe PDF Library 9.9
Trapped                         : False
Page Count                      : 4
Creator                         : Adobe InDesign CS5.5 (7.5.3)
EXIF Metadata provided by EXIF.tools

Navigation menu