Results 1 to 7 of 7
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2011
    Location
    Madrid
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Com1 Leckseecon vars not works

    Hi everyone.

    Ive make a radio panel using Io cards of opencockpits and programing 763 Level-D with Sioc & leckseecon (Sioc v:3.71B Lecseecon v: 7.2) in Win7. ILS, NAV1, NAV2, Xpond, ATC & TCAS and another thinks Ive programed works fine, not problem.

    But in COM1 not works nothing...

    A single SIOC program with COM1

    Var 0779, name COM1_TFR_LVD, static // POSICION DEL TRF EN COM1
    {
    &COM1_PRI_LED = TESTBIT &COM1_TFR_LVD ,0
    &COM1_SEC_LED = TESTBIT &COM1_TFR_LVD ,1
    &COM1_PTO_LED = TESTBIT &COM1_TFR_LVD ,2
    }

    Var 5520, name COM1_INI, Value 0 // INICIALIZACION VARIABLES COM1

    Var 5530, name COM1_PRI_LED, Link IOCARD_OUT, Output 140 // LED PRIMARIA COM1

    Var 5540, name COM1_SEC_LED, Link IOCARD_OUT, Output 145 // LED SECUNDARIO COM 1

    Var 5550, name COM1_PTO_LED, Link IOCARD_OUT, Output 143 // PUNTOS RADIOS COM 1

    ... Active my SIOC and my Leckseecon... OK.

    Leds dont light..... bad.
    When I press TFR swich in my panel must change leds Isnt'it?
    not works...

    what I'm doing bad?

    another files I've found is the same program... I don't understand.

    excuse me my bad english I'm from Spain.

    anticipate thanks.

    Santyago

  2. #2
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Com1 Leckseecon vars not works

    Hi,
    You miss COM1 inputvariables for a rotary Encoder.
    And i do not see display variables ....
    please study my examples carefully.
    Nico

  3. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2011
    Location
    Madrid
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Com1 Leckseecon vars not works

    Thankyou for your answer.

    The example I've edit upper, is only a part of my SIOC program. I olny edit this because I don't wanna extend more (bad for me & us).

    otherwise, I think this part may works fine, another parts works fine with the same programing filosofy.

    what I'm doing wrong?

    thanks

  4. #4
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Com1 Leckseecon vars not works

    Please post your complete SIOC script for COMM1 andere
    post lekseecon_log.txt
    Otherwise I cannnot tell much.
    Nico

  5. #5
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2011
    Location
    Madrid
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Com1 Leckseecon vars not works

    Ok Nico, I wrote my Sioc COM1. It's the code:




    // *****************************************************************************
    // * Config_SIOC ver 3.7B1 - By Manolo Vlez - www.opencockpits.com
    // *****************************************************************************
    // * FileName : sioc.txt
    // * Date : 05/03/2011



    Var 0265, static, Link IOCARD_SW, Input 7, Type 1

    Var 0510, name COM1_PRI_LVD, static // SELECCION PRIMARIA COM1

    Var 0511, name COM1_SEC_LVD, static // SELECCION COM1 SECUNDARIA

    Var 0515, name COM1_PRENC_LVD, static

    Var 0516, name COM1_SCENC_LVD, static

    Var 0779, name COM1_LEDS, static // LEDS DE COM 1
    {
    &COM1_PRI_LED = TESTBIT &COM1_LEDS ,0
    &COM1_SEC_LED = TESTBIT &COM1_LEDS ,1
    &COM1_PTORD_LED = TESTBIT &COM1_LEDS ,2
    }

    Var 0852, name COM1_FREPR_LVD, static // FRECUENCIA COM1 PRIMARIA
    {
    L0 = &COM1_FREPR_LVD
    L1 = MOD L0 ,16
    IF L0 = 10
    {
    &COM1_PRI0_DIS = -999999
    &COM1_PRI1_DIS = -999999
    &COM1_PRI2_DIS = -999999
    &COM1_PRI3_DIS = -999999
    &COM1_PRI4_DIS = -999999
    }
    ELSE
    {
    &COM1_PRI0_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    IF L1 = 6
    {
    L1 = -999997
    }
    &COM1_PRI1_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    IF L1 = 6
    {
    L1 = -999997
    }
    &COM1_PRI2_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    IF L1 = 6
    {
    L1 = -999997
    }
    &COM1_PRI3_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    &COM1_PRI4_DIS = L1
    }
    }

    Var 0853, name COM1_FRESC_LVD, static // FRECUENSIA COM1 SECUNDARIA
    {
    L0 = &COM1_FRESC_LVD
    L1 = MOD L0 ,16
    IF L1 = 10
    {
    &COM1_SEC0_DIS = -999999
    &COM1_SEC1_DIS = -999999
    &COM1_SEC2_DIS = -999999
    &COM1_SEC3_DIS = -999999
    &COM1_SEC4_DIS = -999999
    }
    ELSE
    {
    &COM1_SEC0_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    IF L1 = 6
    {
    L1 = -999997
    }
    &COM1_SEC1_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    IF L1 = 6
    {
    L1 = -999997
    }
    &COM1_SEC2_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    IF L1 = 6
    {
    L1 = -999997
    }
    &COM1_SEC3_DIS = L1
    L0 = DIV L0 ,16
    L1 = MOD L0 ,16
    &COM1_SEC4_DIS = L1
    }
    }

    Var 5520, name COM1_INI, Value 0 // INICIALIZACION RADIO COM1

    Var 5522, name COM1_PRI_LED, Link IOCARD_OUT, Output 140 // LED COM1 PRIMARIA

    Var 5524, name COM1_SEC_LED, Link IOCARD_OUT, Output 145 // LED COM1 SECUNDARIA

    Var 5526, name COM1_PTORD_LED, Link IOCARD_OUT, Output 143 // PUNTOS RADIO COM1

    Var 5528, name COM1_TFR_PULS, Link IOCARD_SW, Input 164, Type P // PULSADOR CAMBIO PRIMARIA - SECUNDARIA
    {
    IF &COM1_TFR_PULS = 1
    {
    &COM1_PRI_LVD = 0
    &COM1_SEC_LVD = 1
    }
    ELSE
    {
    &COM1_SEC_LVD = 0
    &COM1_PRI_LVD = 1
    }
    }

    Var 5530, name COM1_PRI0_DIS, Link IOCARD_DISPLAY, Digit 138, Numbers 1 // DISPLAYS PRIMARIA COM1

    Var 5532, name COM1_PRI1_DIS, Link IOCARD_DISPLAY, Digit 139, Numbers 1

    Var 5534, name COM1_PRI2_DIS, Link IOCARD_DISPLAY, Digit 140, Numbers 1

    Var 5536, name COM1_PRI3_DIS, Link IOCARD_DISPLAY, Digit 141, Numbers 1

    Var 5538, name COM1_PRI4_DIS, Link IOCARD_DISPLAY, Digit 142, Numbers 1

    Var 5540, name COM1_SEC0_DIS, Link IOCARD_DISPLAY, Digit 144, Numbers 1 // DISPLAYS SECUNDARIA COM1

    Var 5542, name COM1_SEC1_DIS, Link IOCARD_DISPLAY, Digit 145, Numbers 1

    Var 5544, name COM1_SEC2_DIS, Link IOCARD_DISPLAY, Digit 146, Numbers 1

    Var 5546, name COM1_SEC3_DIS, Link IOCARD_DISPLAY, Digit 147, Numbers 1

    Var 5548, name COM1_SEC4_DIS, Link IOCARD_DISPLAY, Digit 148, Numbers 1

    Var 5550, name COM1_PRENT_ENC, Link IOCARD_ENCODER, Input 145, Aceleration 1, Type 2 // ENCODER ENTEROS PRIMARIA COM
    {
    &COM1_PRENC_LVD = ROTATE 0 ,359 ,&COM1_PRENT_ENC
    }

    Var 5552, name COM1_PRDEC_ENC, Link IOCARD_ENCODER, Input 151, Aceleration 1, Type 2 // ENCODER DECIMALES PRIMARIA C
    {
    &COM1_SCENC_LVD = ROTATE 0 ,359 ,&COM1_PRDEC_ENC
    }


    Unfortunately Leckseecon v:7.2 not made a log file how v:4.0, also appears a desktop icon when he is running since I updating my leckseecon version.

    The light var (265) is to probe leckseecon is runing and working, it's well

    - Digits, and leds appear on my panel
    - Puls moves leds on my panel, not in Level_D
    - Encoders moves Right frecuency on my panel, not in Level_D

    profusely thanks for spend your time with me, Nico.

    Santyago

  6. #6
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,202
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Com1 Leckseecon vars not works

    Hi
    The log is in your Documents folder, as indicated in the Manual ...

    Your program seems fine. Lekseecon updates the standby frequency as you can see in your displays, and only if you transfer frequecies lekseecon will update the Leveld panel. Read all about it in the Manual ...

    Nico
    Last edited by kiek; 03-08-2011 at 05:38 PM.

  7. Thanks Santyago thanked for this post
  8. #7
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Feb 2011
    Location
    Madrid
    Posts
    7
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Com1 Leckseecon vars not works

    Ok, Kiek.

    I read carefully leckseecon's manual, and I've programed a few thinks more.

    In my panel all works fine, I needn't any more.

    profusely thanks for spent your time, I only just had to read

    Santyago

Similar Threads

  1. Installed Lekseencon V7.0 No Level-D SIOC Vars Defined in your CONFIG_File.
    By Polmer in forum lekseecon Q&A and Discussions
    Replies: 4
    Last Post: 12-12-2010, 12:17 PM
  2. GoFlight GF-166 COM1 COM2 and Ivap
    By KLM077 in forum MyCockpit Online Flying Discussion
    Replies: 0
    Last Post: 11-15-2010, 09:07 AM
  3. com1 and nav1 from opencockpit, what does it look like?
    By jespergb in forum OpenCockpits General Discussion
    Replies: 0
    Last Post: 06-01-2010, 05:49 PM
  4. Default Com1 settings
    By mgrant in forum MyCockpit Online Flying Discussion
    Replies: 1
    Last Post: 03-18-2007, 02:54 PM
  5. Replies: 3
    Last Post: 01-03-2006, 03:10 PM