Download - 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

Transcript
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