Go to Post I believe in my students, I encourage them to fail in their endeavors to find the best formula. There is valuation in failure. - Chief Hedgehog [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 10-02-2009, 03:12
Ori2630 Ori2630 is offline
Registered User
FRC #2630
 
Join Date: Feb 2009
Location: Israel
Posts: 5
Ori2630 is an unknown quantity at this point
Encoders and Data

Hi everyone,
it's my FIRST post, and I need help with the kit encoders (optical)
and I have a question about real time data saving:
1) When I tring to run the program with the encoder code, LabVIEW wants me to give a password for the FPGA (which, I don't have).
2) I was wanderring if I can save in the flash memory data form the ran time, like the last angle of the gyro, and to use that data in the next run.

thankyou,
Ori-2630.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2009, 13:42
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: Encoders and Data

If it's asking for the FPGA password you might be defaulting to running the vi on your PC, not the cRIO.

Are you running the Basic or Advanced Framework or just a standalone vi?

If your program gets stopped between runs, but you want to save and pass data between runs, then you'd probably want to write it to a permanent file and read that file back in each time you start.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2009, 14:36
Ori2630 Ori2630 is offline
Registered User
FRC #2630
 
Join Date: Feb 2009
Location: Israel
Posts: 5
Ori2630 is an unknown quantity at this point
Re: Encoders and Data

About the FPGA, I fixed the problem...I was needing to update my LabVIEW to 3.0a, and it worked like a megic (except of the Gyro issue-solved).
And about the saving thing, I figerd that I need to save it on permanent file...but HOW?
If some one could sand me an exemple, it will help us.
One more thing, how should I connect the 4 wire form the encoder to the cRIO?

Thankyou again,
Ori-2630
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2009, 14:52
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: Encoders and Data

Quote:
Originally Posted by Ori2630 View Post
One more thing, how should I connect the 4 wire form the encoder to the cRIO?
The encoders that come with the ToughBoxes? The cable has four colors. Brown is ground and should go to the - of a DIO on the Digital Sidecar. Orange is power and should go to the 5v of the same DIO. Yellow is (either A or B, I don't remember exactly right now) and should go to the SIGNAL of the same DIO. Blue is (B or A, whatever yellow isn't) and goes to the SIGNAL of another DIO. Leave the - and 5v of that second DIO unconnected.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2009, 15:36
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Encoders and Data

I would look here first: http://usdigital.com/first
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2009, 06:41
Ori2630 Ori2630 is offline
Registered User
FRC #2630
 
Join Date: Feb 2009
Location: Israel
Posts: 5
Ori2630 is an unknown quantity at this point
Re: Encoders and Data

Thank you all I succeeded with the encoders, but i need more information about saving data (logging) to the flash, and how to use it later (after power off...)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview 8.5 and encoders MorbidAngel NI LabVIEW 1 15-11-2008 13:57
Encoders, gyro, and accelerameters R.C. Electrical 3 15-04-2008 18:19
Encoders and putdata theycallhimtom Programming 3 09-02-2006 19:24
EEPROM and Encoders Bharat Nain Electrical 7 01-12-2005 10:06
Testing and Cause of Failure for Encoders and Hall Effect sensors ChrisH Electrical 28 19-09-2005 01:07


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

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