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

    Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Nico,

    SIOC will not let me use the variable attribute "static" when trying to script the USB/AM/OFF Switch for the HF Panel.

    It simply comes up with the error "duplicated var attribute", and this won't let me compile it.

    Regards,

    Jack

  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: "Duplicated Var Attribute" - Static

    I am abroad. At first sight this does not seem to be a lekseecon issue.
    Check your sioc source.
    Will help you futher when i am home again.
    Nico

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

    Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Nico,

    I have fixed it now. It was because the attribute "static" had been written twice.

    Instead of making a new thread, I'll just re-use this one. I need to know if Lekseecon can support the use of Potentiometers to trigger a switch in the LDS767. For example, I have a rotary (2 position) switch controlling the AM and USB functions of the HF panel, but I'd like to set the HF panel the OFF when a Potentiometer hits a certain range (ie less than 55).

    I made this script (well, it's longer, but this is the important part):

    Code:
    Var 8576, name USB, Link SUBRUTINE
    {
     IF &HFLEFTUSB_SW = 1
     {
      IF &SQPOT => 55
      {
       &HFLeftUSB = 1
      }
       ELSE
       {
       IF &HFLEFTAM_SW = 1
        {
        IF &SQPOT => 55
         {
          &HFLeftAM = 1
         }
          ELSE
          {
         &HFLeftOff = 1
          }
        }
       }
     }
    }
    As you can see, the HF panel should always be ON, UNLESS the "SQPOT" (Squelch Pot) is less than 55. The above script doesn't seem to work, so I'm double-checking if it's even possible with Lekseecon.

    Cheers,

    Jack

  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: Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Jack,

    That should be possible. You only need to write a SIOC script that deals with the potentiometer and sets the lekseecon variables accordingly.

    Note that if you want to emulate a rotary switch (like you are trying) you should not only set the 1 value for the wanted position but also the 0 values(-s) for the other position(s). I think that is missing in your script.
    E.g.
    Code:
    IF &SQPOT => 55
    {
      &HFLeftUSB = 1
      &HFLeftAM = 0
      &HFLeftOff = 0
    }
    and so on.

    regards,
    Nico
    Last edited by kiek; 09-05-2011 at 07:23 AM.

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

    Re: Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Nico,

    Excellent! Thanks for your advice; I have got my logic fully working.

    Unfortunately (it's just one thing after another), I have another problem.

    This is definitely Lekseecon related!

    For some reason, after starting SIOC and Lekseecon, no LEDs whatsoever on the electrical panel of the 767 will illuminate. I have checked every single LED for faults (non-found), and fully tested all of them in both controlador.exe and a simple SIOC script.

    I have not changed my SIOC cockpit file at all, apart from adding the HF Radio script. However, even removing this HF script entirely doesn't solve the issue.

    It seems odd that it's EXACTLY the electrical panel that doesn't work, whilst EVERYTHING else works.

    THis is my Lekseecon.log file:

    Code:
    LOG_FROM_COCKPIT=0
    LOG_TO_COCKPIT=0
    LOG_TO_LEVELD=1
    
    Settings parameters taken:
    HOSTADDRESS=127.0.0.1
    PORT=8092
    CONFIG_FILE=C:\Program Files (x86)\IOCards\SIOC\Cockpit_Full.ssi
    
    Number of lekseecon variable(-s) detected: 197
     13 14 15 16 18 19 20 22 23 24 25 27 28 29 30 32 33 34 35 37
     38 41 42 45 46 47 48 53 54 55 57 58 59 61 62 63 65 66 67 68
     70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 153 154 242
     268 272 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
     293 294 295 296 297 298 299 387 388 389 390 391 392 393 394 395 396 397 398 399
     400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
     420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
     440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 527 528 529 530
     531 532 533 534 536 537 538 540 541 542 579 580 581 582 583 584 585 586 587 588
     589 590 591 592 593 700 703 704 705 706 707 742 771 782 990 996 999
    SDK connected.
    
    185 variables registered at SIOC server (inicio).
    19 initial values received from SIOC server
    SIOC connected.
    
    No info about Rotary Switch 18 : 20 (IRS Left : IRS Right)
        forced to: IRS Center (most likely?)
    
    No info about Rotary Switch 27 : 30 (center iru OFF : center iru att)
        forced to: center iru OFF (most likely?)
    
    No info about Rotary Switch 536 : 538 (XPDR Mode STBY : XPDR Mode ON)
        forced to: XPDR Mode AUTO (most likely?)
    
    No info about Rotary Switch 540 : 542 (TCAS Mode OFF : TCAS Mode TA/RA)
        forced to: TCAS Mode OFF (most likely?)
      LEFT_YD_SWITCH = 0 ->L 
    
    Running...
    Elapsed time (hh:mm)  00:00
      RIGHT_YD_SWITCH = 0 ->L 
      L_EEC_SWITCH = 0 ->L 
      R_EEC_SWITCH = 0 ->L 
      HYD_L_ENG_SWITCH = 0 ->L 
      HYD_C1_ELEC_SWITCH = 0 ->L 
      HYD_C2_ELEC_SWITCH = 0 ->L 
      HYD_R_ENG_SWITCH = 0 ->L 
      AT_BUTTON = 0 ->L 
      AP_DISCO = 0 ->L 
      FD_BUTTON = 0 ->L 
      FD_FO_BUTTON = 0 ->L 
      IRS_DSP_SWITCH = 1 ->L 
      IRS_SYS_SWITCH = 1 ->L 
      HYD_L_DEMAND_SWITCH = 0 ->L 
      HYD_C_DEMAND_SWITCH = 0 ->L 
      HYD_R_DEMAND_SWITCH = 0 ->L 
      LEFT_HF_MODE_SET = 0 ->L 
      STBY_SWITCH = 0 ->L 
      XPDR_MODE = 1 ->L 
      XPDR_TCAS_MODE = 0 ->L 
    Statistics:
    C->   Commands: 26 (0%)
     ->C  Commands: 19 (24%)
     ->L  Commands: 21 (0%)
    
    lekseecon stopped.
    Elapsed time (hh:mm)  00:00
    Sorry to be a pain!

    Cheers,

    Jack

  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: Potentiometer (HF Panel) and Lekseecon Functionality

    Quote Originally Posted by Boeing 747 Flyer View Post
    This is definitely Lekseecon related!
    No, that's very unlikely ...

    Can you run again with LOG_TO_COCKPIT=1 and LOG_TO_LEVELD=0
    Then we can check whether Var 706 gets a value... (like700, 704 and so on)
    Please post the log again.
    regards,
    Nico

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

    Re: Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Nico,

    I tried again, with the log settings you stated.

    Still no luck, I even tried toggling the APU GEN switch a few times to see if that would trigger the annunciators. Still no luck.

    Here's the log:

    Code:
    lekseecon version 8.1
    
    C:\Program Files (x86)\IOCards\SIOC\sioc.ini found.
    PORT=8092
    CONFIG_FILE=C:\Program Files (x86)\IOCards\SIOC\Cockpit_Full.ssi
    
    lekseecon.ini found:
    FSUIPC_MODE=0
    LOG_FROM_COCKPIT=0
    LOG_TO_COCKPIT=0
    LOG_TO_LEVELD=0
    
    Settings parameters taken:
    HOSTADDRESS=127.0.0.1
    PORT=8092
    CONFIG_FILE=C:\Program Files (x86)\IOCards\SIOC\Cockpit_Full.ssi
    
    Number of lekseecon variable(-s) detected: 197
     13 14 15 16 18 19 20 22 23 24 25 27 28 29 30 32 33 34 35 37
     38 41 42 45 46 47 48 53 54 55 57 58 59 61 62 63 65 66 67 68
     70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 153 154 242
     268 272 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
     293 294 295 296 297 298 299 387 388 389 390 391 392 393 394 395 396 397 398 399
     400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
     420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
     440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 527 528 529 530
     531 532 533 534 536 537 538 540 541 542 579 580 581 582 583 584 585 586 587 588
     589 590 591 592 593 700 703 704 705 706 707 742 771 782 990 996 999
    SDK connected.
    
    185 variables registered at SIOC server (inicio).
    20 initial values received from SIOC server
    SIOC connected.
    
    No info about Rotary Switch 18 : 20 (IRS Left : IRS Right)
        forced to: IRS Center (most likely?)
    
    No info about Rotary Switch 27 : 30 (center iru OFF : center iru att)
        forced to: center iru OFF (most likely?)
    
    No info about Rotary Switch 536 : 538 (XPDR Mode STBY : XPDR Mode ON)
        forced to: XPDR Mode AUTO (most likely?)
    
    No info about Rotary Switch 540 : 542 (TCAS Mode OFF : TCAS Mode TA/RA)
        forced to: TCAS Mode OFF (most likely?)
    
    Running...
    Elapsed time (hh:mm)  00:00
    Elapsed time (hh:mm)  00:01
    Connection to SDK was lost.
    Statistics:
    C->   Commands: 29 (0%)
     ->C  Commands: 44 (12%)
     ->L  Commands: 608 (0%)
    
    lekseecon stopped.
    Elapsed time (hh:mm)  00:01
    Cheers,

    Jack

  8. #8
    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: Potentiometer (HF Panel) and Lekseecon Functionality

    Quote Originally Posted by Boeing 747 Flyer View Post
    I tried again, with the log settings you stated.
    No, you did not... , set LOG_TO_COCKPIT=1 in lekseecon.ini

    regards,
    Nico

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

    Re: Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Nico,

    This is the .log:

    Code:
    lekseecon version 8.1
    
    C:\Program Files (x86)\IOCards\SIOC\sioc.ini found.
    PORT=8092
    CONFIG_FILE=C:\Program Files (x86)\IOCards\SIOC\Cockpit_Full.ssi
    
    lekseecon.ini found:
    FSUIPC_MODE=0
    LOG_FROM_COCKPIT=0
    LOG_TO_COCKPIT=1
    LOG_TO_LEVELD=0
    
    Settings parameters taken:
    HOSTADDRESS=127.0.0.1
    PORT=8092
    CONFIG_FILE=C:\Program Files (x86)\IOCards\SIOC\Cockpit_Full.ssi
    
    Number of lekseecon variable(-s) detected: 197
     13 14 15 16 18 19 20 22 23 24 25 27 28 29 30 32 33 34 35 37
     38 41 42 45 46 47 48 53 54 55 57 58 59 61 62 63 65 66 67 68
     70 71 72 73 75 76 77 78 79 80 81 82 83 84 85 86 87 153 154 242
     268 272 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292
     293 294 295 296 297 298 299 387 388 389 390 391 392 393 394 395 396 397 398 399
     400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
     420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
     440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 527 528 529 530
     531 532 533 534 536 537 538 540 541 542 579 580 581 582 583 584 585 586 587 588
     589 590 591 592 593 700 703 704 705 706 707 742 771 782 990 996 999
    SDK connected.
    
    185 variables registered at SIOC server (inicio).
    22 initial values received from SIOC server
    SIOC connected.
    
    No info about Rotary Switch 18 : 20 (IRS Left : IRS Right)
        forced to: IRS Center (most likely?)
    
    No info about Rotary Switch 27 : 30 (center iru OFF : center iru att)
        forced to: center iru OFF (most likely?)
    
    No info about Rotary Switch 536 : 538 (XPDR Mode STBY : XPDR Mode ON)
        forced to: XPDR Mode AUTO (most likely?)
    
    Running...
       (65) L HF radio freq = 2800 ->C 
    Elapsed time (hh:mm)  00:00
       (268) VOR1 cours = 0 ->C 
       (272) VOR2 cours = 0 ->C 
       (296) MCP ias = 200 ->C 
       (297) MCP heading = 0 ->C 
       (298) MCP vspeed = 0 ->C 
       (299) MCP altitude = 100 ->C 
       (707) apu_lights = 0 ->C 
       (700) iru_lights = 0 ->C 
       (703) hydraulics = 122880 ->C 
       (704) annunciators = 0 ->C 
       (705) bat_stby_lights = 4 ->C 
       (706) electrical_lights = 1400404 ->C 
       (742) MCP_buttons_lights = 16 ->C 
       (771) fmc_lights = 0 ->C 
       (782) Cockpit States = 0 ->C 
       (990) refresh var = 1 ->C 
       (996) refresh var = 1 ->C 
       (999) refresh var = 1 ->C 
       (703) hydraulics = 114752 ->C 
       (703) hydraulics = 960 ->C 
       (707) apu_lights = 1 ->C 
       (706) electrical_lights = 1395284 ->C 
       (700) iru_lights = 1092 ->C 
       (703) hydraulics = 4032 ->C 
       (771) fmc_lights = 1 ->C 
       (700) iru_lights = 0 ->C 
       (703) hydraulics = 8128 ->C 
       (705) bat_stby_lights = 20 ->C 
       (703) hydraulics = 8135 ->C 
       (704) annunciators = 34816 ->C 
       (700) iru_lights = 16 ->C 
       (700) iru_lights = 17 ->C 
       (700) iru_lights = 273 ->C 
       (706) electrical_lights = 1395280 ->C 
       (706) electrical_lights = 1395288 ->C 
       (706) electrical_lights = 1395284 ->C 
       (706) electrical_lights = 1395280 ->C 
       (706) electrical_lights = 1395288 ->C 
    Elapsed time (hh:mm)  00:01
       (706) electrical_lights = 1395292 ->C 
       (706) electrical_lights = 1395284 ->C 
    Connection to SDK was lost.
    Statistics:
    C->   Commands: 33 (0%)
     ->C  Commands: 41 (12%)
     ->L  Commands: 420 (0%)
    
    lekseecon stopped.
    Elapsed time (hh:mm)  00:01

  10. #10
    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: Potentiometer (HF Panel) and Lekseecon Functionality

    Hi Jack,

    Well, in the log you can see that lekseecon is OK. Var 706 electrical_lights gets a value.
    (Note that you should convert that big number into binary to see which bits are set to 1 and which bits are 0, but believe me, that part is working fine)

    -> Check your SIOC source and/or your hardware.

    regards,
    Nico

Page 1 of 3 123 LastLast