November 21, 2024, 01:28:11 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Updating Haunt Control Program to Increase Traffic Flow

Started by Spooky Dad, August 13, 2016, 09:44:27 PM

Previous topic - Next topic

Spooky Dad

Hey gents.  Thanks for all the support over the years.  You will be happy to know that, with the help of a friend coming over to start at the Debug Terminal Screen, the simple logic problem was found.   The short answer is that in the FOR NEXT loop scanning the inputs, I was overwriting the Sensor input after the first pass.  I created another variable to "capture" the input and have it be available for the rest of the states and viola! I should note that this is not true multi-processing like the HC-8+ would do.   In other words, if a prop is currently active, then another prop can't be tripped.

bsnut

That's good to hear. Can you show us in the code where you fixed it at, so everyone can see.
William Stefan
The Basic Stamp Nut