Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   The Importance of Finish.vi (http://www.chiefdelphi.com/forums/showthread.php?t=130347)

cjl2625 20-08-2014 21:49

The Importance of Finish.vi
 
How important is it to use Finish.vi and close everything?
Since I have been on the team, I have completely ignored it.
We've been running code without closing anything in the end, and I haven't noticed any negative effects.

So is this fine, or should I really be closing all my references?

Mark McLeod 20-08-2014 22:12

Re: The Importance of Finish.vi
 
For our standard use case in FRC, Finish.vi never gets called, so in this one case it doesn't matter. We have a rather abrupt way of switching off the power to stop our robots.

However, when you run into it again in college or at work it can become quite important to close down devices gracefully.
Finish.vi teaches you good habits for later in life.

jhersh 21-08-2014 00:11

Re: The Importance of Finish.vi
 
Quote:

Originally Posted by cjl2625 (Post 1397277)
How important is it to use Finish.vi and close everything?
Since I have been on the team, I have completely ignored it.
We've been running code without closing anything in the end, and I haven't noticed any negative effects.

So is this fine, or should I really be closing all my references?

I ignore it. It's really just there for completeness. No actual robot cares about the shutdown case. Just power it down.

Greg McKaskle 21-08-2014 08:29

Re: The Importance of Finish.vi
 
As mentioned, the Finish is there more to make you aware that doors which are opened somehow need to be closed. Fortunately, LV's doors have springs on them.

What I mean by that is that if the library author registers things correctly, the LV editor will close down file, TCP, and other I/O sessions for you if you don't do it. It doesn't do this until the program terminates, and that is probably fine for FRC.

Unless there is a bug in the I/O libraries, the sessions will be closed just after the program terminates rather than in Finish.

Greg McKaskle


All times are GMT -5. The time now is 08:48.

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