Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   problems with using switches for autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=82133)

Joe Ross 09-02-2010 10:05

Re: problems with using switches for autonomous
 
Are you using compatibility i/o or extended i/o?

Alan, you forgot the code fragment.

Alan Anderson 09-02-2010 16:56

Re: problems with using switches for autonomous
 
1 Attachment(s)
Quote:

Originally Posted by Joe Ross (Post 916300)
Alan, you forgot the code fragment.

I thought it was there when I wrote the post this morning. Here it is (again).

ssica_jj 09-02-2010 23:12

Re: problems with using switches for autonomous
 
Quote:

Originally Posted by Alan Anderson (Post 916535)
I thought it was there when I wrote the post this morning. Here it is (again).

We tried what you suggested. It works! Thank you for your help! We really appreciate it. :D

fkm300 14-02-2010 17:07

Re: problems with using switches for autonomous
 
We are having similar problems with getting the PSoC inputs to be seen on the Dashboard. We have placed Get Dig In on the Dashboard.vi but don't see any states change. The states do change on the Driver Station. Does anyone have any suggestions on what we should do?

Thanks!
Komal

Alan Anderson 14-02-2010 18:41

Re: problems with using switches for autonomous
 
The Get Digital In vi only works on the robot. If you want to show its output on the Dashboard, the robot program will have to send it in the Dashboard data and the Dashboard program will have to retrieve it from there.

randalcr 12-03-2010 11:31

Re: problems with using switches for autonomous
 
Quote:

Originally Posted by ssica_jj (Post 915454)
We ran the RobotMain.vi in the project containing the code. We connect the laptop to the router which is connected to the driver station.

Attached is a screen shot of our code.

we have our auton. working in the same way you guys do except on ours we have the boolean output of the "get Dig. in" block going to a block that gets the ID of the switch and goes directly into a case structure. inside the case we have different "pages" that have different auton. programs. the DIG. In is what controls the program.

garrettg 13-03-2010 21:39

Re: problems with using switches for autonomous
 
What our team did was use 2 PWMs attached to a 3-way switch mounted on the robot, and made 2 case structures, one inside the other for autonomous. We wired digital IOs into the case strucures, and that's how we get our autonomous selection.


All times are GMT -5. The time now is 22:45.

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