Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Help Us (http://www.chiefdelphi.com/forums/showthread.php?t=127755)

Rochester2909 11-03-2014 15:28

Help Us
 

If you could look at these pictures and tell us whats wrong

Rochester2909 11-03-2014 15:31

Re: Help Us
 





randantor 11-03-2014 15:33

Re: Help Us
 
Edit: just saw the pictures posted in the thread

As far as I can tell, your solenoid code looks all right. Could you be more specific on exactly what you're having trouble with?

One thing to note is that the Motor Set Output VI expects a floating-point value from -1.0 to 1.0 , where -1 is full reverse, 0 is stop, and 1 is full power forwards. You seem to be giving it an integer from 0-255, which probably won't work the way you are expecting it to. Any value higher than 1 will be interpreted as full power forwards.

Greg McKaskle 11-03-2014 15:39

Re: Help Us
 
You open joystick 1 and joystick 2, but only use joystick 1. You don't show Periodic Tasks, so I can't tell if the Compressor code is in place and using the correct string.

You are also using last year's template. This will be fine, but it is more difficult to delete the camera stuff if you aren't using it.

Did you have specific issues you wanted help to understand?

Greg McKaskle

Rochester2909 11-03-2014 15:59

Re: Help Us
 
Quote:

Originally Posted by randantor (Post 1357466)
Edit: just saw the pictures posted in the thread

As far as I can tell, your solenoid code looks all right. Could you be more specific on exactly what you're having trouble with?

One thing to note is that the Motor Set Output VI expenging-point value from -1.0 to 1.0 , where -1 is full reverse, 0 is stop, and 1 is full power forwards. You seem to be giving it an integer from 0-255, which probably won't work the way you are expecting it to. Any value higher than 1 will be interpreted as full power forwards.

Thanks for the numerical range! That was something I have been searching for, but have yet to find.
Our problem is that when we attempt to test the code, we receive no response from the robot, yet the diver station reports no errors. Currently, we are searching for a wiring malfunction.

Rochester2909 11-03-2014 16:14

Re: Help Us
 
Quote:

Originally Posted by Greg McKaskle (Post 1357473)
You open joystick 1 and joystick 2, but only use joystick 1. You don't show Periodic Tasks, so I can't tell if the Compressor code is in place and using the correct string.

You are also using last year's template. This will be fine, but it is more difficult to delete the camera stuff if you aren't using it.

Did you have specific issues you wanted help to understand?

Greg McKaskle

Here is periodic tasks. We have not programmed anything onto the second joystick because we had an issue where the values of other joysticks were misread.


Invictus3593 14-03-2014 09:51

Re: Help Us
 
I'm pretty sure for a double solenoid, you need to actually tell it forward or backward, not just true or false. You can do this by using the selector and a couple constants.

you can also use the selector for your motor values which can be numbers from -1 to 1, not 0 to 255

pastelpony 14-03-2014 23:55

Re: Help Us
 
Yeah I'm pretty sure you need to define direction of a single solenoid. It's a constant on the 'Set' block.


All times are GMT -5. The time now is 08:59.

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