Go to Post we came together, worked our butts off, and eventually looked at failure and decided....its just not our style. - Monochron [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 22-03-2016, 16:43
Bradley Boxer's Avatar
Bradley Boxer Bradley Boxer is offline
Registered User
AKA: Bradley Boxer
FRC #0303 (TEST Team 303)
Team Role: Programmer
 
Join Date: May 2015
Rookie Year: 2015
Location: United States
Posts: 15
Bradley Boxer is an unknown quantity at this point
Passing values from "begin.vi" to "autonomous independent.vi"

After examining our LabVIEW code for this year, my team has decided to eliminate RefNums from our code in favor of code execution speed (http://www.chiefdelphi.com/forums/sh...php?&p=1447945) .We are doing this by taking all of our DevRefs, clustering them, and passing that cluster to any location we want a registry value from. This has worked great for Teleop and Periodic Tasks, but we are running into issues when we want to do this for autonomous. The autonomous vi is run from a static vi reference in robot main, and we are unable to pass the values into it even after adding the correct terminal on the front panel. In this case, is the only way to get our values into autonomous to use global variables? In that case, are there any downsides to transferring that amount of data in a global variable? (we have about 15 refnums) Is there something I'm missing?

Thanks,
Bradley Boxer

Last edited by Bradley Boxer : 22-03-2016 at 18:26.
Reply With Quote
  #2   Spotlight this post!  
Unread 22-03-2016, 18:32
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Passing values from "begin.vi" to "autonomous independent.vi"

Global variables are not a significant source of dietary fiber CPU usage.

I suggest that you at least do a RefNum Set on everything you open anyway, even if you never do a RefNum Get later. That way you'll be able to use Test Mode properly. As a bonus, you'll then also have the option to do a RefNum Get for Autonomous instead of using globals.
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 03: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