MicroDAQ toolbox for Scilab provides macros which manage DSP execution. Running DSP application from Scilab script The resulting application will be used in Scilab script for FFT calculation.
Our model will run with 5kHz.Īfter model creation, we generate DSP application by selecting Tools->MicroDAQ build model. Data from ADC block is passed to SIGNAL block which sends data to host and this data can be read from Scilab script. Then we use ADC block to read analog samples from DAC (analog input and output should be wired). The diagram contains two sine waveform generators which output is added and passed to DAC block. Our application will calculate FFT from real-time DSP data., we will start from creating example model which generates analog signal with two sine waveforms with different amplitude and frequency. The FFT example uses Xcos generated DSP application and Scilab FFT function which calculates FFT from real-time data.
This way application can be divided into a real-time part, which is executed on MicroDAQ DSP and script which allows using all Scilab functions for calculations. MicroDAQ toolbox provides macros for managing DSP execution, a user can load DSP binary from Scilab script, register signal, read data from running DSP application and terminate its execution. We will show FFT example where the analog signal is generated on analog output and acquired with DSP management functions.
#Scilab signal how to#
In this article, we will show how to use DSP management tools.