Go to Post "So [you're] like battlebots" Standard answer: No -- it's better! - Roger [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 29-01-2010, 11:27
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Data File Writing ... cRIO vs. Driver Station

In support of refining of our constants/gains/limits related to driving, I want to output a file of the robot's performance parameters. Then, I'll take that file and dump it into excel to plot the actual speeds vs. commanded speeds vs. accelerations vs. gyro readings etc.

I'm wondering if I should perform a local file write on the cRIO, or if I should do it at the Driver Station. Most/all of the data that we're interested in will be reported on our custom dashboard anyways, so I'm leaning towards writing it to the local disk ... either at the driver station, or a development PC on the 'bot network.

I've never done a file write in Labview before and would appreciate any tips/tricks that y'all could provide. I'm not near my development PC at the moment and don't even know where to look in the VI pallettes to find the appropriate blocks for file formatting, naming, writing, etc.

Thanks.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2010, 20:54
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: Data File Writing ... cRIO vs. Driver Station

Examples are always a good place to start. In addition to the WPI robotics examples, you'll find lots of examples on dealing with text files, binary files, XML files, etc.

Ask again if you need help narrowing it down.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2010, 10:05
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
Re: Data File Writing ... cRIO vs. Driver Station

Good advice. Saturday is an all day session w/ the team and we'll look at the examples ...

... but looking at the bigger picture ... what are the pros & cons of writing the file onto the cRIO vs. writing it onto the driver station? I've got a few ideas, but still appreciate advice from the folks that have already done this a lot.

Keep in mind that my data is simple columns of speeds, encoder values, accel values, etc. Some of my assumptions may be bogus if dealing with images or other sorts of data.

If the data is already available at both locations, then it'd probably be more "convenient" to be able to get the file copied off of the DS vs the extra file transfer from the cRIO.

I don't think resolution is a factor. Right? Putting the file-write into the teleop.vi, getting called at 50 Hz would result in the same rate as a driver station write ... giving me equal results.

The "saveImageFile.vi" example uses a target path of "c:\images" ... does the cRIO filesystem emulate a DOS-like filespace? How much filespace is there available on the cRIO to write to anyway?

I'm off to the team meeting ... looking forward to our results, and then coming back here to discuss.
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics

Last edited by Ziaholic : 30-01-2010 at 10:06. Reason: fixed typo
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2010, 15:20
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Data File Writing ... cRIO vs. Driver Station

Quote:
Originally Posted by Ziaholic View Post
If the data is already available at both locations, then it'd probably be more "convenient" to be able to get the file copied off of the DS vs the extra file transfer from the cRIO.
Given the fact that you are already sending it to the dashboard, I tend to agree that it's just easier to do it there.

Quote:
Originally Posted by Ziaholic View Post
I don't think resolution is a factor. Right? Putting the file-write into the teleop.vi, getting called at 50 Hz would result in the same rate as a driver station write ... giving me equal results.
True, though presumably you could write more often if you did it on the cRIO assuming that was beneficial to you.

Quote:
Originally Posted by Ziaholic View Post
The "saveImageFile.vi" example uses a target path of "c:\images" ... does the cRIO filesystem emulate a DOS-like filespace? How much filespace is there available on the cRIO to write to anyway?
c:\ is considered the root of the FTP server. The cRIO has 128MB disk on chip. My controller has about 100MB free after reimaging.

-Joe
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
Logging console data to text file on crio Kingofl337 Programming 3 09-04-2009 18:57
cRIO "Magic" Values: Unresponsive Driver Station KRV NI LabVIEW 0 13-02-2009 17:33
driver station and cRIO firmware update help asianfez123 FRC Control System 1 16-01-2009 02:34
cRIO/Driver Station output to laptop smcmahon FRC Control System 3 14-12-2008 13:51
Reading binary data from a file and writing it in VB complete Programming 1 02-01-2006 21:21


All times are GMT -5. The time now is 22:37.

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