Chapter 5 Generated Code ArchitectureAutoCode Reference 5-40 ni.comBREAK BlockThe WHILE construct indefinitely iterates unless a BREAK Block isexecuted within the loop. You are responsible for properly detecting an exitcondition and using it as an input to a BREAK Block inside the loop. If theinput to the BREAK Block is TRUE, then the loop that is immediatelyenclosing the BREAK Block is exited. This block is implemented as abreak statement in C and as an exit statement in Ada.CONTINUE BlockA CONTINUE Block provides another way to control the execution ofblocks within a loop. By using a CONTINUE Block, the execution can beimmediately continued with the next iteration, instead of executing blocksthat follow the CONTINUE Block. You are responsible for detecting acontinue condition and using it as an input to a CONTINUE Block insidethe loop. The CONTINUE Block continues execution with the nextiteration if its input evaluates to TRUE. This construct is implemented as acontinue statement in C, while a goto statement is used in Ada, and thetarget of the goto is the first statement in the loop.Like the IfThenElse Block, the requirements for an iteration mechanism arevaried, and our design allows for the most flexible algorithm design at theexpense of increased diagram complexity to specify all of the details aboutthe sequencing and termination within the loop.Local Variable BlockLocal Variable Blocks are implemented as automatic variables in thegenerated code. They are strictly temporary and are used to pass data fromone computation to another. The Scope of a local variable block is local tothat of the enclosing subsystem or procedure. The local variable block isactive only when the enclosing procedure or subsystem is invoked.Thus, Local Variable Blocks cannot be used to communicate data betweenprocedures or subsystems, but could be used to communicate data from oneSuperBlock to another if both SuperBlocks are mapped to a singlesubsystem. Refer to subsystem mapping information described in theSubsystems section. Also, the recommended way of passing data from onesoftware construct to another, or from a software construct to theSuperBlock in which it is contained, is through local variables.