STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks...

5
STARTUP en queue all startup tasks only executed once atprogram startup START DAQ create DAQ mxtasks set timing start AI DAQ task ACQUIRE readaudio data and display results stay here unless something is on thequeue HANDLE ERROR display error information give user options to restart or shutdown STOP DAQ stop and clear the DAQinx task SHUTDOWN en queue all shutdown tasks only executed once when shutting down stop the final state nothing happens after this

Transcript of STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks...

Page 1: STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks onlyexecutedonce atprogramstartup f it 2 STARTDAQ retry c a io n e.Ii O.ndhminseens

STARTUPenqueueallstartuptasksonlyexecutedonce atprogramstartup

START DAQcreateDAQmxtaskssettimingstart AI DAQtask

ACQUIREreadaudiodata anddisplayresults

stayhereunlesssomethingis on thequeueHANDLEERROR

display error information

giveuseroptions torestart

or shutdownSTOP DAQ

stopand clearthe DAQinxtask

SHUTDOWNenqueue all shutdowntasks

onlyexecutedoncewhenshuttingdown

stopthefinalstatenothinghappensafterthis

Page 2: STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks onlyexecutedonce atprogramstartup f it 2 STARTDAQ retry c a io n e.Ii O.ndhminseens

STARTUPenqueneallstartuptasksonlyexecutedonce atprogramstartup

fs I

START DAQcreateDAQmxtaskssettimingstart AI DAQtask

ahead

aa.ioaEaQaYdREspiasresuits

taghereunlesssomethingis on thequeueHANDLEERROR

display error information

giveuseroptionstorestart

or shutdownSTOP DAQ

stopand clearthe DAQinxtask

SHUTDOWNenqueue all shutdowntasks

onlyexecutedoncewhenshuttingdown

stopthefinalstatenothinghappensafterthis

Page 3: STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks onlyexecutedonce atprogramstartup f it 2 STARTDAQ retry c a io n e.Ii O.ndhminseens

STARTUPenqueneallstartuptasksonlyexecutedonce atprogramstartup

fs I

START DAQcreateDAQmxtaskssettimingstart AI DAQtask

flea

aa.io aEIaYaEsaasresuitsDnonhamgpensstayhereunlesssomethingis on thequeue

HANDLEERRORdisplay error information

giveuseroptions torestart

or shutdownSTOP DAQ

stopand cleartheDAQmxtask

iStop

thefinalstatenothinghappensafterthis

Page 4: STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks onlyexecutedonce atprogramstartup f it 2 STARTDAQ retry c a io n e.Ii O.ndhminseens

STARTUPenqueneaustartuptasksonlyexecutedonce atprogramstartup

fs I

START DAQcreateDAQmxtasksa settiming

start AI DAQtask

7ae ei.O.ndhminseens

errortimingparams display error information

change giveuseroptions torestart

or shutdown

gq

iStop

thefinalstatenothinghappensafterthis

Page 5: STARTUP - WKUphysics.wku.edu/phys318/files/assignments/audio... · STARTUP enqueneaustartuptasks onlyexecutedonce atprogramstartup f it 2 STARTDAQ retry c a io n e.Ii O.ndhminseens

STARTUPenqueneaustartuptasksonlyexecutedonce atprogramstartup

fit

2START DAQ retryc

a ion

e.IiO.ndhminseens

errortimingparams

i

is

Usershutdown

Stop athefinalstatenothinghappensafterthis