<< MicroDAQ Support Package for Matlab/Simulink MicroDAQ Support Package for Matlab/Simulink Data acquisition >>

MicroDAQ Support Package for Matlab/Simulink >> MicroDAQ Support Package for Matlab/Simulink > Introduction

Introduction

MicroDAQ Support Package for Matlab/Simulink integrates Embedded Coder toolbox with MicroDAQ platform. In allows automatic C code generation for TI TMS320C674x floating/fixed point DSP. The package uses MLink library component which allows communication with all MicroDAQ devices. The MLink also features DSP management functions, analog input/output scanning functions and MicroDAQ peripherals access functions. Communication with the device is can be done with Ethernet (recommended) or Wi-Fi. Created application from Simulink model is loaded on MicroDAQ DSP and executed. The generated application utilizes TI SYS/BIOS real-time operating system ensure execution timing for generated code.

Supported executions modes

Depending on model configuration generated DSP application can be executed in three different modes – standalone, PIL and External.

Standalone mode - generated application will run as a standalone executable on MicroDAQ DSP, the application will be downloaded to MicroDAQ and started immediately after model build finishes. In this mode application running on DSP doesn't exchange data with Simulink.

PIL mode - in PIL user can generate DSP executable from part of the Simulink model to verify if algorithm gives the same result as in simulation on the host. In this mode generated DSP executable exchange data with Simulink – user can use Sinks to visualize result from DSP application execution, however, this mode isn’t suitable for real-time processing.

External Mode - if hard real-time execution is needed user has to use External mode. In external mode, DSP executable contains two tasks, one high priority real-time task which runs Simulink model and the second one – idle task which exchanges data with Simulink

Required software components


Report an issue
<< MicroDAQ Support Package for Matlab/Simulink MicroDAQ Support Package for Matlab/Simulink Data acquisition >>