Go to Post Each match is a learning experiance - the only thing you can do is get better. - SuperJake [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-02-2009, 14:47
RedWolf55AJ RedWolf55AJ is offline
Registered User
FRC #0848
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 7
RedWolf55AJ is an unknown quantity at this point
Re: Buttons and Pneumatics Help

Alright, this is now officially ridiculous.
I'm working with the code the we(huskyrobotics is a team account) had yesterday and now the robot will not move at all. when I probe the connections, I see an obvious problem in the Get Axis VIs.

The Front Panel of the "Get Axis" VI is now reading USB 3 instead of USB 1. I have 2 instances of my "Get Axis" VI running, but on the Front Panel, I see 2 near-identical diagrams. One says USB 3 in serveral spots and the one below it says USB 2 in those same places. I need the USB 3 changed to USB 1 Please.

Now when I probe the connection between the 2nd "Get Axis" VI and the other input of the Tank Drive system, I get no recorded input, as if there is no controller there. At all.

This is ridiculous and my team and I are at our wits end pondering why it does not work. Screen schots will be up momentarily
Attached Thumbnails
Click image for larger version

Name:	RHP 2009 2-15 Main Block Diagram 1.PNG
Views:	71
Size:	55.4 KB
ID:	7463  Click image for larger version

Name:	RHP 2009 2-15 Main Block Diagram 2.PNG
Views:	57
Size:	48.9 KB
ID:	7464  Click image for larger version

Name:	RHP 2009 2-15 Joystick Open VI Diagram.PNG
Views:	48
Size:	16.8 KB
ID:	7465  Click image for larger version

Name:	RHP 2009 2-15 Joystick Open VI Diagram 2.PNG
Views:	56
Size:	15.2 KB
ID:	7466  Click image for larger version

Name:	RHP 2009 2-15 Joystick Get Axis VI Back.PNG
Views:	64
Size:	20.9 KB
ID:	7467  


Last edited by RedWolf55AJ : 15-02-2009 at 15:35.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2009, 18:23
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Buttons and Pneumatics Help

Be aware that if you are calling a subVI from multiple places in the program, it can be misleading to open the subVI and view its front panel to try and understand what is going on because you may or may not see all of the data that is flowing through the subVI. The data may move to quickly for the screen to update and display every piece of data.

For instance if the system alternately calls the GetAxis with USB1 and then with USB2, you may, or you may not see the alternating USB1 and USB2 values. Depending on the timing, you might see just one, or the other, or both at different times.

Also, since your diagram is large, it may be easier for us to diagnose your actual code than screen shots of it.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2009, 19:25
RedWolf55AJ RedWolf55AJ is offline
Registered User
FRC #0848
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 7
RedWolf55AJ is an unknown quantity at this point
Re: Buttons and Pneumatics Help

Quote:
Originally Posted by airnate View Post
Also, since your diagram is large, it may be easier for us to diagnose your actual code than screen shots of it.
how would I post the code instead of these screenshots then?
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2009, 20:52
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Buttons and Pneumatics Help

Just zip it (in Windows explorer, right click on the folder or file you want to compress and Sent To->Compressed (zipped) Folder or file.

Then upload the zipped file or folder.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2009, 22:35
RedWolf55AJ RedWolf55AJ is offline
Registered User
FRC #0848
 
Join Date: Feb 2009
Location: Los Angeles
Posts: 7
RedWolf55AJ is an unknown quantity at this point
Re: Buttons and Pneumatics Help

Alright, well, my team decided to try and clean up/clean out our old code, with a heavy emphasis on following the LabVIEW examples that we were provided with. With that said...
Attached Files
File Type: zip RHP 2009 FRC cRIO Robot 2.zip (142.7 KB, 46 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2009, 23:03
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Buttons and Pneumatics Help

The first thing that I notice is that you are using Controls to specify which channels you are using. You should right click these and Change to Constant because otherwise they will revert to the default value of the control when you deploy a stand alone executable and reboot.

Other than that I don't see functional problems with the code.

Aesthetically you should separate your subVIs on the diagram so it's clear where the wires are going. You want to expose all the wires and try not to cover any of the wires up when possible.

Are you still having functional difficulties?

Last edited by airnate : 15-02-2009 at 23:09.
Reply With Quote
  #7   Spotlight this post!  
Unread 07-05-2009, 15:23
CHSboy CHSboy is offline
Registered User
FRC #2153
 
Join Date: Feb 2009
Location: Chassell, MI
Posts: 33
CHSboy is an unknown quantity at this point
Re: Buttons and Pneumatics Help

Hey, I was looking at the pictures of coding from the attachments, and I was wondering, how do you get the status thing coming from the compressor enabled vi's error out, and how do you get the TF status things that aren't selecting true or false like the others. Sorry if this sounds somewhat stupid, but it's over my head.
Reply With Quote
  #8   Spotlight this post!  
Unread 07-05-2009, 15:55
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Buttons and Pneumatics Help

Quote:
Originally Posted by CHSboy View Post
I was wondering, how do you get the status thing coming from the compressor enabled vi's error out
The status is using Unbundle by Name to pull the status Boolean out of the error cluster. You can access it in programming -> Cluster, Class, & Variant -> Unbundle by Name.

Quote:
Originally Posted by CHSboy View Post
and how do you get the TF status things that aren't selecting true or false like the others.
I think you're referring to the indicators. You can right click on any output on the block diagram and choose create -> indicator, which will create an indicator of the correct type on the front panel. You could also make an indicator on the front panel, and then wire it on the block diagram, for example, using a round LED. A Boolean indicator will normally have a picture of an LED on the front panel, but if you right click on it and unselect view as icon, it will use the same type of picture as the screen shots above.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-05-2009, 11:21
CHSboy CHSboy is offline
Registered User
FRC #2153
 
Join Date: Feb 2009
Location: Chassell, MI
Posts: 33
CHSboy is an unknown quantity at this point
Re: Buttons and Pneumatics Help

Is the indicator on the "or" icon that has the arrow and green fill on the false side from the x input or x or y output?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
joystick and extra buttons TEAM1949 Programming 3 18-02-2008 13:22
Help Programming Buttons LordFrz Programming 3 14-02-2008 13:55
Buttons, Buttons and more Buttons (2006) Freddy Schurr Team Organization 11 14-12-2005 21:36
Buttons and Other Giveaways Phil Paspalas General Forum 29 30-01-2005 18:00
Looking for some help with buttons and pins... Amanda Morrison General Forum 4 26-02-2003 17:32


All times are GMT -5. The time now is 21:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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