Internal States
The AWG module uses five internal states to produce controllable outputs and to synchronize multiple Euvis AWGs.
- Disarmed - Idle state.
- Armed - the AWG waits for a trigger signal which will commence the waveform output sequence
- Triggered - after being triggered, the AWG delays a specified amount between the trigger and the beginning of waveform output
- In Loop - the AWG outputs the waveforms. The AWG stays in this state until the Loop Count is complete. This is the only state in which the analog outputs are active.
- Loop Done - The AWG exits the "In Loop" state and either enters the "Disarmed" or "Armed" states
Below is a timing diagram of several important signals during a waveform loop.. Two states, "Disarmed" and "Loop Done", are not shown.
The diagram below shows how the board operates in regards to its different states. Waveform generation as stated previously is done in the "In Loop" state. "SW" stands for software and refers to the GUI application. "FW" stands for firmware and refers to the onboard firmware, which operates automatically.
Disarmed
When the GUI application is first launched, it will put the board in the "Disarmed" state. At this point, the user can click on the Arm button in the GUI application to change the board to the "Armed" state. No other inputs will affect the board during the Disarmed state.
Armed
In the "Armed" state, the board is ready to be triggered. The user can either supply a trigger signal through the TRIG SMA connector or manually press the TRIG button on the physical board. Only falling signals (from logical high to low) will cause the board to change to state "Triggered."
Triggered
Once the board is in "Triggered" state, it will automatically go to the next "In Loop" state after a brief delay of 1-3 us (TT). The falling edge Trigger signal can be provided either through software by pressing the trigger button in the GUI toolbar, or through hardware by either connecting a signal to the TRIG SMA connector on the module. The trigger signal source can be set according to the hardware setup page.
For a detailed look at the "Triggered" to "In Loop" transition, please go to the Synchronization page in the Multiple Board Operation section.
In Loop
When the board is producing output waveforms, it is considered to be in the "In Loop" state. Each loop is equivalent to one waveform, which is basically running through one Memory Depth Cycle. Loop Count, in the GUI application, specifies the number of loops. If Loop Count is zero, then the board will be in an infinite loop and will output waveforms continuously until the user presses the Abort button in the GUI application.
NOTE: You may stop the entire sequence of events and return the board to "Disarmed" by using the Abort button at any time.
Loop Done
If Loop Count is finite, then after the last waveform is complete, the board will automatically enter the "Loop Done" state. As this point, the board either enters the "Disarmed" state or returns to the "Armed" state, depending on if Auto Arm is disabled in the AWG application. If Auto Arm is checked, then the board will go into the "Armed" state and will be ready for the next trigger signal. If it is unchecked, then the board will go into the "Disarmed" state and the user will have to manually arm the board again.