Quanser qbot User Manual page 14

Table of Contents

Advertisement

Quanser Qbot: User Manual
The following steps are required to setup QUARC for the Qbot:
1. Create a new Simulink model, or open an existing model to be run on the Gumstix.
2. Click on the QUARC menu, then select Options.
3. The System target file under Real-Time Workshop should be quarc_linux_verdex.tlc.
Browse through the system target list to locate the proper file if necessary.
4. Next, choose Interface on the left hand pane. Under the MEX-file arguments, type '-w
-d /tmp -uri %u', 'tcpip://{IP of Gumstix}:17001'. Include the single quotation marks
(Figure 11). Replace {IP of Gumstix} with the IP of your Gumstix, e.g.
'tcpip://182.168.1.200:17001'.
Figure 11: Configuring MEX-file Arguments
5. In the Simulink Library Browser, navigate down QUARC Targets → Devices → Third-
Party → iRobot → Roomba → Interfacing. The Roomba Initialize block is required for
the Gumstix to communicate with the Qbot. Change the URI to "serial://localhost:1?
baud=57600,word=8,parity=none,stop=1" (Local host is 2 by default). Use default send
receive bytes.
Document Number: 830  Revision: 7  Page: 11

Advertisement

Table of Contents
loading

Table of Contents