Skip to main content
1-Visitor
March 30, 2014
Solved

Function problem

  • March 30, 2014
  • 1 reply
  • 1166 views

Hello

I made a function which should be able to produce 25% a value of 1, 25% a value of -1 and totally 50 % the value of 0. Something like the signum function but with defined intervalls.

the first 25% of the periodic time it should be 1

from 25% till 50% it should be 0

from 50% till 75% it should be -1

from 75% till 100% it should be 0

and then again from the beginning. Totally for 10 minutes.

Unfortunataly the function doesn't work and I don't know why.

Thanks for your help

Adrian

Best answer by RichardJ

You can't use range variables the way you are using them. This does what you want.

1 reply

RichardJ19-TanzaniteAnswer
19-Tanzanite
March 30, 2014

You can't use range variables the way you are using them. This does what you want.

1-Visitor
March 30, 2014

thank you very much!

It's exactly what I intended to do.