Go to Post We always cut our parts to a tolerance of /- the width of that particular sharpie mark. - Whippet [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
  #16   Spotlight this post!  
Unread 04-02-2013, 22:00
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

I am unable to follow your code from the pictures. The wires are going in strange directions, are occasionally obscured by other things in the block diagram, and some go completely off the screen. There's only a partial view of what's in the Case blocks. You'll have to attach the actual VIs before I can try to figure out what they're doing. Even knowing what they're doing isn't going to help much if I don't know what you want them to do instead. Can you give a simple explanation of what you're trying to accomplish?

And I'll repeat my earlier question: What do you have wired to the DIO pins? Specifically, what are the "Break1" and "Break2" inputs reading?

Quote:
Originally Posted by sthreet View Post
...where do I find the things for the logitech gamepad F310?
I don't understand the question. Please try not to use the word "thing" without additional explanation.
Reply With Quote
  #17   Spotlight this post!  
Unread 05-02-2013, 01:45
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by Alan Anderson View Post
I am unable to follow your code from the pictures. The wires are going in strange directions, are occasionally obscured by other things in the block diagram, and some go completely off the screen. There's only a partial view of what's in the Case blocks. You'll have to attach the actual VIs before I can try to figure out what they're doing. Even knowing what they're doing isn't going to help much if I don't know what you want them to do instead. Can you give a simple explanation of what you're trying to accomplish?

And I'll repeat my earlier question: What do you have wired to the DIO pins? Specifically, what are the "Break1" and "Break2" inputs reading?



I don't understand the question. Please try not to use the word "thing" without additional explanation.
Hmm... i'll try a USB drive, we were having problems with internet on that computer for some reason i'm not sure of...

Hmm... now that i understand what you mean by DIO pins better i can check that; so pins are the little box thingies?

The open and close and get for the controller... The VI's... (sorry for use of pronouns)
Reply With Quote
  #18   Spotlight this post!  
Unread 05-02-2013, 07:54
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by sthreet View Post
Hmm... now that i understand what you mean by DIO pins better i can check that; so pins are the little box thingies?
No. Pins are metal pointy things that you physically attach wires to in order to bring signals and power to electrical components. The DIO pins are a long block of pointy metal bits sticking up near one edge of the Digital Sidecar. They come in sets of three, with +5 volts on the center pin, power return (-) on one of the side pins, and a signal (SIG) on the other side pin.

Your code is reading two of them. What is physically connected to those DIO pins on the Digital Sidecar? What are they supposed to make the robot do?

Quote:
The open and close and get for the controller... The VI's... (sorry for use of pronouns)
Gamepads are HID inputs. They are treated just like joysticks by the Driver Station. Use the same VIs that you'd use for a joystick.
Reply With Quote
  #19   Spotlight this post!  
Unread 05-02-2013, 16:15
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Wired into the Digital I/O into signal and negative.
Reply With Quote
  #20   Spotlight this post!  
Unread 05-02-2013, 16:33
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

I'm not able to give useful advice based on half an answer. May I have enough information to understand your goals, please?

What device do you have connected to the DIO pins?

What do you want that device to do? What do you want the robot to do based on that device?



Pretend everything is working the way you want it to and describe in detail what I would see if I were watching it.
Reply With Quote
  #21   Spotlight this post!  
Unread 05-02-2013, 18:23
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Sorry, will try to get code on usb drive right now, we are attempting to get the breaker switches to disable a motor when pushed.

The buttons we push should activate the motor but when we push the limit switch the motor should not move in one direction.

The Breaker switch is wired to the DIO of the Crio.

Not 100% sure what you are asking...

EDIT: How do i get part of the code into a USB/flash drive?
EDIT: Nevermind, google helped me this time.
EDIT: Ya, uploaded them.
Attached Thumbnails
Click image for larger version

Name:	begin.png
Views:	12
Size:	22.0 KB
ID:	13816  Click image for larger version

Name:	finishbig.png
Views:	12
Size:	95.3 KB
ID:	13817  Click image for larger version

Name:	finishsmall.png
Views:	11
Size:	41.0 KB
ID:	13818  Click image for larger version

Name:	teliop.png
Views:	12
Size:	69.6 KB
ID:	13819  

Last edited by sthreet : 05-02-2013 at 18:55.
Reply With Quote
  #22   Spotlight this post!  
Unread 05-02-2013, 20:43
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

In the attached code, it would not update the motor unless the digital switch was open. I think what you really intended was update it all the time, but to the correct value based on switch and joystick. The attached code requires for the switch to be FALSE and the joystick to be TRUE. It is missing the Get Refs and such but has the logic basics in place.

Also, the little broom icon at the top of the LV diagram is the cleanup button. If your diagram has overlapping nodes and wires going in many directions, you may want to try the button. You can always undo if you don't like it.

Greg McKaskle
Attached Thumbnails
Click image for larger version

Name:	Clipboard 1.png
Views:	17
Size:	26.1 KB
ID:	13823  
Reply With Quote
  #23   Spotlight this post!  
Unread 05-02-2013, 22:26
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

I'm not sure I understand what you said but i'll try the symbols I haven't seen anywhere but labview and see if it works, thanks I guess.
Reply With Quote
  #24   Spotlight this post!  
Unread 06-02-2013, 07:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

If you can't find them, please ask. Hint, if they take in two Boolean wires and return a Boolean, they are typically logic such as AND or OR. Engineers often use these symbols instead of the words.

Greg McKaskle
Reply With Quote
  #25   Spotlight this post!  
Unread 07-02-2013, 15:59
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

I like || and &&...

EDIT: Can't find the ?tf thingy...

EDIT: Any example of one-button controlled air cylinder?

Last edited by sthreet : 07-02-2013 at 16:37.
Reply With Quote
  #26   Spotlight this post!  
Unread 07-02-2013, 16:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by sthreet View Post
EDIT: Can't find the ?tf thingy...
I think you're looking for the Select function. It's in the Boolean palette, with the rest of the Boolean functions.

[edit]Actually, as you found, it's in the Comparison palette. My mistake.[/edit]

Last edited by Alan Anderson : 08-02-2013 at 15:59.
Reply With Quote
  #27   Spotlight this post!  
Unread 08-02-2013, 15:52
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by Alan Anderson View Post
I think you're looking for the Select function. It's in the Boolean palette, with the rest of the Boolean functions.
I don't know why I didn't find it before but its under the comparison section palette...

EDIT: How to get blue '1'?
EDIT: Found blue '1'...

EDIT: Code doesn't work to run the motor with breaker switches but when i start it up unless i look at the empty error list it says something is null...

Last edited by sthreet : 08-02-2013 at 18:15.
Reply With Quote
  #28   Spotlight this post!  
Unread 11-02-2013, 10:43
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Quote:
Originally Posted by sthreet View Post
Code doesn't work to run the motor with breaker switches but when i start it up unless i look at the empty error list it says something is null...
Common reasons for things being null? Do i need to copy the exact error? (Will at lunch today... if no reply by then)
EDIT: Error not showing up anymore, but code still doesn't work....

Last edited by sthreet : 11-02-2013 at 16:28.
Reply With Quote
  #29   Spotlight this post!  
Unread 11-02-2013, 22:49
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Breaker Switches and Buttons to Motors

Ok, I can't figure out how to get servos to work, copied and pasted the code from the example (was running out of options...), used a basic set angle, set position... Nothing...

Also the attached code isn't working as intended (trying to get motor run when breaker switches aren't pushed) and the motor never runs unless i switch around the blue one and the orange zero... When I do that it always runs...
Attached Thumbnails
Click image for larger version

Name:	doen't work....png
Views:	9
Size:	31.1 KB
ID:	13949  
Reply With Quote
  #30   Spotlight this post!  
Unread 11-02-2013, 23:08
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Breaker Switches and Buttons to Motors

Servos require a jumper on the Digital Sidecar, beside the PWM that the servo is attached to.
That jumper feeds the servo it's power.

Your posted code is setting the same motor (Motorsingle 1) in two different places at the same time.
That's never good.
You need to combine or choose between the competing Buttons and decide on an order of who goes first.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 11-02-2013 at 23:22.
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


All times are GMT -5. The time now is 11:00.

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