Acquisition State Machine
Select DPP Device Loop until device selected (SelectDPPDevice)
· Ready, waiting for dpp selection (SelectDPPDevice)
· 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)
· 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)
· Receive Packet
· Decode Packet
· Extract Needed Data
· Return to caller requested "Next State"
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