|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Buttons and Pneumatics Help
Quote:
|
|
#2
|
|||
|
|||
|
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 Last edited by RedWolf55AJ : 15-02-2009 at 15:35. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Re: Buttons and Pneumatics Help
how would I post the code instead of these screenshots then?
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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...
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
||||||
|
||||||
|
Re: Buttons and Pneumatics Help
Quote:
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. |
|
#10
|
|||
|
|||
|
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?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |