Go to Post If mentors don't respect the students' desire to learn and take an active role in the construction, they're missing the point of FIRST. If students refuse to accept the knowledge and experience of the mentors, that's not independence - it's arrogance. - DB213parent [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 19-01-2011, 21:58
aeasson aeasson is offline
Registered User
FRC #2435
 
Join Date: Jan 2008
Location: Lawton, ok
Posts: 29
aeasson is an unknown quantity at this point
Line Follower Power Array

In the Autonomous Independent vi, there are two arrays used to set the motor power while following a line. The arrays are indexed by the elapsed time.
However, when I try to change those arrays to have more values or different values, the changes are not saved by Labview.
The steps are:
Create a new Robot Project with Code
Open the Autonomous Inpdendent vi from the Project Window
Make a change to the values in the arrays on the front panel.
Save the vi
Close the vi
Reopen the vi from the Project Window
The values in the array are not changed.
I have tried Save As and no luck.
If I make code changes on the Block diagram the code changes will be saved, but change in the fron tpanel values are not saved.
I have tried this on two different Labview installations.
Anyone else experiencing this problem?
Does anyone have a solution?
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2011, 23:34
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Line Follower Power Array

Quote:
Originally Posted by aeasson View Post
Anyone else experiencing this problem?
Does anyone have a solution?
Hi. This is actually how it's meant to work.

If those values were in a constant array (on the Block Diagram), they would update as you expect.

BUT, since they are on the front panel, you need to explicitly tell labVIEW that you want to save your changed values. To do this, go to the front panel and make your changes. Then, to "lock in" those changes right click on the control and select: "Data Operations / Make current values default".
Now when you save your VI, the new setting will stick.

I guess this behavior is so you can "play" with the values without actually losing your defaults.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2011, 08:16
aeasson aeasson is offline
Registered User
FRC #2435
 
Join Date: Jan 2008
Location: Lawton, ok
Posts: 29
aeasson is an unknown quantity at this point
Re: Line Follower Power Array

Thanks for your help.
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 10:06.

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