Results 1 to 4 of 4
Thread: Interfacing on-on toggle switch
-
02-17-2010, 02:26 PM #1
- Join Date
- Dec 2009
- Location
- World
- Posts
- 8
Interfacing on-on toggle switch
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
-
02-17-2010, 03:12 PM #2
- Join Date
- Mar 2009
- Location
- Usa
- Posts
- 388
Re: Interfacing on-on toggle switch
Hi,
SIOC maintains the state of the switch.
-
02-17-2010, 03:21 PM #3
- Join Date
- Dec 2009
- Location
- World
- Posts
- 8
Re: Interfacing on-on toggle switch
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?
-
02-17-2010, 03:29 PM #4
- Join Date
- Mar 2009
- Location
- Usa
- Posts
- 388
Re: Interfacing on-on toggle switch
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.
Similar Threads
-
Need some advice on interfacing toggle switches
By dcoker in forum OpenCockpits General DiscussionReplies: 3Last Post: 09-20-2010, 10:26 PM -
Gps/nav1 toggle switch
By renegade in forum General Microsoft Flight Simulator 10 (FSX)Replies: 3Last Post: 07-05-2010, 11:51 AM -
Toggle switch caps
By Westozy in forum General Builder Questions All Aircraft TypesReplies: 41Last Post: 06-26-2007, 05:13 AM -
Toggle switch covers
By Westozy in forum Where to Start Building a Home CockpitReplies: 5Last Post: 03-31-2007, 12:00 AM
Search Girls from your city for night
B_34 TOGA takeoff