1. Status record

The status record contains 10 bytes.

Byte 1Variable Meaning  
b0XCLKmonitors the external clock
b1XTRGmonitors external start/stop signal
b2STARTcontrol signal (as placed by the microprocessor)
b3MEMswap control: =0 CPU accesses RAM1 and scanning counter <-> RAM2, (as placed by the microprocessor)
b4RSTextended reset signal (as placed by the microprocessor)
b5XIexternal/internal time-base clock choice (see below)
b6FSexternal/internal time-base clock choice (see below)
b7SOFTCKsoftware generated time-base output
Byte 2  Variable  Meaning
b0…5 not implemented
b6CLEARmonitors the real state of RUN/STOP, =0 running, =1 stopped
b7SWAPmonitors which RAM is being scanned for output (cf. MEM bit above)
Byte  Content  Description
Byte 3Card Maskbit b0…7 set if the corresponding output channel is installed and working properly
Byte 4Ready Flagif <>0 then the generator may accept the RUN command
Byte 5,6HiAddrhighest occupied RAM address
Byte 7model2 or 8-channel model
Byte 8decimal valuefirmware revision
Byte 9  State message  Meaning
b0XCLKmonitors the external clock
b1XTRGmonitors external start/stop signal
b2STARTcontrol signal (as placed by the microprocessor)
b3MEMswap control: =0 CPU accesses RAM1 and scanning counter <-> RAM2, (as placed by the microprocessor)
b4RSTextended reset signal (as placed by the microprocessor)
b5XIexternal/internal time-base clock choice (see below)
b6FSexternal/internal time-base clock choice (see below)
b7SOFTCKsoftware generated time-base output
Byte 10Error CodeMeaning
kNoError0 
kNotReady1 
kFramingError2serial i/f flags, bits 1..3
kNoiseFlag4 
kOverrun8 
kOverflow16data or command
kNotRecognized32 
kHardwareError64 
kTimeOutError128 

2. State codes

ConstantValueMeaning
kStopped0all bits must be 0
kRunning1 
kRunOut2STOP command received, finishing the waveform
kWaitSwap4one memory bank has been updated and WFG is waiting for the end of waveform to swap the memory banks and gain access to the other memory bank
kBurst8the single burst mode is selected
kPanel16external triggering selected
kUndefined32 
kArmed64ready to run
kExpectingData128current communication not completed

3. Setup codes

theModeHex valueMeaning
codeBurst0x04burst / continuous mode
codePane0x08enable external triggering
theClockChoiceHex value  Meaning
codeEclock0x6020 MHz internal clock
codeE2clock0x201 MHz internal clock
codeSoft0x40software-controlled internal clock (slow)
codeExt0x00external clock