Log in

View Full Version : HELP!!!! we need help w/ compressors/pneumatics for teleop/autonomous in LABVIEW


rokenboker
05-02-2010, 13:02
hi, i cannot get any code to work in any type of form, one way or another. i've tried to make my own VI, use their formatting for code, nothing works!!! also i would like to state that in neither code i have vision feedback anymore.

here are some examples:

Mark McLeod
05-02-2010, 14:19
You don't seem to have followed the Default coding conventions and that prevents your code from working.
You Open your drive motors in two different places (Begin and Teleop) and that just confuses the cRIO.
I especially like how you have the Enable Vision control sitting all by itself, unconnected to anything at all.

In your own standalone vi you are missing all the Driver Station communication, so it can never be Enabled from the Driver Station.

I think you're trying to follow last year's Basic-style in this year's Advanced-style and that won't work well.

Learn to:
Open all your devices in Begin.vi,
Close everything only in Finish.vi, and
Set your solenoids in Teleop.vi and Autonomous Independent.viWe can help if you want to walk through it.

rokenboker
05-02-2010, 14:38
yes, a helpful walkthrough would be GREAT thanks. what would be the easiest way to do that? i have

skype: rokenboker

gmail: rokenboker

or, anything thagt you would prefer, please tell me.

thanks alot!

helenajoy
05-02-2010, 14:58
Hope it's okay if I ask this here...it's related to pneumatics in LabView and how I could go about programming it.

I am sure that I do not have the same problem as the person above - we've developed original code and have seen it work. The only thing is, we've never written code for pneumatics.

I'm wondering about writing pneumatics in autonomous mode. What structure and VIs would I use to in order to include pneumatics in our autonomous?

Also - another question.
In our autonomous mode - we are planning to have our robot move and kick with pneumatics.

How can we combine these two elements? Currently, we have one sequence that controls purely the movement of the robot (going forward, back, etc.).
Is it better to program the pneumatics into that sequence? Or to create an entirely different sequence that is somehow time-linked with the first movement sequence?

Hope this makes sense! (:

rokenboker
05-02-2010, 15:03
actually, that's kind of what i'm trying to do as well, are you using LABVIEW? if so check out some of my code, maybe we can use each other's code tohelp the both of us.

helenajoy
05-02-2010, 15:18
Yup, we are using LabView as well. I'd offer to share our code with you, but I do not know how to upload a LabView project and all that. =/ I'll take a look at your code right now, thanks!

rokenboker
05-02-2010, 15:20
do u have skype or gmail? that way we should be able to help each other alot faster.

helenajoy
05-02-2010, 15:23
No, unfortunately I do not.
I only have Yahoo! messenger.

rokenboker
05-02-2010, 15:24
rokenboker@yahoo.com

Tom Line
05-02-2010, 17:10
There is a pre-made pneumatics example included with labview. You can find it in the examples section (when you go to load up your project, you can go the lower right and click examples).

This gives you the basic code to make everything work in a nice little package. You merely need to slide it over into your actualy robot program to make it work.

You CAN load the example by itself just to prove you have all the hardware set up correctly as well.