next up previous contents
Next: Spear Timestamps and Events Up: 4kHz State Machine Previous: Setpoint Table Processing   Contents

Example

Load a corrector with a setpoint table, arm BPMs to start buffering history 1s after the corrector starts:
// make sure table doesn't start
// when written.
lcaPut('mycorr:ControlState','HALT')

// load table. If not 'HALT'ed,
// this would trigger processing
lcaPut('mycorr:CurrSetpt',mytbl)

// loop forever
lcaPut('mycorr:LoopIter',  -1)

// wait for event 1
lcaPut('mycorr:ControlState','EVENT1')

// post-trigger 1s, wait for event 1
lcaPut('mybpm:history.RARM',-4000+1)

// fire
lcaPut('Spear:Event1',1)



Till Straumann 2005-06-02