LabSmith HVS448 User Manual page 32

High voltage sequencer
Hide thumbs Also See for HVS448:
Table of Contents

Advertisement

Call is executed when the stack is completely full, the bottom-most return location will be overwritten, so that when the
seventeenth Return is executed, it will return to an indeterminate (invalid) location.
Normal programs are unlikely to approach the stack capacity. However, a user may choose to write programs that do
not always return from calls a variety of reasons. In such cases, the "unused" call-stack entries will pile up on the stack,
eventually being overwritten by new calls. Overwriting these unused entries is not a problem, provided the user never
intends to return from those calls.
Example:
Call
Inject; Calls the program or subprogram Inject
Pause
Pause ;
Usage:
The pause instruction takes no arguments causes the program to be suspended in its current state for a duration equal to the
product of the time-base period (0.100 ms) and the value in the X register. It has no other effect.
Notes: The Pause command actually measures the duration since the start of the program, a ResetTime instruction, an
Await instruction, or a previous program pause. This allows a user to ignore the execution time of any instructions
between these timing commands provided it is less than the specified duration.
Example:
...
Do something that takes < 12.5 ms
12.5 ms ;
Pause ; pause until the pause counter reaches 12.5 ms
...
; execute instructions that take less than 1.25 ms
1.25 ms ;
Pause ;
...
; this instruction occurs precisely 1.25 ms after the previous
...
; Pause completes
ResetTime
ResetTime
Usage:
The ResetTime instruction is used to clear the Time register. It can be used, for example, to synchronize clocks following a
SwitchTo StepX instruction by having all channels execute a ResetTime instruction at the start of the new step.
Example:
...
event that takes > 12.5 ms
12.5 ms
Pause ; pause immediately completes because the pause timer
...
; exceeds 12.5 ms
...
;(Do something that takes > 12.5 ms)
ResetTime
12.5 ms
Pause ; pause completes 12.5 ms after the ResetTime command
Notes: The value written to the Time register is the elapsed time in 1/10000ths of a second since the last ResetTime
instruction. When a sequence begins, or when a Step instruction is executed, the ResetTime instruction is automatically
called, allowing channels to be synchronized. The Time register is also reset at the end of an Await command. If you
Stop or Pause a sequence, the Time register continues to advance.
Return
Return
Usage:
32

Advertisement

Table of Contents
loading

Table of Contents