Go to Post "Fair and professional" needs to be two-directional. - John Neun [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 Rating: Thread Rating: 8 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 01-09-2011, 06:57
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,752
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: How to use eeprom in labview

Inside the loop, the code compares the millisecond tick time to 1500. The millisecond tick is relative to when the robot booted, or when the app started, and keeps going up until it wraps. More than likely, the code should take the time when the button latched, subtract from the current time, and compare to 1500.

Also, personally, I'd take the time, X, and Y, and write them to a single file rather than having the data spread amongst two with duplicated times. This also extends if you add a manipulator or another degree of freedom to the robot or even sensor values that record the response of the robot.

Greg McKaskle
Reply With Quote
  #2   Spotlight this post!  
Unread 01-09-2011, 11:32
windtakers windtakers is offline
Registered User
AKA: Blake Dansfield
FRC #3620 (Average Joes)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: michigan
Posts: 33
windtakers is an unknown quantity at this point
Re: How to use eeprom in labview

The Thing I'm having trouble with is the tick counter. Because i only want the joysticks to be recorded for 15sec, but because the tick counter starts at the robot boot up and not when the case is true the tick counter is already over 15sec even before i get to actually wanting to record the joysticks.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-09-2011, 11:44
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,833
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: How to use eeprom in labview

It goes something like this, although this example is for a different purpose you should be handling the time in a similar fashion:

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 01-09-2011, 14:19
windtakers windtakers is offline
Registered User
AKA: Blake Dansfield
FRC #3620 (Average Joes)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: michigan
Posts: 33
windtakers is an unknown quantity at this point
Re: How to use eeprom in labview

this is awesome, and by the way i use your team website for labview help all the time. can't believe i didn't see this one. I think I have the timed task all done now. when I extract the data in autonomous that was saved into the spreadsheet i know that i need to tell the motors how long to run on a certain speed, but i don't know how to do that. Also this is a picture of my updated periodic tasks.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	36
Size:	25.3 KB
ID:	10906  

Last edited by windtakers : 01-09-2011 at 17:32.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-09-2011, 13:34
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,833
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: How to use eeprom in labview

To play it back you can run a While loop inside the Autonomous vi
  • Set initial conditions, e.g., pseudo-joystick values = zero
  • Feed initial pseudo-joystick values into motor set speed
  • While forever loop (with an appropriate delay)
    • Read one playback line
    • In an inside loop (with an appropriate delay)
      • Keep checking until elapsed time >= recorded Robot Time (make sure the times are measured the same)
      • When the condition is true, pass the new pseudo-joystick values out, exit the inside loop
    • Feed pseudo-joystick values into motor set speed
    • Make allowances to set speed to zero after the last playback line is read as a safety measure (that'll also help handle partial/incomplete playback files)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-09-2011 at 16:29.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-09-2011, 19:29
windtakers windtakers is offline
Registered User
AKA: Blake Dansfield
FRC #3620 (Average Joes)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: michigan
Posts: 33
windtakers is an unknown quantity at this point
Re: How to use eeprom in labview

Here is a picture of my autonomous. Can you tell me if it's programed right.
Attached Thumbnails
Click image for larger version

Name:	Untitled2.png
Views:	68
Size:	22.8 KB
ID:	10907  
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 20:46.

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