On Tue, Oct 31, 2017 at 7:58 PM, Gene Heskett <[email protected]> wrote:

> On Tuesday 31 October 2017 21:20:22 Chris Albertson wrote:
>
> > Can you convert the gear position to a number, either 1.0 or 0.0
> >
> Thats easy enough.
>
> > Now you one need one PID, no MUX.  Multiple each parameter but ehvalue
> > of the switch or not-switch
> >
> > P =  Int(SW)*Plow + int(not(SW))*Phigh
>
> But this is code that would need to be halcompiled. It doesn't look like
> anything hal is known to be able to do.
>

I didn't mean that you cut and past the code.    Just that some place you
multiply by the switch setting which is either one or zero.

-- 

Chris Albertson
Redondo Beach, California
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to