Welcome to Cockpitbuilders.com. Please login or sign up.

May 06, 2024, 08:30:47 PM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
369 Guests, 0 Users
Members
Stats
  • Total Posts: 59,641
  • Total Topics: 7,853
  • Online today: 554
  • Online ever: 831
  • (May 03, 2024, 12:39:25 PM)
Users Online
Users: 0
Guests: 369
Total: 369

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

SIOC

Started by hossein54, June 03, 2011, 06:04:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hossein54

HI

I want use (BUS_VOLT and left & right ALT_VOLT) in 7seg display

I Write below code for SIOC

When load FSX for first Time ,everything is ok ( 020 010 010 )but after 2 or 3 minutes

7 seg information Disassemble (087 10 410)

for picture links


http://www.opencockpits.com/modules.php?name=gallery2&g2_itemId=12841



http://www.opencockpits.com/modules.php?name=gallery2&g2_itemId=12838


.....................................................................

Var 0088, Link FSUIPC_IN, Offset $2898, Length 8, Numbers 0 // RIGHT_ALT
{
L0 = V0088
V0089 = TRUNC V0088
}

Var 0089, Link IOCARD_DISPLAY, Digit 6, Numbers 2 // 3 DISPLAYS OF MY PANNEL

Var 0090, Link FSUIPC_IN, Offset $2888, Length 8, Numbers 0 // LEFT_ALT
{
L0 = V0090
V0091 = TRUNC V0090
}

Var 0091, Link IOCARD_DISPLAY, Digit 3, Numbers 2 // 3 DISPLAYS OF MY PANNEL

Var 0092, Link FSUIPC_IN, Offset $2840, Length 8, Numbers 0 // BUS_VOLT
{
L0 = V0092
V0093 = TRUNC V0092
}

Var 0093, Link IOCARD_DISPLAY, Digit 0, Numbers 2 // 3 DISPLAYS OF MY PANNEL

ahwaz@live.com

regards

hossein


fordgt40

#1
Hossein

1) You do not need the "numbers" arguement in the FSUIPC_IN function

2) The line L0 = xxxx  in each variable does nothing and is not needed

3) You have the arguments for the display numbering wrong. Assuming that you have three displays of three digits each (as per your comment lines), then the sequence of display numbering and number of digits must match assuming that you have wired them sequentially  :)

I have amended your code accordingly, but have not tested it for syntax or operation. Try this

Var 0088, Link FSUIPC_IN, Offset $2898, Length 8 // RIGHT_ALT
{
V0089 = TRUNC V0088
}

Var 0089, Link IOCARD_DISPLAY, Digit 6, Numbers 3 // 3 DISPLAYS OF MY

PANNEL

Var 0090, Link FSUIPC_IN, Offset $2888, Length 8 // LEFT_ALT
{
V0091 = TRUNC V0090
}

Var 0091, Link IOCARD_DISPLAY, Digit 3, Numbers 3 // 3 DISPLAYS OF MY

PANNEL

Var 0092, Link FSUIPC_IN, Offset $2840, Length 8 // BUS_VOLT
{
V0093 = TRUNC V0092
}

Var 0093, Link IOCARD_DISPLAY, Digit 0, Numbers 3 // 3 DISPLAYS OF MY

PANNEL


If your centre display is only 2 digits then just change the "numbers" for that display to 2 and reduce any subsequent display DIGIT variable argument by 1

hossein54

Tank you very much for your help my problem  solved.

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate