Page 4 of 11 FirstFirst 12345678 ... LastLast
Results 31 to 40 of 101
  1. #31
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Well, curly brackets do not seem to work, it just says command outside of place when I apply curly brackets over the code.

    I keep getting rather frustrated at the fact that SIOC does not work for me, even AFTER consulting the manuals especially regarding the curly brackets.

    If someone could show me what the scurly brackets should look like, I will be extremely interested, because I belive I've tried every combination under the sun.

    I learn not through reading manuals, or being told how to do something, I learn by seeing (in this case) a complete example of SIOC script for my Servo, which I would then analyze and understand what each entry means.

    I keep getting told what each little fragment of script means, but I think I need to look at the bigger picture. For example, I was told that I would have to insert a L0 entry into the script. I know what this is, but I can't understand what I would need to define with it.

    I will try and obtain from somewhere a complete SIOC script for an ASI Servo, and then analyzw what each entry means.

  2. #32
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Jack

    One last try!

    Curly brackets are { }

    Please follow the advice you have previously received from Nico, Iwik and others to try some simple coding exercises first using Nico`s site.

    There is no "big" picture with SIOC, only a series of little ones

    SIOC is not working for you because you are not trying and succeeding with very simple exercises - just jumping into trying to solve a medium complexity issue without understanding the basics

    You will not learn by only looking at examples, firstly, you need to understand the following:-

    The various commands and what they do
    The proper syntax to use the commands
    The declaration of variables and associated syntax
    The use of "internal" variables
    The use of boolean/logical variables
    Programme flow - SIOC is unusual insofaras it is an "event" driven language. Nothing happens until a variable changes value - then the code attached to that variable (within curly brackets) is exexcuted. Also any variables within that code, if changed, will prompt the running of their own associated code

    Edit to add
    Programme flow with the use of IF and ELSE etc

    All this and more is within the manuals and Nico`s site. If you persist as per your last post, then you will have a very long journey - even if you find some ASI code, then how will you adapt it for your own use with the knowledge level currently being evidenced?

    You ask for advice, please follow it

    David

  3. #33
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Hiya David,

    I know what curly brackets are and how to use them, but they don't seem to work.

    I have gotten this far, I've managed to create a semi-useable script but things like the V000 will not compile because they are unfinished/incomplete.

    Code:
    Var 0000
    {
    &servo4=250
    }
    var 9000, name Servo4, Link USB_SERVOS, Output 1, PosL 250, PosC 475, PosR 700, Type 2 // Servo Motor
    Var 9003, name IAS, Link FSUIPC_INOUT, Offset $02BC, Length 4 // Indicated Air Speed * 128
    {
    L0 = &IAS / 1.5
    &Servo4 = L0 + 213
    }
    Getting there?

    P.S: Before you ask, I have read what you have said and I udnerstand this post re-glosses over previously posted information.

  4. #34
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    See, computer are dumb. They need data in the formats they been programmed to handle. They can't take leaps of imagination to interpret what someone's personal way of writing things might mean. And SIOC is particularly rigid in its requirements. Do you see any difference between the statements you have written that don't compile as compared to those that do?

    Find that, then you'll still have some learning to do about "event driven".

  5. #35
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Jack,
    &servo4=250 should read &servo4 = 250
    Les

  6. #36
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Ah well, another spoonful.

  7. #37
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Quote Originally Posted by deering View Post
    Ah well, another spoonful.


    Also, thanks Iwik for the advice. I now get the error "= is expected" but I will try and figure this out. One little step at a time.

    I completely udnerstand how SIOC is event driven. Thankfully, this is one thing that IS well documented within SIOC and clearly labelled in the presentation in the form of a diagram. EG: No change in Var = No information supplied

  8. #38
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    635
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Quote Originally Posted by deering View Post
    Ah well, another spoonful.


    EDIT:

    Thank god, progress. The following script *seems* to be okay and compiles well, it is a long way off I know but here's what I've got so far:

    Code:
    Var 0000
    {
    &servo4 = 250
    }
    var 9000, name Servo4, Link USB_SERVOS, Output 1, PosL 198, PosC 446, PosR 693, Type 2 // Servo Motor
    Var 9003, name IAS, Link FSUIPC_INOUT, Offset $02BC, Length 4 // Indicated Air Speed * 128
    {
    L0 = &IAS / 1.5
    &Servo4 = L0 + 213
    }
    Next major step is setting up the SIOC.ini file to handle the Servo3 for ASI and USBServos Card.

  9. #39
    75+ Posting Member
    Join Date
    Apr 2009
    Location
    Toronto
    Posts
    125
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Quote Originally Posted by Boeing 747 Flyer View Post
    .
    I completely [understand] how SIOC is event driven.....
    Good to hear.

    What's the event that's going to cause:

    &servo4 = 250

    to be executed?

  10. #40
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: USBServos Software not working?

    Ho Hum
    You can take a horse to water and it will not drink
    You can hold its nose and it will not drink
    You can hold its nose, dunk its head under water and it will still not drink
    Ho Hum

Page 4 of 11 FirstFirst 12345678 ... LastLast

Similar Threads

  1. Replies: 11
    Last Post: 02-28-2011, 04:09 PM
  2. Real-World Aircraft Instruments interfaced to FSX via SIOC & USBServos
    By Boeing 747 Flyer in forum My Cockpit Update
    Replies: 1
    Last Post: 08-07-2010, 08:58 AM
  3. USBSERVOS Card testing
    By Tripacer in forum OpenCockpits General Discussion
    Replies: 3
    Last Post: 01-14-2009, 12:25 AM
  4. USBServos Card Testing
    By Tripacer in forum OpenCockpits General Discussion
    Replies: 1
    Last Post: 12-07-2008, 12:37 AM
  5. What are you working on?
    By Bob Reed in forum My Cockpit Update
    Replies: 21
    Last Post: 12-22-2006, 12:22 PM