I am learning to use MapleSim to do my research.
and I should create a custom Component. Its function is:
there are two inputs s1 and s2, the output F=0 when s1=0, and F=s2 when s1=1.
I made a function like the figure as follows and the error occured
----------------------------------------------------------------------------------
![[F(t) = piecewise(s1 = 0, 0, s1 = 1, s2)]](http://www.mapleprimes.com/MapleImage.ashx?f=86e6ba9abd7d14bfc70f88bd1806eece.gif)
params := [ ]
initialconditions := [ ]
sys := DynamicSystems [ DiffEquation]( eq, inputvariable = [s1, s2],outputvariable = [F(t)])
Error, (in DynamicSystems:-DiffEquation) unrecognized diff-equation type: 9
------------------------------------------------------------------------------------
anyone could help me to solve this problem.thinks