Go to Post Forget Pool Basketball or Pool Volleyball, it's time for some Pool Rack n' Roll! - Conor Ryan [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 11-02-2013, 17:56
theboyer theboyer is offline
Registered User
FRC #3965
 
Join Date: Feb 2013
Location: United States
Posts: 7
theboyer is an unknown quantity at this point
Re: New Programmer

Now I'm trying to insert a process much like this which will set a servo to 90 activate a relay forward and then set both of them back to their natural position
but it seems to be running too fast and starving the drive system any pointers
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2013, 00:08
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,112
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: New Programmer

Quote:
Originally Posted by theboyer View Post
Now I'm trying to insert a process much like this...
Unless we see what you're actually doing, we won't be able to give much in the way of help. Show us your code, not the example you're emulating.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2013, 00:34
theboyer theboyer is offline
Registered User
FRC #3965
 
Join Date: Feb 2013
Location: United States
Posts: 7
theboyer is an unknown quantity at this point
Re: New Programmer

oh sorry yes here
Attached Thumbnails
Click image for larger version

Name:	test.jpg
Views:	61
Size:	175.8 KB
ID:	13950  
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2013, 07:15
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,751
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: New Programmer

If you place the code into teleop, it will prevent teleop from running frequently enough. Try moving it to Periodic tasks.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2013, 09:31
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: New Programmer

I can't be the only LabVIEW developer that despises the use of the feedback node, can I? IMO, while feedback nodes *can* make a diagram cleaner, they actually make it *harder* to understand, as compared to using the equivalent shift register.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2013, 16:43
theboyer theboyer is offline
Registered User
FRC #3965
 
Join Date: Feb 2013
Location: United States
Posts: 7
theboyer is an unknown quantity at this point
Re: New Programmer

I attempted this and it still says it is starving the drive loop
Reply With Quote
  #7   Spotlight this post!  
Unread 12-02-2013, 17:37
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: New Programmer

You can attach your vi's directly to a post.
Show us your Teleop.vi & Periodic.vi, and any other vi you might have added code to.

The code you posted looks fine as long as it's in Periodic Tasks.vi (it would not work in Teleop).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2013 at 17:40.
Reply With Quote
  #8   Spotlight this post!  
Unread 12-02-2013, 19:56
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,751
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: New Programmer

Quote:
I can't be the only ...
I also learned LV long before there were shift registers and in many ways prefer them, but I now use both, typically for different things. I really like the compare to last with a shift register, but otherwise typically use shift registers.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 12-02-2013, 20:33
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: New Programmer

Quote:
Originally Posted by Greg McKaskle View Post
I also learned LV long before there were shift registers and in many ways prefer them, but I now use both, typically for different things. I really like the compare to last with a shift register, but otherwise typically use shift registers.

Greg McKaskle
I almost never use feedback nodes, but I find myself using feed forward nodes quite frequently. They make more sense to me because the flow of the code keeps moving forward. If I'm in a loop, though, I'll always use shift registers.
Reply With Quote
  #10   Spotlight this post!  
Unread 13-02-2013, 09:47
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: New Programmer

Quote:
Originally Posted by bvisness View Post
I almost never use feedback nodes, but I find myself using feed forward nodes quite frequently.
Is "feedforward node" generally accepted terminology for a feedback node that simply has the arrow direction changed to make the wiring cleaner? If so, it seems unfortunate. The function of the node remains the same regardless of arrow direction.


Reply With Quote
  #11   Spotlight this post!  
Unread 13-02-2013, 16:13
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: New Programmer

Quote:
Originally Posted by Ether View Post
Is "feedforward node" generally accepted terminology for a feedback node that simply has the arrow direction changed to make the wiring cleaner? If so, it seems unfortunate. The function of the node remains the same regardless of arrow direction.
As far as I know, they're only called feedback nodes. Changing the direction doesn't change their functionality. It just makes the code 'flow' more smoothly sometimes.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
Reply With Quote
  #12   Spotlight this post!  
Unread 13-02-2013, 20:09
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: New Programmer

Quote:
Originally Posted by RyanN View Post
As far as I know, they're only called feedback nodes. Changing the direction doesn't change their functionality. It just makes the code 'flow' more smoothly sometimes.
I guess it's not technically called a feed forward node, but that's what I have come to call them for reasons that are unclear to me. I think one of our mentors called it that, and it stuck.

But it does go forward...so I think I'm gonna stick to the "feed forward" name.
Reply With Quote
  #13   Spotlight this post!  
Unread 14-02-2013, 07:30
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,751
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: New Programmer

Rather than feed forward, how about previous value or delay by one or some name that explains its purpose rather than its appearance.

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 13-02-2013, 09:23
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: New Programmer

Quote:
Originally Posted by Greg McKaskle View Post
I also learned LV long before there were shift registers and in many ways prefer them, but I now use both, typically for different things. I really like the compare to last with a shift register, but otherwise typically use shift registers.

Greg McKaskle
@Greg McKaskle: I really like several of the changes that have come about since the birth of the idea exchange a couple years ago. Things like shrinking the boolean constant, changes to local variable graphics, integrated labels for structures, better alignment of vi.lib vi's I/O and so on.

For my non-FRC applications, I REALLY like the JKI string-based state machine template.
Reply With Quote
  #15   Spotlight this post!  
Unread 12-02-2013, 23:47
theboyer theboyer is offline
Registered User
FRC #3965
 
Join Date: Feb 2013
Location: United States
Posts: 7
theboyer is an unknown quantity at this point
Re: New Programmer

Here are my tele op and periodic vis neither has much extra really
Attached Files
File Type: vi Teleop.vi (25.9 KB, 3 views)
File Type: vi Periodic Tasks.vi (31.1 KB, 4 views)
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 12:02.

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