• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

formula in amesim

  • Thread starter Thread starter xvelenox
  • Start date Start date

xvelenox

Guest
Good morning to all,

I ask you something simple. in simulink I grouped 3 variables with the multiplexer and then sent them into the "function" block in which I wrote the function with the following syntax: (u[1]+u[2])/u[3] .
I'd like to do the same thing in amesim. I grouped the variables with the multiplexer and sent everything into the function f(x block). the first : x(1) or x[1] or other syntax?
I hope I've been clear.

greetings
 
hello,
you have to use the fct block (which is dynamic, 3 inputs for 1 output) instead of f(x) (which considers an input as a scalar).
then in fct the output expression is (u1+u2)/u3.
regards
 
hello,
you have to use the fct block (which is dynamic, 3 inputs for 1 output) instead of f(x) (which considers an input as a scalar).
then in fct the output expression is (u1+u2)/u3.
regards

thanks, i'll try it soon.

best regards
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top