Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Editing 'Set Speed' on the dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=82609)

K Lenox 13-02-2010 18:16

Editing 'Set Speed' on the dashboard
 
Hello, I am the computer programer for Amherst Robotics #2632

I was wanting to know if there is a way to make the speed settings for the motors appear in the dashboard to edit them while you are in driver mode.

The thing is that by having to edit the numbers in LabVIEW, compliling the progra, and then running it takes forever. I want to know if there is a way to bypass all this time consuming work, since i love shotcuts.

Thanks, any help is appreciated!!!

Kyle Lenox

Mark McLeod 13-02-2010 18:31

Re: Editing 'Set Speed' on the dashboard
 
You can put them on Teleop's Front Panel as a control and use the Run arrow button (from Robot Main.vi only!). Start it and then switch to the Telop Front Panel to adjust the speed controls.

User the Driver Station app from the Developer account, too.

Greg McKaskle 13-02-2010 19:20

Re: Editing 'Set Speed' on the dashboard
 
You cannot send data from dashboard back to the robot. That is a one-way trip.

You can send values from the driver station I/O tab. The four compatibility sliders can be set by HW such as pots if you connect the I/O board to the DS, or you can set them onscreen by dragging.

Scale them up or down a bit, and you have a Speed Setting.

If you only want to do this for debugging, what Mark pointed out is one of the major debugging features. Instead of using a constant, make the value a control on the panel. Run using the arrow, open the panel, and change the number whenever you like. Once you know what the number needs to be, you can make it a constant, or keep it a control and make sure to set the current value default using the control popup.

Greg McKaskle

ecnahc515 13-02-2010 22:52

Re: Editing 'Set Speed' on the dashboard
 
Make a numeric control on the front panel of the teleop VI. And in the block diagram you can have it multiply the x and y values by the control.

Just set the control min and max to be between 0 and 1. So then when the control on the front panel is half way your motors will go half the speed. Basically makes a throttle.


All times are GMT -5. The time now is 11:10.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi