Acquisition State Machine

 

1.         Event States for Spectrum Data Acquisition with presets

 

Select DPP Device Loop until device selected (SelectDPPDevice)

 

1.1          Select DPP Device Loop until device selected

·     Ready, waiting for dpp selection (SelectDPPDevice)

1.2          Initialize DPP device

·     Request/display dpp status (InitRequestStatus)

·     Send configuration with preset (InitSendConfiguration)

·     Read configuration with preset (InitReadConfiguration)

·     Calculate test parameters from preset (InitCalculatePresetDelay)

·     Disable mca (InitDisableMCA)

·     Clear spectrum (InitClearSpectrum)

·     Pretest update status (InitRequestStatusPreTest)

1.3          Data acquistion

·     Enable mca acquisition loop ,repeat once per second (AcqEnableMCA)

o    Request and Plot spectrum (AcqRequestSpectrum)

o    Request/display status (AcqRequestStatus)

o    Acquisition done test (AcqTestPresetDone)

§ Stop when mca disabled or timeout (preset + 3 sec.)

·     Exit (Exit)

 

1.4          Process Packet (ProcessPacket)

·     Receive Packet

·     Decode Packet

·     Extract Needed Data

·     Return to caller requested "Next State"

 

2.         Acquisition States

SelectDPPDevice

InitRequestStatus

InitSendConfiguration

InitReadConfiguration

InitCalculatePresetDelay

InitDisableMCA

InitClearSpectrum

InitRequestStatusPreTest

AcqEnableMCA

AcqRequestSpectrum

AcqRequestStatus

AcqTestPresetDone

ProcessPacket

Exit

 

 

 

Recommended Improvements

request spectrum with status

decode spectrum with status

spectrum data to text

status to text

configuration to text

add save spectrum