modulo function in xcos

Gus Ishere gus.is.here at gmail.com
Mon Jun 20 04:43:03 CEST 2011


I'm a first-time Scilab user and would like to simulate a model in
xcos (or Scicos)

I am simulating a Numerically Controlled Oscillator and need to
perform modular arithmetic (modulo 2^W, W is some parameter to the
model). I am trying to use the Xcos "Mathematical Expression" block,
but it does not recognize the function "modulo". In the Scilab
console, though, "modulo" provides the desired functionality. I expect
that since "modulo" and "sin" appear in the same namespace, that I
would be able to use them identically in the Xcos block, but "sin"
works and "modulo" does not.

Thanks,
Gustavo



More information about the users mailing list