Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]1 Utilizing Scilab and Xcos for real-time control and measurement applications Grzegorz Skiba Embedded Solutions [email protected]
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
1
Utilizing Scilab and Xcos for real-time control and measurement applicationsGrzegorz SkibaEmbedded Solutions [email protected]
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
2
Agenda
MicroDAQ device and software overview MicroDAQ toolbox for Scilab
Features overview Code generation for MicroDAQ DSP core Tools Examples
Q&A
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
3
MicroDAQ device
Real-time control and measurement system Dedicated DSP core for signal
and real-time processing Ethernet, USB2.0 and WiFi connectivity ADC, DAC, DIO, PWM, Encoder,...
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
4
MicroDAQ device
MicroDAQ E1100
375MHz CPU 4GB flash memory Ethernet Wi-Fi USB2.0 32 DIO lines 8 analog inputs 8 analog outputs Matlab/Simulink, LabVIEW
and Scilab support Price from 200€
MicroDAQ E2000
up to 456MHz CPU up to 32GB flash memory Ethernet Wi-Fi USB2.0 16 DIO lines up to 16 analog inputs 8 analog outputs Matlab/Simulink, LabVIEW,
Scilab support Price from 400€
MicroDAQ OEM
375MHz CPU 4GB flash memory Ethernet USB2.0 USB1.1 32 DIO lines 8 analog inputs 8 analog outputs Matlab/Simulink, LabVIEW,
Scilab support
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
5
MicroDAQ device Processing units
TI C6000 DSP core with floating/fixed point unit ARM core with Linux OS for handling communication,
file storage, web interface two PRU 32-bit RISC cores for real-time processing
-->my_block.param_name ans = !param1 !! !!param2 ! -->mdaq_block_add(my_block);
/* Generated with MicroDAQ toolbox ver: 1.0. */#include "scicos_block4.h"
extern double get_scicos_time( void );
/* This function will executed once at the beginning of model execution */static void init(scicos_block *block){ /* Block parameters */ double *params = GetRparPtrs(block);
scilab_signal_read(&link_id, buf, &size, &result); /* process DSP data */ scilab_mem_write(&link_id, 1, param, 2);
}scilab_dsp_stop(&link_id, &result);
●
/* Scilab interface funcations */ EXTERNC MDAQ_API void scilab_dsp_start( const char *addr, int *port, const char *dspapp, int *link_id );EXTERNC MDAQ_API void scilab_dsp_stop( int *link_id, int *result );EXTERNC MDAQ_API void scilab_signal_register( int *link_id, int32_t *id, int32_t *size, int *result );EXTERNC MDAQ_API void scilab_signal_read( int *link_id, double *data, int32_t *count, int *result );EXTERNC MDAQ_API int scilab_mem_read( int *link_id, int start_idx, int len, float *data );EXTERNC MDAQ_API int scilab_mem_write( int *link_id, int start_idx, float data[], int len );
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
26
Utilizing model with LabVIEW
Analog loop SIGNAL block MEM read block for model parameter change
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
27
Utilizing model with LabVIEW● Real-time processing
● Live DSP data
● Parameter change during DSP execution
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
28
Conclusions
Code generation from Xcos diagram Real-time procesing Execution profiling DSP binary utilization with LabVIEW and
Windows/Linux C/C++ applications Different hardware options avaliable Easy to use Free alternative for commercial solutions
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]
29
Q&A
Utilizing Scilab and Xcos for real-time control and measurement applications – ScilabTEC 2015 Embedded Solutions; Skiba Grzegorz; [email protected]