DSPRelated.com
Forums

capturing data from matlab and process it

Started by alri...@gmail.com August 14, 2008
hi,

i'm new to ezdspf2812, i have a project using ezdsp2812 to control a plant. at the first step, i'm planing to use this board as a controller to control a plant simulation on matlab, but i don't know how to acquire the input references and feed back data from matlab, and to process it as the input for the plant simulation.

thx for assistance

regard

alrianes bachnas


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
Hi Alrianes,
You can use VisSim/ECD for this. VisSim is a block diagram language for modeling, simulation, and embedded design. VisSim/ECD has built-in blocks to interface to the F2812 (and F280x) parts that let you read and write to on-chip peripherals like ADC, PWM, serial, I2C, QEP, CAP, GPIO etc.
While VisSim provides a complete simulation environment, it also has a Matlab block that talks to Matlab. In this way you can run any Matlab simulations and send them data directly from the DSP.
All you need to do is place ADC blocks in your diagram to read voltages, wire them to the Matlab block, wire outputs from the Matlab block to PWM blocks and click "go".
You can download a 2 month trial of VisSim/ECD here:
www.vissim.com/downloads/demos.html
try serial communicating out from matlab the data that needs to be processed on DSP
once you compute the comtrol signals, feed it back into matlab again through serial port
not sure about serial comm port programming in matlab but there should be enough help and tutorials
hope this helps
hi,
>
>i'm new to ezdspf2812, i have a project using ezdsp2812 to control a plant. at the first step, i'm planing to use this board as a controller to control a plant simulation on matlab, but i don't know how to acquire the input references and feed back data from matlab, and to process it as the input for the plant simulation.
>
>thx for assistance
>
>regard
>
>alrianes bachnas
>

OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x
thx for the assistance, its helping me a lot
i'm still learning the whole thing from tutorial file
but its to bad that i haven't found any RTDX tutorial or project example. the only rtdx tutorial i found is from C6000 series, is there any big difference from c2000 on the programing side?
or can anyone of you give me an code example to simply use the RTDX for data comunicating between CCS and matlab?

thank you

regard

alrianes bachnas


OMAP35x EVM jump-starts low-power apps
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture: http://www.DSPRelated.com/omap35x