So I started working with this program but there is a problem.
This program is used for changing the direction of the servo motor. When the signal value doesn't exceed the treshold value then the Case structure value is FALSE.
Next, when signal exceed treshold, TRUE value of the case structure negates the initial false value of the memory block and we get true value on the output of the case structure. This value is sent to Select function and we send value 1 to motor direction control. So far so good
But, when we have second iteration where true value from the output of the case structure is input value of the memory block, that's where the problem begins. For the TRUE case, memory block value, which is true, is being negated so we get false on the output of the case selector even though we have true on the input of the case selector.
I really hope you can understand me and i would really appreciate your help.
I will also attach diagram 1 of the servo direction, where you can clearly see that the direction is constantly changing and diagram 2 where is shown what the diagram should look like.
Thank you for all your help