November 22, 2024, 04:49:29 AM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


Controlling a TCT

Started by jcarpenter2, April 15, 2007, 05:16:34 PM

Previous topic - Next topic

JonnyMac

I've updated the program (see above) with the eyes on OUT0.  You can't power the AP-8 from the Prop-1 outputs because there's a danger you'll overdrive the ULN and pop it.  Connect AP-8 power between V+ and GND as this will allow you to use the Prop-1 power switch to control the AP-8 power (the AP-8 will work only when the Prop-1 power switch is in position 2).
Jon McPhalen
EFX-TEK Hollywood Office

barry

Can I ask what may be a stupid question on this one?  How does the RC4 know what to do in the "Update_RC4:" subroutine when the "rc4outs" are commented?

JonnyMac

I'm not sure I understand the question -- if the rc4outs variable was commented out of the source (at its definition) the editor would complain when you try to run the program.  Otherwise, that value holds the status of the RC-4 outputs; a 1 bit means the relay is on, a 0 means it's off.  Examples:

%0001 - relay K1 is on
%1101 - relays K1, K3, and K4 are on

Note that we start in the rightmost column (that's K1) and the left-most column bit is K4.
Jon McPhalen
EFX-TEK Hollywood Office

barry

Never mind.  LOL  I just reread the code and saw what you are doing.  I wasn't paying attention to the variables section and was simply looking at the commented rc4Outs=... which is just explaining what is going on.

Thanks again Jon,
Barry