Go to Post Better is the enemy of good enough. - petek [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
  #1   Spotlight this post!  
Unread 19-02-2014, 09:34
Ragingenferno's Avatar
Ragingenferno Ragingenferno is offline
That one guy
AKA: Josh
FRC #3053 (Stingers)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: NYC
Posts: 39
Ragingenferno is just really niceRagingenferno is just really niceRagingenferno is just really niceRagingenferno is just really niceRagingenferno is just really nice
Is this the correct way to move a motor forward then back in labview?

I'm trying to make a motor move forward then pause then go backwards all with one press of a button in lab view. I think I figured it out but i'm not to sure if I did it correctly.
Attached Thumbnails
Click image for larger version

Name:	Parallels Picture.png
Views:	66
Size:	257.5 KB
ID:	16325  
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2014, 10:28
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,795
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: Is this the correct way to move a motor forward then back in labview?

Don't you want it to stop at the end?
What you have will work do something, but after the first button press the motor will always be left running.

The Flat Sequence Structure isn't normally done as three separate, individual structures.
Normal usage is to have a single Flat Sequence Structure, right click on a side edge and choose Add Frame After to add another frame.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 19-02-2014 at 13:20.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2014, 11:30
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: Is this the correct way to move a motor forward then back in labview?

To make a flat sequence structure, you right-click on the first panel and then a little windowish thing pops up. click on "add frame after" and you will have two frames.


Good Luck!
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2014, 13:17
Ragingenferno's Avatar
Ragingenferno Ragingenferno is offline
That one guy
AKA: Josh
FRC #3053 (Stingers)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: NYC
Posts: 39
Ragingenferno is just really niceRagingenferno is just really niceRagingenferno is just really niceRagingenferno is just really niceRagingenferno is just really nice
Re: Is this the correct way to move a motor forward then back in labview?

Okay, I think i fixed it. Is it perfect now?
Attached Thumbnails
Click image for larger version

Name:	Parallels Picture 2.png
Views:	38
Size:	254.8 KB
ID:	16327  
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2014, 13:21
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: Is this the correct way to move a motor forward then back in labview?

It will work, but I was just told that sequence structures don't do well in teleop. I heard that they work best in the periodic tasks VI. Here is a pic of what it may also look like.

Reply With Quote
  #6   Spotlight this post!  
Unread 19-02-2014, 15:27
Ragingenferno's Avatar
Ragingenferno Ragingenferno is offline
That one guy
AKA: Josh
FRC #3053 (Stingers)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2012
Location: NYC
Posts: 39
Ragingenferno is just really niceRagingenferno is just really niceRagingenferno is just really niceRagingenferno is just really niceRagingenferno is just really nice
Re: Is this the correct way to move a motor forward then back in labview?

Quote:
Originally Posted by nxtmonkeys View Post
II heard that they work best in the periodic tasks VI.
Yes, I already have it in periodic task. Thanks for the example.

Quote:
Originally Posted by Mark McLeod View Post
add a frame at the end to set the motor to 0 speed.
Now I got to add the 0 to the set output. Thanks.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-02-2014, 16:43
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: Is this the correct way to move a motor forward then back in labview?

You are welcome.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-02-2014, 14:19
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,795
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: Is this the correct way to move a motor forward then back in labview?

Quote:
Originally Posted by Ragingenferno View Post
Okay, I think i fixed it. Is it perfect now?
Now it would run once, then never run again.

The Close should not be used.

Instead, add a frame at the end to set the motor to 0 speed.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #9   Spotlight this post!  
Unread 19-02-2014, 14:23
nxtmonkeys's Avatar
nxtmonkeys nxtmonkeys is offline
SCP-682
AKA: Parker Wells
FRC #5349 (RoboEagles)
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2014
Location: New York
Posts: 213
nxtmonkeys will become famous soon enough
Re: Is this the correct way to move a motor forward then back in labview?

Quote:
Originally Posted by Mark McLeod View Post
Now it would run once, then never run again.

The Close should not be used.

Instead, add a frame at the end to set the motor to 0 speed.


Mark is right.
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 08:55.

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