Tuesday, May 31, 2011

ubuntu installation on beagle board


Today i just finished installing ubuntu 11.04 ompa3 version on my beagle board. it is quite simple and took couple of minutes. I am wondering if there is a way to partition the sd card on windows machine. Every time i need to partition the card on linux machine. Anyways, it is good to see the complete gui installation screens on the little serial monitor winodow.

I have used 4Gig sd card.

Download from : http://cdimage.ubuntu.com/releases/11.04/release/

link: http://cdimage.ubuntu.com/releases/11.04/release/ubuntu-11.04-preinstalled-headless-armel+omap.img.gz

on a linux machine: execute this command after inserting the card.

1. gunzip -c ubuntu-11.04-preinstalled-headless-armel+.img.gz | sudo dd bs=4M of=/dev/ 2. sync



Tuesday, May 24, 2011

code generation scicoslab/scicos

c/c++ code generation from system blocks (Matlab/Simulink, Scilab/xcos, ScicosLab/Scicos) is really helpful for rapid-prototyping.

some documentation available here: http://www.scicos.org/CodeGen_doc.pdf


ScicosLab/Scicos provides (also Scilab/xcos) code-generation facility for generating a stand-alone “c” code. The generated file can be linked to various interface modules.


Create a block diagram in Scicos. Select the relevant blocks and make them as super block. And make it as super-block for code generation. Select “code generation” from the tool bar and generate the code for the super-block.



xxx_standalone.c
xxx_act_sens_events.c
libxxx.lib

where xxx is the name of the workspace.

Include these files in the visual-studio and create an executable.

Open loop response of 2nd order system:

I have given some constant input 1.0 in the “xxx_act_sens_events.c”
*((double *) y+(k+l*(*ny1))) =1.0;

Otherwise the program will be asking the input continuously for every iteration.


Ol1.txt is generated from the “generated code”
foo.txt is from the scicos generated output.