Hello,
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\com.eu.evidence.ee_1.5.1.201003011152\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
Customisaton of FLEX demoboard ADC block
Moderator: paolo.gai
Re: Customisaton of FLEX demoboard ADC block
Hi!
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:
http://erika.tuxfamily.org/wiki/index.p ... 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.
Ciao,
Paolo
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:
http://erika.tuxfamily.org/wiki/index.p ... 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.
Ciao,
Paolo