Fun Control Experiments with Matlab and a Joystick
demo.m Demo with all three
systems and basic controllers (m-file).
jst.dll Joystick interface to Matlab
(dll). May need to use Microsoft's Internet Explorer to download. For newer versions of Matlab, use jst.mexw32 and for 64-bit systems jst.mexw64.
bbeam.m Ball and beam simulation (m-file).
invpend.m Inverted pendulum simulation
flex.m Flexible beam simulation (m-file).
bbeam.jpg Photo of actual ball and beam
flex.jpg Photo of actual flexible beam
paper.pdf * Description of the experiments.
* The paper appeared in the Proc. of the IEEE Conference on
Control, Maui, HI, Dec. 2003. ©2003 IEEE. Personal use of this
material is permitted. However, permission to reprint/republish this
material for advertising or promotional purposes or for creating new
collective works for resale or redistribution to servers or lists, or
to reuse any copyrighted component of this work in other works must be
obtained from the IEEE.
Create your own fun experiments with a multi-axis joystick interface to
Matlab (dll). Download jst.dll
(may need to use Microsoft's Internet Explorer).
Typing h=jst.dll returns:
h: longitudinal deflection (pitch), from -1 to 1.
h: lateral deflection (roll), from -1 to 1.
h: rotational deflection (yaw), from -1 to 1.
h: slider (thrust), from -1 to 1.
h: buttons (button1 + button2 * 2 + button 3 *4...,
where button1 = 1 if pressed and 0
Courtesy of Johannes Edrén, extensions of the jst dll allowing the simultaneous use of two joysticks jst.mexw32, jst2.mexw32, and the same for 64-bit systems jst.mexw64, jst2.mexw64. Test the dll's using testjst.m (stop by typing Ctrl-C).
This web site is maintained by Professor
Electrical and Computer Engineering
University of Utah.
Please see the
Utah Web disclaimer.
For questions or comments, please send an e-mail to email@example.com.
Last updated: March 28, 2013..