Go to Post To quote Dylan, "When you aint got nothing, you got nothing to lose". - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-01-2011, 11:27
Birdlives's Avatar
Birdlives Birdlives is offline
Registered User
FRC #2337 (EngiNERDs)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Michigan
Posts: 7
Birdlives is an unknown quantity at this point
Help with FTPing files to the cRIO

Hey guys,

My team wants to create an ambiguous autonomous that we can use on almost any robot if our auton fails. We planned on doing this by FTPing tab-delimited text files that describe vectors to drive along to a specific folder on the cRIO using filezilla and then retrieving them using a file path constant in labview.

We tested this by putting a file named "autontest1.txt" into the /ni-rt/startup directory, making our file path in labview "/ni-rt/startup/autontest1.txt" but when we run our code, labview throws error 1430 "The path is empty or relative. You must use an absolute path"

I've already done a lot of research on how the file paths work on the cRIO (it's linux) and how to fix error 1430 on various platforms, but to no avail.

Thanks ahead of time!!
John
  #2   Spotlight this post!  
Unread 17-01-2011, 11:52
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Help with FTPing files to the cRIO

Quote:
Originally Posted by Birdlives View Post
cRIO (it's linux)
No, it is VxWorks.

I've successfully been able to read stuff (C++ at least) thats on the root. I have't tried putting it in folders though.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #3   Spotlight this post!  
Unread 17-01-2011, 11:55
GGCO's Avatar
GGCO GGCO is offline
Registered User
AKA: Grant
FRC #3357
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2004
Location: Michigan
Posts: 406
GGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to beholdGGCO is a splendid one to behold
Send a message via AIM to GGCO
Re: Help with FTPing files to the cRIO

Assuming that you're able to view the file tree in filezilla, could it be a permissions issue? You might also want to check out the ant scripts that get run when Netbeans deploys the code. I remember poking around in them last year and seeing some ftp commands.
__________________
"Great spirits have always encountered violent opposition from mediocre minds" - Albert Einstein
The FIRST Alliance
COMETS Robotics
Website

  #4   Spotlight this post!  
Unread 17-01-2011, 16:02
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Help with FTPing files to the cRIO

when calling it in code, its
Code:
/c/foldername/filename.ext
idk why the c is important
  #5   Spotlight this post!  
Unread 17-01-2011, 16:13
Nadav Zingerman Nadav Zingerman is offline
Registered User
FRC #2230
Team Role: Programmer
 
Join Date: Jul 2009
Rookie Year: 2009
Location: Israel
Posts: 90
Nadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to behold
Re: Help with FTPing files to the cRIO

From what I remember from trying something similar in 2009, the best place to put the files, oddly enough, is in the "temp" folder. They do not get deleted.

Hope that helps.
  #6   Spotlight this post!  
Unread 17-01-2011, 17:00
Birdlives's Avatar
Birdlives Birdlives is offline
Registered User
FRC #2337 (EngiNERDs)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Michigan
Posts: 7
Birdlives is an unknown quantity at this point
Re: Help with FTPing files to the cRIO

Thanks for the info, byteit!! I will try using VxWorks tonight at robots.

GGCO - I don't think it's a permissions issue, I don't have any type of security on the cRIO and filezilla does not have any security issues. I am using labview, not netbeans (I wish we could use java, tho)

Zingerman - I will try it in the temp, too.

Thanks all!! I will keep you posted on how things go
  #7   Spotlight this post!  
Unread 17-01-2011, 19:16
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,753
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: Help with FTPing files to the cRIO

You don't say how the path is built. LV contains a path datatype, but often newcomers will use a string instead, or will put in their own delimiters. Because LV is a cross-platform language, the path you will enter uses the local delimeters and they will automatically be mapped between unix, windows, and mac.

You may want to open up a path or file I/O example to see how it is often done.

Greg McKaskle
  #8   Spotlight this post!  
Unread 17-01-2011, 23:16
Birdlives's Avatar
Birdlives Birdlives is offline
Registered User
FRC #2337 (EngiNERDs)
Team Role: Programmer
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Michigan
Posts: 7
Birdlives is an unknown quantity at this point
Re: Help with FTPing files to the cRIO

I resolved the problem after reading an article on the NI website about file io in VxWorks controllers. I was using the path datatype, but it wasn't working for me, and the article said that if you type cast a string to a file data type and use "/c/" as the root directory, things will work out, and, well, they did!

Because I was not aware of the way that labview automatically delimits the path datatype, I have been misusing it. thanks for the info, Greg!!

Thanks all,
John
Closed Thread


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 23: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