Description
Description-Separate-1Note: NI is no longer updating Data Dashboard and the Data Dashboard download is no longer available on the App Store nor Google Play. Consider using WebVIs for your LabVIEW-based web application needs.
Overview
I have improved the code from the VIPM to use for the Tetrix Prime Balancing Beam MyRio demo.
Description
It is an balancing beam with a ball on it and you can set the position of where you want the ball.
Requirements
Software
- LabVIEW 2012 (or compatible)
- MyRio software
Hardware
- Tetrix Prime for MyRio
- MyRio
- Tablet
- PC
Steps to Implement or Execute Code
- Download the code
- Download the code from VIPM
- Open the LVProject
- Open the main code(Balance Arm Main.vi)
- Change the variables(arm range and center point offset, see below)
- Run it
- Get your Ipad/Android tablet and create a Data Dashboard or download mine(import the lvdd to Itunes)
Arm Range and Center Point Offset
To change the variables, you have to get the minimum and maximum PWM values.
To get them, run the Control Arm directly.vi and set it to a value that is the maximum on your installation,
then also get the minimum and the center(the main beam is horizontal). You can enter the center value directly into center point offset control(main),
but the other control is a bit harder:
- Calculate the difference between the center and the min/max, they should be almost the same
- divide the value by 100, because the maximum PID outcome is 100 and -100
- enter it into the control
- if it goes to the wrong end, add/remove a negative sign
Then it should work, if it oscillates for too long or something, change the PID values.
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Description-Separate-2