Hi Shane,
I'm already using queues in the program so familiar with their workings
Perhaps I could enqueue the output value of each section when it is requested (e.g. 0 or 8, 0 or 4, 0 or 2 etc), then when I dequeue it, change that output bit to the new value.
On the walk in before I thought about using queues. I still fear though that I may get issues then - let's say I enqueue a value to fire a solenoid to release a component, so that goes onto the queue, but then the case statement switches and the value 0 is also enqueued - so then the value to fire gets dequeued and activated, but then the value to cancel that is dequeued shortly after, meaning the solenoid is not open long enough to let the component through.
I'll certainly give it a try - but yeah you're totally right about the race conditions - they suck!
Cheers Shane - top man
🙂Message Edited by Michael Burgess on 03-24-2005 12:26 PM