Results 31 to 36 of 36
Thread: SIOC Pre compiler
-
02-26-2009, 02:43 PM #31
- Join Date
- Jul 2013
- Posts
- 917
Nico
This is becoming Pythonesque don`t you think?
Let us both respect our different systems, skills and needs and focus on moving forward.
Regards
David
-
02-26-2009, 02:58 PM #32
David,
You are talking chinese to me now
But I agree with you, it is time to stop, let us close this thread and go back to work.
Regards,
Nico
-
02-27-2009, 06:03 AM #33
Ian,
you dont understand this?
this is very easy to explain
Var 1 name CMDL Link FSUIPC_OUT Offset $8b0A Length 2
Var 2 name CMDSwitch Link IOCARD_SW Input 5 Type P // CMD L
{
&CMDL = &CMDSwitch
}
when this is the only lines in the SIOC script the SIOC program will do the following :
it will check all inputs at a high rate (let say 50 times per second). If the value in the
hardware of input 5 changes state it will change var 0002 from 0->1 or from 1->0.
When the var changes the defines script for Var 0002 will be executed and this will
copy the value of the input into var 0001. Since this variable is linked to an FSUIPC_OUTPUT the SIOC program will copy the var 0001 to the fsuipc offset 8b0A. So in 8b0a a 1 will be copied if you press input 5. the next time you press input 5 a 0 will be
set into offset 8b0A.
The site of project magenta (documentation) has an extensive list of all fsuipc offsets and there use.
Thats it.
Just take into consideration the SIOC script you write is only an input to a program wich runs in the background. Sioc itself will continuously check all hardware inputs, all fsuipc inputs that your script needs and when one of those variables change then the value
of those inputs (hw inputs/fsuipc inputs) is copied into there respective var xxxx.
When a var changes value then the script linked with this var will be executed. This script
can of course change one or more other vars and those changing vars can again change
other vars .... you see that this is an event driven program sequence. One event ( a change of a var) can lead to a chain of events....
there is little syntax possibilities in sioc. When an event happens you can use an IF THEN ELSE construction to decide what will happen depending on a value of a var, or of one of the three boolean values (C0 C1 C2) or one of the three real (real numbers) vars (L0 L1 L2)
Hope this explains a little.FS9+PM+AST+opencockpits
-
Post Thanks / Like - 2 Thanks, 0 Likes, 0 Dislikes
-
10-16-2009, 11:02 PM #34
Re: SIOC Pre compiler
John
System:
ASUS P5Q SE/R
Intel Q9550 O/C to 3.4 GHz
4 GB 1066 DDR2 RAM
300 GB WD 10,000 RPM Raptor SATA Drive
GeForce 8800 GT 512 KB RAM
Matrox TH2Go with three 19" Sumsung 940 BX
IR Track 4
-
10-17-2009, 04:09 AM #35
Re: SIOC Pre compiler
Hi John,
I'm afraid there is no offset in FSUIPC with state information about the Master Caution annunciator.
The only add-on I know off that makes that info available (via its SDK), is the Level-D 767.
-
Post Thanks / Like - 1 Thanks, 0 Likes, 0 Dislikesjmig thanked for this post
-
10-18-2009, 09:00 PM #36
Re: SIOC Pre compiler
John
System:
ASUS P5Q SE/R
Intel Q9550 O/C to 3.4 GHz
4 GB 1066 DDR2 RAM
300 GB WD 10,000 RPM Raptor SATA Drive
GeForce 8800 GT 512 KB RAM
Matrox TH2Go with three 19" Sumsung 940 BX
IR Track 4
Similar Threads
-
Sioc / PM
By mpl330 in forum OpenCockpits General DiscussionReplies: 6Last Post: 02-07-2010, 01:26 PM -
CNC compiler problem
By davek in forum Westozy's Mechanical EngineeringReplies: 1Last Post: 01-01-2010, 09:23 AM -
Help with SIOC please?
By Jake 747 400 in forum General Builder Questions All Aircraft TypesReplies: 13Last Post: 11-20-2009, 07:00 PM -
SIOC Help
By CessnaGuy in forum I/O Interfacing and HardwareReplies: 5Last Post: 10-25-2009, 10:00 AM -
SIOC for MIP?
By HondaCop in forum I/O Interfacing Hardware and SoftwareReplies: 17Last Post: 07-21-2009, 07:48 AM
Pretty Womans in your city
Find Sexy Womans from your city...