Go to Post ....a red-light-of-death. - Kevin Watson [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 01-01-2017, 12:05
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Write to Flash Drive on the RoboRio

Has anyone here developed a method to write to the flash drive through LabVIEW to the RoboRio flash drive?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-01-2017, 12:51
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Write to Flash Drive on the RoboRio

Plug in a flash drive and open up the Rio web based configuration. Then in the file browser find what the flash drive directory is called. Ours was "/u".

Once you know what the directory is called you can use the File I/O VI's in the Programming section on the Function pallet.

An example file path would be: /u/auto_programs/Program-1.txt

/u is the flash drive
/auto_programs would be a user created folder in this case
/Program-1.txt would be a text file you are saving data to
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
Reply With Quote
  #3   Spotlight this post!  
Unread 01-01-2017, 13:11
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Re: Write to Flash Drive on the RoboRio

Thank you for that information. It is an interesting way to think about what we could do.

I was actually thinking about writing tot he RoboRio drive. Has anyone done that through LabVIEW?
Reply With Quote
  #4   Spotlight this post!  
Unread 01-01-2017, 13:34
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Write to Flash Drive on the RoboRio

Quote:
Originally Posted by aeastet View Post
Thank you for that information. It is an interesting way to think about what we could do.

I was actually thinking about writing tot he RoboRio drive. Has anyone done that through LabVIEW?
Same thing just start with the main directory of the Rio instead of the flash drive directory.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
Reply With Quote
  #5   Spotlight this post!  
Unread 01-01-2017, 13:53
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Re: Write to Flash Drive on the RoboRio

What are you using to do this? I tried the create file and it tells me that it does not exists. Are you using a standard LabVIEW function to do this?

Any chance you have example code. A picture would do.
Reply With Quote
  #6   Spotlight this post!  
Unread 01-01-2017, 14:09
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Write to Flash Drive on the RoboRio

See the attached example.
Attached Thumbnails
Click image for larger version

Name:	TXT_File_Example.png
Views:	36
Size:	26.8 KB
ID:	21429  
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
Reply With Quote
  #7   Spotlight this post!  
Unread 04-01-2017, 07:58
Jonathan L. Jonathan L. is offline
Registered User
FRC #1094
 
Join Date: Jan 2013
Location: St. Louis MO
Posts: 60
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: Write to Flash Drive on the RoboRio

See "File IO" at http://wpilib.screenstepslive.com/s/...e-2014-to-2015

You may need to use the base path /home/lvuser to write files to the roboRIO. Also, remember to use the Create Folder function BEFORE the Create File function if you are not sure that the folder has been created yet.

The File I/O functions are in the Programming\File I/O palette and the Create Folder function is in the Programming\File I/O\Advanced File Functions palette.

You can read and write to a simple text file or to your own binary file (as long as you keep track of the LabVIEW Data Type that the file uses). There is a subPalette that contains VIs for making .ini configuration files (caution: the configuration file is not actually saved until it is closed). Also, if you want to save a cluster of data in a human readable format, you can use the Flatten JSON or XML functions in the Programming\String\Flatten/Unflatten String palette.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-01-2017, 12:41
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 116
aeastet is an unknown quantity at this point
Re: Write to Flash Drive on the RoboRio

Quote:
Originally Posted by Jonathan L. View Post
See "File IO" at http://wpilib.screenstepslive.com/s/...e-2014-to-2015

You may need to use the base path /home/lvuser to write files to the roboRIO. Also, remember to use the Create Folder function BEFORE the Create File function if you are not sure that the folder has been created yet.

The File I/O functions are in the Programming\File I/O palette and the Create Folder function is in the Programming\File I/O\Advanced File Functions palette.

You can read and write to a simple text file or to your own binary file (as long as you keep track of the LabVIEW Data Type that the file uses). There is a subPalette that contains VIs for making .ini configuration files (caution: the configuration file is not actually saved until it is closed). Also, if you want to save a cluster of data in a human readable format, you can use the Flatten JSON or XML functions in the Programming\String\Flatten/Unflatten String palette.
Hey thanks Jonathan. That was helpful info.
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:07.

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