Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Static VI Reference (http://www.chiefdelphi.com/forums/showthread.php?t=106814)

Tom Line 06-06-2012 12:08

Static VI Reference
 
Perhaps I'm missing something obvious - but why is a Static VI reference used for Autonomous in the default robot framework, rather than putting the VI in the loop just like teleop?

Is the reason to allow it to be called once and not loop continuously?

Mark McLeod 06-06-2012 13:18

Re: Static VI Reference
 
It's so the program can explicitly keep track of and abort Auto at the end of the 15 sec period.
Auto is a special case just for that reason.

Auto is also designed as a one-call vi, while Teleop is designed to be called 50 times per second.
An earlier season of the LabVIEW default framework offered an option of either method (one-shot or iterative).
You can of course write your own iterative within the one-shot, but it's not particularly meaningful to iterate an Auto based on incoming packets of user controls that are unchanging.


All times are GMT -5. The time now is 10:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi