Go to Post Teams whose goal is to play on Einstein think about strategy differently from teams whose goal is to be selected for an alliance at a district event. - alopex_rex [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 15-02-2014, 14:52
jSoft jSoft is offline
GG Hirez
AKA: J.R.
FRC #4918 (The Roboctopi)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Port Townsend, Washington
Posts: 14
jSoft is on a distinguished road
Aborting a Flat Sequence

Hi everyone, I'm J.R., the programmer from rookie team 4918. I wanted to know if it's possible to abort a flat sequence mid-execution in labview. Thanks for the help!
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2014, 15:04
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Aborting a Flat Sequence

No, there is generally not a good way to stop a structure mid-execution. If you find the the pressing need to do this, it may be better to implement your code as a state machine instead. This way, you can manually change the states yourself.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2014, 21:50
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Aborting a Flat Sequence

Aborting or jumping out of structures in procedural languages is convenient, but tends to cause bugs caused by uninitialized variables. In a data flow language, that is even less of a good idea. So the structures are required to identify a value for all ways to exit. The exit is generally quite controlled., no break or continue statements except. The solution is to make the downstream code be conditional.

Greg McKaskle
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 20:54.

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