PDA

View Full Version : Interfacing on-on toggle switch



marcus_422
02-17-2010, 02:26 PM
Hi,

With regards to using a toggle switch with the master card, how easy is it to interface a on-on SPDT toggle switch.

I'm guessing this problem applies to most permanently on contacts but what are the different methods on making sure repeat commands aren't sent by the switch (I.E. Does SIOC recognise only the change in state of a switch or will it continuously try and execute the state the switch is in?). I know that momentary pushbuttons aren't a problem but on a similar note, what if you wanted to use a locking pushbutton?

Best regards,
Marcus

capetonian
02-17-2010, 03:12 PM
Hi,

SIOC maintains the state of the switch.

marcus_422
02-17-2010, 03:21 PM
Thanks for the quick reply capetonian.

When you say it maintains the state of the switch what does that means from a practical application. So if I my locking pushbutton was selected on in order to activate a key command or fsuipc macro for example, would sioc continuously try and execute the macro or would it only do it once?

capetonian
02-17-2010, 03:29 PM
SIOC should maintian the function. If I trn on a fuel pump that pump stays on. SIOC is a script which loops and checks the state of an input. I think it is more important that your software supports the single / multi press issue.

If I run controlodor.exe (in the SIOC main folder, a program for testing the cards) then as soon as I short an input (ie make a connection between a ground terminal and one of the 9 switch terminals (mastercard inputs are grouped in groups of 10 with one terminal being a ground) then I see the input value (ie: -140- ) in the display window. THat stays where for as long as the switch is closed.

I am using SIOC/ IOCP with MetaMarty's excellent 737 overhead software and I have no problems whatsoever with multiple key presses if I close a switch or push a pushbutton in and hold it pushed foe several seconds.