View Single Post
  #15   Spotlight this post!  
Unread 09-02-2010, 07:45
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: problems with using switches for autonomous

Quote:
Originally Posted by ssica_jj View Post
When we ran the code, to check the values, we turned on the 'highlight execution' and saw that the only value being read is 0.
Try putting an indicator or a probe on the output of Get Dig In and running the code at speed.

Quote:
There are 3 Get Dig In because we are using 3 switches.
Get Dig In returns all eight switches at the same time. You only need to use it once, and you can get multiple elements from its output with a single Index Array. See the attached code fragment. [edit]...which apparently didn't get attached properly, and which I do not have a copy of at the moment. I'll try to correct that later today.[/edit]

Quote:
We are using the Append T/F String.vi to convert the digital input value into string.
I understand that, but you're ignoring the "Append" part of it. You can build the string as you go instead of keeping the characters separate and combining them in a separate step.

Last edited by Alan Anderson : 09-02-2010 at 12:18.
Reply With Quote