06-24-2013 07:58 AM
pincpanter escreveu:
You missed the point: in the selected condition you would not set the voltage at all. See the following image.
Just to clarify the situation, please read my answer above (you were probably typing yours when I've posted).
I understand the matter and I agree with that.
Regards
06-24-2013 08:24 AM
Joaoparm, indeed I was answering to the OP, however I agree that we could use a selection function. As thoult pointed out, however, this is less flexible.
06-24-2013 08:29 AM - edited 06-24-2013 08:32 AM
this looks troubling.....anyone knows why? surprised no one caught this.....
can you please post your vi so that we can understand the 'whole ' picture...
06-25-2013 07:21 AM
Thanks for your answers. As for the equal condition it´s not a problem at all, I put it there just for testing but I´m usually using a lower or equal to condition. This is how it works:
Two parameters, one measured M(t), one applied A(t). Depending on the values measured we change the applied one.
Ao is applied at the beginning until M reaches Mf, then we switch to -Ao until M reaches Mi, then we switch back to Ao until M reaches Mf, and this a certain number of times. My problem was that we reach Mi two times, at the beginning (in this case we need to keep applying Ao) and a second time (and here we need to switch back to Ao). I was thinking of putting something that indicates the sign of Ao, it would make the cases simpler, but then I thought maybe it would be even better if I just didn´t change A in the corresponding case.
I hope this clarifies it apok.