Announcement

Collapse
No announcement yet.

Run works, but build&run as startup doesnt

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run works, but build&run as startup doesnt

    We are currently trying to get our pneumatics system working. we have two single solenoids hooked up to the cRio pneumatics bumper.

    now, we have programmed both single solenoids and the compressor in labview. we press the white Run arrow in the top left of labview to test, and then everything works properly, motors and all.

    we then proceed with build, run as startup. when we test it again, the compressor goes on, and one single solenoid works (but the joystick button gets changed!), our second solenoid does not respond at all. our electric motors all workk properly.

    we go back to using the temporary run deploy, and then everything works fine!...

    we have been at this for a few days already, what could we be doing wrong?

  • #2
    Re: Run works, but build&run as startup doesnt

    Do you get any build errors? I've had it where I didn't notice a build error, and then deploy the old program.

    Can you post the contents of the WPI_Error.txt from the cRIO? You can retrieve it by FTPing to the cRIO.
    Team 330 beta tester

    Comment


    • #3
      Re: Run works, but build&run as startup doesnt



      i think it builds fine. but when we press run as startup, we do get this message, and we just press ok..

      im not sure what FTPing to the cRio means

      Comment


      • #4
        Re: Run works, but build&run as startup doesnt

        You can use the ftp command on the command line or you can use a web browser and point it at url ftp://10.xx.yy.2 and browse for the file.

        Comment


        • #5
          Re: Run works, but build&run as startup doesnt

          ok, we found the WPI_Error.txt form the crio, the most recent error we got was this:

          ERROR Code: -44046 occured at 01:14:01 02/11/2009
          Description: The solenoid resource in the specified module is already allocated. Release the solenoid resource before allocating it.
          Call Chain: Basic Robot Main.vi >> Solenoid.lvlib:Open.vi >> SolenoidChache.vi

          the error we had the most often however, was this one:

          ERROR Code: -44047 occured at 01:14:01 02/11/2009
          Description: Invalid set operation. Solenoid channel has not been allocated
          Call Chain: Basic Robot Main.vi >> Solenoid.lvlib:Set.vi

          we got this error a lot and the first one only occured 2 times.

          what does mean?
          Last edited by program1; 02-10-2009, 07:57 PM.

          Comment


          • #6
            Re: Run works, but build&run as startup doesnt

            You've listed the same error code twice. :/

            From the description, though, the first means that you called open on the same channel twice without calling close in between.

            The second means that you called Set after calling Close or having never called Open.

            Comment


            • #7
              Re: Run works, but build&run as startup doesnt

              Originally posted by program1 View Post
              i think it builds fine. but when we press run as startup, we do get this message, and we just press ok..
              This is fine. Just say OK to refresh and continue.

              Comment


              • #8
                Re: Run works, but build&run as startup doesnt


                This is our solenoid code. i think everything is correct, can you see any errors in it?

                Comment


                • #9
                  Re: Run works, but build&run as startup doesnt

                  Depends what you are setting each of the SolenoidChannel controls to. Make sure they are all different.

                  Comment


                  • #10
                    Re: Run works, but build&run as startup doesnt

                    yes, all the solenoid channels are different, we are using 1, 2, & 7

                    Comment


                    • #11
                      Re: Run works, but build&run as startup doesnt

                      it seems suspicious that you have 3 solenoids in your code and you got 2 errors saying that the solenoid was already open. It tends to imply that all three are tying to use the same channel. How are you specifying them? Are you setting the channel values as default before you deploy?

                      Comment


                      • #12
                        Re: Run works, but build&run as startup doesnt

                        You should be able to verify the behavior by changing those 3 controls to constants.

                        Comment

                        Working...
                        X