12.07.2015 Views

SPOT 4.1 Basic and Advanced Software Manual for SPOT Insight ...

SPOT 4.1 Basic and Advanced Software Manual for SPOT Insight ...

SPOT 4.1 Basic and Advanced Software Manual for SPOT Insight ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Ch. 13 - Macro ScriptingWe already know from an earlier discussion of Example Z that the only choice is whether to carryout Comm<strong>and</strong> Block A1-A3. Block B1-B3 will be carried out regardless of the result of the IFComm<strong>and</strong>.However, in Example Z.1, when the IF Comm<strong>and</strong> is true, the program will execute the block ofcomm<strong>and</strong>s including A1, A2 <strong>and</strong> A3. It will skip the following block of comm<strong>and</strong>s including B1,B2, <strong>and</strong> B3 <strong>and</strong> will continue the program by executing Comm<strong>and</strong> C1, etc.When the IF Comm<strong>and</strong> is false, the program will skip the block of comm<strong>and</strong>s including A1, A2<strong>and</strong> A3 <strong>and</strong> will execute the block of comm<strong>and</strong>s including B1, B2, <strong>and</strong> B3. Once that block iscompleted, the program will execute Comm<strong>and</strong> C1, etc.LOOPPurpose <strong>and</strong> UseThe LOOP Comm<strong>and</strong> instructs the Macro program to complete a series of comm<strong>and</strong>s (within theloop) <strong>and</strong> then repeat those comm<strong>and</strong>s a defined number of times (iterations) be<strong>for</strong>e continuing theMacro program.This can be quite helpful when a repetitive procedure defined by a series of comm<strong>and</strong>s must becompleted.The Macro Window <strong>and</strong> LOOPWhen the LOOP Comm<strong>and</strong> is selected from the comm<strong>and</strong> selection pane in the Macro Window aBegin Loop <strong>and</strong> an End Loop comm<strong>and</strong> will be inserted into the Macro program in thedevelopment pane. The Begin Loop comm<strong>and</strong> will be highlighted in the development pane,indicating that the next selected comm<strong>and</strong> will be placed just below the Begin Loop comm<strong>and</strong>.Other comm<strong>and</strong>s to be carried out as part of the loop must be placed between the Begin Loop <strong>and</strong>End Loop comm<strong>and</strong>s.After all comm<strong>and</strong>s are added between the Begin Loop <strong>and</strong> End Loop comm<strong>and</strong>s, the loopprocedure is defined. Upon playing the Macro, the program will proceed through the series ofLoop comm<strong>and</strong>s until it reaches the End Loop comm<strong>and</strong>. It will then return to the Begin Loopcomm<strong>and</strong> <strong>and</strong> repeat the Series of comm<strong>and</strong>s <strong>for</strong> as many times as defined.250 User Guide to the <strong>SPOT</strong> <strong>Insight</strong> Camera

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!