Creates DSP task object
obj = mdaqDSPTask()
This function creates DSP task object which gathers all functions used for executing Xcos generated DSP applications on MicroDAQ DSP core. The function does not introduce new functionality, it wraps existing API into an object-like code and allows to write more readable and compact code. In order to get function list which can be used with object display its content.
The following calling convention applies:
obj.start(): Starts DSP task - mdaqDSPStart()
obj.init(): Configure and initialize DSP task - mdaqDSPInit()
obj.read(): Read data from DSP task - mdaqDSPRead()
obj.stop(): Stop DSP task - mdaqDSPStop()
obj.isDone(): Check DSP state - mdaqDSPIsDone()
obj.waitUntilDone(): Wait until DSP task is done - mdaqDSPWait()
Start 'dsp.out' DSP application for 5 seconds with 5000Hz frequency
Start 'dsp.out' DSP application for 5 seconds with 5000Hz frequency and wait until is done