Professional Documents
Culture Documents
QNET ROTPEN User Manual
QNET ROTPEN User Manual
Quanser Inc.
119 Spy Court
Markham, Ontario
L3R 5H6
Canada
[email protected]
Phone: 1-905-940-3575
Fax: 1-905-940-3576
For more information on the solutions Quanser Inc. offers, please visit the web site at:
http://www.quanser.com
This document and the software described in it are provided subject to a license agreement. Neither the software nor this document may be
used or copied except as specified under the terms of that license agreement. All rights are reserved and no part may be reproduced, stored in
a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior
written permission of Quanser Inc.
2 System Description 5
2.1 ROTPENT Components 5
3 System Schematic 8
4 Specifications 9
5 Environmental 11
6 Assembly 12
7 Setup Guide 14
7.1 QNET and NI ELVIS II Setup 15
9 Troubleshooting 22
9.1 General Software Issues 22
9.2 General Hardware Issues 22
9.3 ROTPENT Issues 23
10 Technical Support 25
Caution: Ensure the trainer is setup as dictated in the QNET Setup Guide. The trainer is susceptible to protection
impairment if not used as specified.
2.1.1 DC Motor
The 24-Volt DC motor with graphite commutation, a speed constant of 286 rpm/V, and winding resistance of 8.70
Ohms.
A PWM power amplifier is used to drive the motor. The input to the amplifier is the output of the Digital-to-Analog
converter (i.e. D/A) of channel #0 on the DAQ. The maximum output voltage of the amplifier is 24 V. Its maximum
peak current is 5 A and the maximum continuous current is 4 A. The amplifier gain is 2.3 V/V.
A series load resistor of 0.1 Ohms is connected to the output of the PWM amplifier. The signal is amplified internally
to result in a sensitivity of 1.0 V/A. The obtained current measurement signal is available at the Analog-to-Digital
(i.e. A/D) of channel #0. Such a current measurement can be used to monitor the current running in the motor.
Digital position measurement is obtained by using a high-resolution quadrature optical encoder. There is one optical
encoder directly mounted to the rear of the motor and another that measured the pendulum pivot angle. The motor
encoder count measurement is available at Digital Input (i.e. DI) channel #0 on the DAQ and the pendulum encoder
count is available at DI#1 on the DAQ.
An analog signal proportional to motor speed is available at the Analog-to-Digital (i.e. A/D) Input channel #4 of the
DAQ. It is digitally derived from the encoder signal on the QNET board.
2.1.6 Fuse
The DCMCT module has a 24-Volt DC power jack to power the on-board PWM amplifier. It is called the QNET power
supply. The +B LED on the QNET board turns bright green when the amplifier is powered.
Caution: Please make sure you use the correct type of wall transformer or you will damage the system. It should
supply 24 VDC and be rated at 3.0 A.
Motor:
Rm Motor armature resistance 8.7 Ω
Kt Motor current-torque constant 0.03334 N·m
Km Motor back-emf constant (same as Kt in SI units) 0.03334 V/(rad/s)
Jm Moment of intertia of motor rotor 1.80 × 10-6 kg·m2
Jeq Equivalent moment of inertia about motor shaft pivot 1.84 × 10-4 kg·m2
axis with pendulum assembly
Maximum continuous torque 0.10 N·m
Maximum power rating 20.0 W
Maximum continuous current 1.0 A
Pendulum Arm:
Marm Mass of the arm 0.08 kg
r Length of arm pivot to pendulum pivot 0.0826 m
Beq Arm viscous damping 0.000 N·m/(rad/s)
Pendulum Link:
Mp Mass of the pendulum link and weight combined 0.0270 kg
Lp Total length of pendulum 0.191 m
lp Length of pendulum center of mass from pivot 0.153 m
Mp1 Mass of the pendulum link 0.008 kg
Mp2 Mass of the pendulum weight 0.019 kg
Lp1 Length of pendulum link 0.171 m
Lp2 Length of pendulum weight 0.0190 m
Jp Pendulum moment of inertia about its pivot axis 1.70 × 10-4 kg·m2
Bp Pendulum viscous damping 0.000 N·m/(rad/s)
The viscous damping parameters of the pendulum, Bp , and of the arm, Beq , are regarded as being negligible in this
laboratory.
Current Sense:
Current Calibration 1.0 A/V
Current sense resistor 0.1 Ω
Pendulum Encoder:
Encoder line count 1024 lines/rev
Encoder resolution (in quadrature mode) 0.0879 deg/count
Encoder type TTL
Encoder signals A,B
Motor Encoder:
Encoder line count 360 lines/rev
Encoder resolution (in quadrature mode) 0.25 deg/count
Encoder type TTL
Encoder signals A,B
Tachometer:
Tachometer calibration at QNET A/D input 2987 RPM/V
Caution: Ensure the unit is operated under the temperature and humidity conditions given in Table 4. Otherwise,
there may be some issues with the heating and cooling results.
1. Remove the four thumbscrews securing the DC motor chamber to the QNET board.
2. Attach the pendulum assembly to the motor shaft using the hex key that came with the trainer.
3. The ROTPENT device should resemble Figure 6.5.
6. Tighten the four thumbscrews from the bottom of the QNET module board though the DC motor chamber. This
is pictured below in Figure 6.7.
Caution: Do not position the ELVIS II so that it is difficult to disconnect the main power.
Caution: If the equipment is used in a manner not specified by the manufacturer, the protection provided
by the equipment may be impaired.
ID# Description
1 NI ELVIS II
2 Prototyping board power switch
3 Power LED
4 Ready LED
5 Power Cable for ELVIS II
6 USB Connection between PC and ELVIS II
Caution: Do NOT make the following connections while power is supplied to the hardware!
Caution: The unit is provided with a grounded cord to be used with a properly grounded outlet only, this
is a safety feature, do not disable it
1. Place the small opening on the front of the QNET board over the mounting bracket on the NI ELVIS II.
2. Slide the PCI connector of the QNET module end into the female connector on the NI ELVIS II. Make sure it is
connected properly.
3. Connect the ELVIS II power cable.
4. Connect the ELVIS II USB cable to the PC.
5. Connect the supplied QNET transformer to the QNET power jack on the QNET module.
6. Power the NI ELVIS II by turning ON the System Power Switch on the rear panel.
7. Turn ON the Prototyping Board Power switch, ID #2 shown in Figure 7.9.
Caution: Turn OFF the Prototyping Board Power switch if the DC motor begins to turn!
Caution: Take extra care when powering the QNET module to avoid causing any damage!
8. The Power and Ready LEDs of the NI ELVIS II unit should be lit as shown in Figure 7.10.
9. As pictured in Figure 7.11, verify that the +15V, -15V, +5V, and +B LEDs on the QNET module are lit. They
indicate that the board has been properly connected to the ELVIS unit.
1. As illustrated in Figure 8.13, to decrease the positive range of the scope down to 40, double-click on '100' in
the y-axis, type in '40', and press ENTER.
Similarly, the minimum range of the y-axis can be changed as well as the range of the x-axis. For example, to see
a time range of 10 seconds instead of 5 seconds the x-axis range can be changed from [0.0, 5.0] to [0.0, 10.0].
However, when changing the x -axis, i.e. the time-scale, it is recommended to do the following:
1. Pause the scopes or stop the VI and clear the chart (right-click on scope, select Data Operation ∥ Clear Chart).
2. Apply the same scale change to both the output and input scopes. Otherwise, the data plotted in each scope
will not be synchronized with each other.
1. Right-click on the scope and select Export Simplified Image, as shown in Figure 8.15
2. The dialog box shown in Figure 8.16 opens and gives various image export options. One way is to export the
image to the clipboard as a bitmap. This can then be pasted in a graphical software (e.g MS Paint, Irfanview)
and saved to a desired format (e.g. gif).
The scope can be saved whether or not the VI is running. However, typically it is easier to stop the VI when the
desired response is collected and then export the image as instructed above.
Q2 When I open a QNET VI a message prompts that a VI with ''ELVIS'' in the name cannot be found?
• ELVIS I: The QNET VIs use drivers that are installed from the ELVIS 3.0 or later CD. Make sure it
is installed. If the folder ''\National Instruments\NI ELVIS 3.0'' does not exist then it is not installed
(available for download at www.ni.com as well).
• ELVIS II: The QNET VIs use the ELVISmx drivers. Make sure you install the contents of the ELVIS II
CD before attempting to open any of the QNET VIs (available for download at www.ni.com as well).
Make sure both the System Power switch, which is located on the back of the ELVIS I and II units, and the
Prototyping Board Power switch, which is situated on the front panel of the ELVIS I and on the top-right
corner of the ELVIS II, are ON. See the QNET Setup Guide for more information.
Q2 On the QNET board, the +15V, -15V, and +5V LEDs are bright green but the +B LED is not lit?
Ensure the QNET power connector on the QNET board is connected with the supplied QNET power
cable. See the QNET Setup Guide for more information.
Q3 At least one of the +B, +15V, -15V, and +5V LEDs on the QNET board is not lit?
The Prototyping Board switch is not ON. The LED next to the switch should be bright green. Please
review the QNET Steup Guide.
• Ensure the QNET Power cable is connected. The four LEDs +B, +15V, -15V, and +5V on the QNET
board should all be bright green.
• Ensure the QNET Power cable is connected. The four LEDs +B, +15V, -15V, and +5V on the QNET
board should all be bright green.
• Also, note that the balance controller is only active when the pendulum is in the upright vertical
position.
Q4 When I try to run the swing-up controller using the ''QNET_ROTPENT_Swing_Up_Control'' VI the pendulum
does not move?
• Ensure the QNET Power cable is connected. The four LEDs +B, +15V, -15V, and +5V on the QNET
board should all be bright green.
• Make sure the pendulum is perturbed to get the swing-up going by clicking on the Disturbance button
in the VI.