Hi, I am a beginner of SCILAB X2C user and using free version of SCILAB.

I wish to use Scilab X2C tobuild code for DSPIC processor. But while want to use X2C blocks like addition or multiplication etc. I am uanle to get output value greater than 1. More clearly, if I want to add two variables with values 5 and 6 using constants block and then either want to add them or multiply them using add or multiply blocks the result is always 1. But for any values below 1 and so long the expected result is within 1 i.e. for 0.5 and 0.06 it works fine.

Now my question is how can I use such type of variable of having values higher than one? I presume, I have to normalise the varibales. But how can I normalise them I donot know. Your kind suggestion is highly solicited in learning and solving these problems.

N.B. Suggestion of any study material regarding this is also requested. and guideline to get X2C. Though I am a profesor in Electrical Engineering, I am unable to get educational version license of X2C as X2C authority remains silent on my repeated request. Any guideline to get X2C education version is also apprciable.

Thank you

With kind regards

Scilab

Login to add comment