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 ScriptingGeneric Example using Increment Variable:An example of the use of the SET VARIABLE <strong>and</strong> INCREMENT VARIABLE Comm<strong>and</strong>s ispresented in the following generic macro.Begin Macro (automatically added when the window is opened)SetVariable (set NumVar1=1)Begin LoopComm<strong>and</strong> A1Comm<strong>and</strong> B1Comm<strong>and</strong> C1Comm<strong>and</strong> D1SaveImage (save as Bob’sImageNumVar1)IncrementVariable (increments NumVar1 by 1)End LoopComm<strong>and</strong> E1Comm<strong>and</strong>…In this example, NumVar1 becomes part of the name of the images saved by the macro. Themacro initially defines NumVar1 to be equal to 1. Comm<strong>and</strong>s A1 through D1 are carried out <strong>and</strong>the resulting image is saved as “Bob’sImage1”. The variable NumVar1 is then incremented by 1<strong>and</strong> now becomes 2. The loop is then repeated <strong>and</strong> the second image is saved as “Bob’sImage2”.This process is repeated <strong>for</strong> as many iterations as were set when the loop was defined. Once theiterations are completed, Comm<strong>and</strong> E1 is carried out.Timing Comm<strong>and</strong>sDELAYPurpose <strong>and</strong> UseThe DELAY Comm<strong>and</strong> is used to pause the playing of the macro program <strong>for</strong> a set period of time.The DELAY Comm<strong>and</strong> can be useful when the user needs a prescribed delay period betweencomm<strong>and</strong>s being carried out <strong>and</strong> may be especially useful when carrying out a repeating series ofcomm<strong>and</strong>s within a loop where there is a desire <strong>for</strong> a time delay between loop iterations (<strong>for</strong>example, in order to manually move a stage).The Macro Window <strong>and</strong> DELAYWhen the DELAY Comm<strong>and</strong> is selected from the comm<strong>and</strong> screen, it is added to the developmentpane below the highlighted comm<strong>and</strong> in the development pane.User Guide to the <strong>SPOT</strong> <strong>Insight</strong> Camera 257

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

Saved successfully!

Ooh no, something went wrong!