EasyManua.ls Logo

pitsco 41427 - Page 120

pitsco 41427
162 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Step 7
Set up myRIO and run LabVIEW code
7.1. Follow the hardware and software setup instructions
in the “Set Up Your Control System section. Make
sure you:
Connect the motor board to MXP B and connect
the sensors and actuators to the motor board
Connect the system to power
Install software to your PC (via disk or web installer)
and myRIO (via the Getting Started Wizard)
7.2. Connect myRIO to your computer via the USB A to B cable
7.3. Navigate to Balance Arm code using the following path: C:\Users\...\Desktop\National Instruments\ Pitsco Tetrix Prime
for NI myRIO\Balance Arm and open “Balance Arm Project
7.4. Make sure the IP Address in the parenthesis next to the “NI-myRIO” line item is 172.22.11.2. If it is not:
Right click the NI myRIO line item, and select “Properties”
Update the IP address and click OK
7.5. Right click the NI myRIO line item and select “Connect.
7.6. Press the run arrow on the upper left corner of the Front Panel
7.7. Every time you run the Balance Arm code, you must calibrate the minimum and maximum edges of the beam to
account for variations among IR sensors. To do so:
Gently roll the ball from one edge of the beam to the other, and then let go
The myRIO will automatically calibrate the edges as the minimum and maximum positions of the beam
Click “Lock Min Max
If the Min and Max were set improperly, click “Lock Min Max again to turn off the lock, click “Reset Min Max, and
repeat the minimum and maximum calibration process
7.8. If you are running the Balance Arm for the first time, or if the balance arm is working unexpectedly, you may need to set
a position offset to account for the variation in how the shaft connector can be placed on the servo shaft. To do so:
Click the “Enable PID button to turn PID off
Manually increase and decrease the offset very slightly until the ball can balance at any position on the beam on its
own
Click the “Enable PID button to turn the PID back on
If the Balance Arm performance improved, set the new offset value to default:
118 Balancing Arm Assembly
118 Balancing Arm Assembly

Related product manuals