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 ScriptingBegin Macro (automatically added when the window is opened)Begin BlockComm<strong>and</strong> A1Comm<strong>and</strong> B1Comm<strong>and</strong> C1Comm<strong>and</strong> D1End BlockComm<strong>and</strong> E1End Macro (automatically added when the window is opened)In this example, the macro would process Comm<strong>and</strong>s A1, B1, C1 <strong>and</strong> D1 in sequence prior to anyother subsequent comm<strong>and</strong>s being processed. Once the block A1 through D1 is completed, theprogram will move on <strong>and</strong> process Comm<strong>and</strong> E1.This is not a terribly effective use of the BLOCK Comm<strong>and</strong>. Why? Because even without theBegin Block <strong>and</strong> End Block comm<strong>and</strong>s, the macro would process Comm<strong>and</strong>s A1 through E1 inthe same sequence.The real power of the BLOCK Comm<strong>and</strong> can be seen when used in conjunction with an IFComm<strong>and</strong>.Example ZBegin Macro (automatically added when the window is opened)IF Comm<strong>and</strong>Begin BlockComm<strong>and</strong> A1Comm<strong>and</strong> A2Comm<strong>and</strong> A3End BlockBegin BlockComm<strong>and</strong> B1Comm<strong>and</strong> B2Comm<strong>and</strong> B3End BlockComm<strong>and</strong> C1Comm<strong>and</strong>…In this example, the program evaluates the IF Comm<strong>and</strong> to determine whether it is true or not true.Should the IF Comm<strong>and</strong> prove true, the block of comm<strong>and</strong>s A1 through A3 will be carried out,followed by B1 through B3. Should the IF Comm<strong>and</strong> prove to be false, the program will skipblock A1-A3, <strong>and</strong> the comm<strong>and</strong> block B1 through B3 will be carried out. In either event, the nextcomm<strong>and</strong> processed will be C1.Using the Else Comm<strong>and</strong> between the comm<strong>and</strong> blocks provides a different option (See ELSE).User Guide to the <strong>SPOT</strong> <strong>Insight</strong> Camera 253

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

Saved successfully!

Ooh no, something went wrong!