Results 11 to 20 of 65
-
04-15-2011, 04:59 AM #11
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Any ideas? I still cannot get the potentiometers recognised by SIOC, despite the fact that they are fully working in Controlador.exe?
-
04-15-2011, 05:40 AM #12
- Join Date
- Jul 2013
- Posts
- 917
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Jack
Try reading the last few lines on page 4 of the installation manual for this card. Also, I would strip out the many references to other cards in your .ini file to reduce it down to only what you currently need
David
-
04-15-2011, 05:44 AM #13
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Hi David,
I will look at the manual.
The references like USBServos, etc... Are all needed. I have 7 seperate Opencockpit Cards + one ATC module.
EDIT: David, which manual is this? I see no reference to Potentiometers in both the USBExpansion or Master manual lifted from the OC shop page.
Jack
-
04-15-2011, 06:04 AM #14
- Join Date
- Jul 2013
- Posts
- 917
-
04-15-2011, 06:50 AM #15
- Join Date
- Jul 2013
- Posts
- 917
-
04-15-2011, 08:26 AM #16
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Hi David,
The Pots are now completely recognised, but Var 25 refuses to execute when the pot changes from 150 and vice-versa.
Why does this script not work?
Code:Var 0, Value 0 { &Motor_2 = 120 &Motor_3 = 120 &Motor_4 = 120 &Motor_6 = 120 } Var 0001, name Motor_1, Link USB_DCMOTOR, Output 1 Var 0002, name Motor_2, Link USB_DCMOTOR, Output 2 Var 0003, name Motor_3, Link USB_DCMOTOR, Output 3 Var 0004, name Motor_4, Link USB_DCMOTOR, Output 4 Var 0005, name Motor_5, Link USB_DCMOTOR, Output 5 Var 0006, name Motor_6, Link USB_DCMOTOR, Output 6 Var 0010, name A1, Link USB_ANALOGIC, Input 1, PosL 0, PosC 127, PosR 255 Var 0011, name A2, Link USB_ANALOGIC, Input 2, PosL 0, PosC 127, PosR 255 Var 0012, name A3, Link USB_ANALOGIC, Input 3, PosL 0, PosC 127, PosR 255 Var 0013, name A4, Link USB_ANALOGIC, Input 4, PosL 0, PosC 127, PosR 255 Var 25, name Bar_GS { IF &A3 <= 150 { &Motor_1 = 120 &Motor_5 = 250 } ELSE { &Motor_1 = 250 &Motor_5 = 120 } }
-
04-15-2011, 10:09 AM #17
- Join Date
- Jul 2013
- Posts
- 917
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Jack
It is a basic principle of SIOC that scripts attached to a variable are only executed when the value of the variable changes. But in your coding variable 25 never changes value!! This is amply and clearly explained on Nico`s site, perhaps a bit more homework is required
David
-
04-15-2011, 10:16 AM #18
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
-
04-16-2011, 05:39 AM #19
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Thanks very, very much everybody. All works now!
Onto the next task... Getting the Pots, Motor and Offset $04CE all interfaced together.
I am trying trying to understand Gery's method from earlier. How can I interface all of them? I am comfortable with Servo gauges but not with these (?).
Kindest regards,
Jack
-
04-17-2011, 08:19 AM #20
Re: "Inner Circle" HSI - SIOC DC Motors Card Script
Any ideas?
Similar Threads
-
DC Motors Card - How to use in SIOC?
By Boeing 747 Flyer in forum OpenCockpits General DiscussionReplies: 4Last Post: 04-20-2017, 09:11 PM -
Expansion card buggy? Shows "ghost" inputs where there aren't...
By Michael737NG in forum OpenCockpits General DiscussionReplies: 0Last Post: 12-26-2010, 07:02 AM -
SIOC "IF" Question
By Boeing 747 Flyer in forum OpenCockpits General DiscussionReplies: 89Last Post: 08-29-2010, 05:34 PM -
FSX "This graphics card does not meet minimum ..." HELP !!!!
By ibennett in forum Computer Hardware SetupReplies: 5Last Post: 04-12-2010, 09:46 PM -
Looking for "Below GS" and "Spoilers armed" annunciator light offset
By PeterH in forum PM General Q & AReplies: 17Last Post: 03-05-2008, 12:39 PM
Pretty Girls from your city for night
Generic Analog Gauges