Customisaton of FLEX demoboard ADC block

A forum useful to discuss the details of the ScicosLab code generator.

Moderator: paolo.gai

Posts: 4
Joined: Wed Apr 13, 2011 2:32 pm

Customisaton of FLEX demoboard ADC block

Post by Thom314 » Tue May 24, 2011 3:22 pm


For my application ,I have built a daughter board whitch is plugged on the FLEX FULL DEMO BOARD.
So I need to customise FLEX demoboard ADC block called "FLEX_DMB_adcin"
Indeed I need to use :
AN12 (RB12), AN17 (RC2), AN18(RC3) and AN19 (RC4)

So I would like to create a generic block for ADC with the parameter pin number.

The aim is to avoid to go in Evidence folders to change the code when the ADC pin changes.
I have looked into the file :
"flex_daughter_adc.c" located into "C:\Evidence\eclipse\plugins\\ee_base\contrib\scicos\src\pic30\c"
to try to change standard ADC block pins but without success...

Could you help me to change ADC standard block firstly and to create a custom block secondly ?

Thanks in advance

Posts: 872
Joined: Thu Dec 07, 2006 12:11 pm

Re: Customisaton of FLEX demoboard ADC block

Post by paolo.gai » Thu Nov 03, 2011 9:13 am


just spotted this message while revisiting the forum. Sorry for not having responded earlier.

There are some instructions on how to create a new block on ScicosLab here: ... Enterprise

this should contain some information on how to proceed.

About changing the interfacing function. I guess the easiest thing to do is to change the name of the C function referenced in the Scicos block you are using (that is, change the function that is referenced in the block definition .sci file under the Scicos contrib). At that point, you can implement the function inside your project, providing the specific behavior you need.