Go to Post I'd like to welcome all the rookie teams to FIRST. Hang on tight! It is a wild, crazy and fun ride that will impact your lives for decades to come. - Sayrah [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: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 22-01-2012, 19:27
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Accessing CRIO files from LabVIEW

I am exploring the ability to read robot operating parameters at program startup. This would allow me to make quick changes to tuning parameters without having to redeploy code. I have successfully used the read and write ini vi's to my computer as a test. I am now trying to read and write to the CRIO memory. Using ftp, I see a folder labeled 'ni-rt/LabVIEW Data' on the CRIO. This is where I would like to read/write to.

My problem is the syntax for the file path. I keep getting an error about I must use an absolute path and not a relative path. Has anyone successfully done this and what is the syntax?

I have attached my current vi attempt for reference.


Thanks
Attached Files
File Type: vi Read Config File.vi (22.1 KB, 78 views)
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2012, 19:34
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Accessing CRIO files from LabVIEW

We store our files on the root of the cRIO. We use a absolute path c:\filename.ext
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2012, 09:08
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 134
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: Accessing CRIO files from LabVIEW

We actually have an example that may help. It is installed on your machine at:
\Program Files\National Instruments\LabVIEW 2011\examples\FRC\File\Load and Save Preferences\Load and Save Preferences.lvproj

Sorry this didn't make it into the Example Finder - it was written too late for that.
__________________
Doug Norman
National Instruments
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 08:48.

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