View Single Post
  #1   Spotlight this post!  
Unread 15-03-2012, 00:38
ablahblah ablahblah is offline
The Blaghh!
AKA: Alex
FRC #4404 (The Nuts 'N Colts)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2009
Location: USA
Posts: 27
ablahblah is an unknown quantity at this point
LV Not Responding to Variable Assignments

I'm getting some weird coding faults with Labview. Apparently, two out of three boolean variables that I've created refuse to have variables set to them. I've checked code over and over again, and nothing seems to be weird about them. They're not contained in the same libraries, and I've tried to minimize the libraries down but I've kept them in around 4 libraries for catagorization reasons.

They're all being initialized in Begin, and being reset in Finish. Besides that, they should just be getting set to true or false variables via Case Structures. Also, all three variables in question are globals, and I've tracked their variables by converting them to a 8-bit integer and outputting them in the User Messages pane of the classmate.

One instance is one I made the other day to do work for our encoder. Simply, all it is assigned to do is be true in Begin, true in Finish. In Teleop, it is the conditional for one case structure. For true, it starts encoder tracking, and sets itself to false. Once false, the structure executes the Get Encoder VI (forgot exactly what it was called). I made that so that it doesn't loop the start encoder VI. Checking via the User Messages Pane, it stays static at 0 from begin, teleop, finish.

Other instance is a sequential structure that executes on button press. It should be setting a boolean variable to be true inside that switches our launcher from manual to automated control (for ball retrieval purposes; complicated), and should be running an autonomous sequence. I can check via the User Message Pane (boolean -> 8-bit -> String), and it just stays 0 the entire time.

What I'm really not getting is that the one boolean global variable that works works pretty much the same way; gives itself new values in a conditional. If I stick that in the User Messages Pane, it indicates that it is switching between 0 and 1 as it should, and it does its function properly.

I'm just not sure what I should be looking for
Reply With Quote