Results 41 to 50 of 70
Thread: Interfacing a Basic ASI Gauge
-
06-19-2010, 08:23 PM #41
- Join Date
- Jan 2007
- Location
- NEW ZEALAND
- Posts
- 899
Re: Interfacing a Basic ASI Gauge
Hi Jack,
Welcome to the world of Sioc. David is correct, you really need to sit down and read thorughly the manuals provided by O/C. By reading all of their docs
you will get a better understanding of how all of this fits together. From your questions there appears many hole in your understanding. Believe me we all have gone thru this and will tell you that much satisfaction will be gained by better understanding.This will lead you to being able to dissect and modify others code to suit you. O/c forum site has a sub section of examples, when you better iunderstand SIOC this section will be invaluable .
Hope this helps, just remember there are many users here but first one has to get a basic grasp on what happens overall when one trys to interface hardware with fsim.
Rgds
Les
-
06-20-2010, 04:46 AM #42
Re: Interfacing a Basic ASI Gauge
I have sat through the entire SIOC tutorial, SIOC II is broken (dead link).
I have read the SIOC manual.
I know exactly what the "var" and "length" entires are, but I just don't know how you GET them (ie where).
Var is of course the variable, and length is the associated length entry appropriate to the PM offset (according to the SIOC tutorial).
Furthermore, I think a lack of FSUIPC resources is also a contributing factor. I have searched and searched for the "advanced users manual" which apparently provides a list of FSUIPC offsets, but I couldn't find it. So I downloaded FSInterragator, and managed to obtain the Offset code for IAS on the ASI, however still couldn't find the variable number or the relavent information to proceed further.
I have put substantial effort into trying to understand all the SIOC scripts mentioned in this thread, and I think going from zero knowledge to knowing how to properly scale and things is rather difficult.
The SIOC manual hasn't been updated since 2004, and still refers back to the very old SIOC versions, very, very confusing.
The SIOC PowerPoint presentation teaches me nothing (I actually watched it twice previous to making this thread), it only explains things like where SIOC is used, what it does, when to use it, not HOW or what to do.
It is extraordinarily difficult for me to understand all this when I have absolutely no scripting/programming experience.
-
06-20-2010, 05:07 AM #43
- Join Date
- Jul 2013
- Posts
- 917
Re: Interfacing a Basic ASI Gauge
Jack
Progress
The var number is your choice you can have Var 0001, Var 9999 etc etc - you just cannot have two of the same number
Do you have a registered copy of FSUIPC - the list of offsets is in it
Read this link to understand how to access information from FSUIPC
http://www.lekseecon.nl/howto.html#readFSUIPC
David
-
06-20-2010, 05:20 AM #44
Re: Interfacing a Basic ASI Gauge
Hiya David,
When you say in FSUIPC, are you referring to in-sim FSUIPC or the provided manuals?
According to the link to Nicos site, the offsets are in the "Programmers Manual", I will try and find this.
-
06-20-2010, 06:01 AM #45
- Join Date
- Jul 2013
- Posts
- 917
Re: Interfacing a Basic ASI Gauge
Jack
Do you have a registered copy of FSUIPC - http://www.schiratti.com/dowson.html
I am not certain what is inside Nico`s "Programmers Manual" , may well be fine, but the authority is the FSUIPC list of offsets
David
-
06-20-2010, 06:07 AM #46
Re: Interfacing a Basic ASI Gauge
I've had a go at making my own SIOC script using the built-in Config_SIOC tool.
Take a look at this:
As you can see, I've inputted all necessary information... But when I hit okay, nothing happens! Shouldn't a line of SIOC script appear?
By the way, of course these are not the true values, I am just making a default example. The L, C, and R values will change along with the Device number, etc.
Jack
-
06-20-2010, 06:20 AM #47
- Join Date
- Jul 2013
- Posts
- 917
Re: Interfacing a Basic ASI Gauge
Jack
Where is your script? You should make up scripts using a text editor and then complie using sioc. Please read the Howto section on Nico`s site - http://www.lekseecon.nl/configsioc.html.
David
-
06-20-2010, 06:32 AM #48
Re: Interfacing a Basic ASI Gauge
I believe that in this case you should not try to write a script for a Servo, much to dificult for a beginner...
The FSUIPC for programmers manual is in the FSUIPC SDK (to be downloaded from Pete Dowson's page)
If you push OK in the GUI tool of Config_sioc you wil have add a line to the SIOC script. You can get that script by Exporting it to a txt file. In your example you only have defined the Servo definition var, you should also write an algorithm doing someting with that var. That is the difficult part...
And, like fordgt40 says, it is much easier to use the Notepad editor and to write the script using that text editor, after that comple it with config_sioc.exe.Last edited by kiek; 06-20-2010 at 06:48 AM.
-
06-20-2010, 06:36 AM #49
Re: Interfacing a Basic ASI Gauge
Okay Nico, I will try that.
-
06-20-2010, 06:47 AM #50
Re: Interfacing a Basic ASI Gauge
Right, I've poured all of my knowledge into the following very simple script.
Whilst it does bear similarities to other scripts posted here, I did make this one completely by myself.
It is not finished, I have not defined the scaling or anything like that... One step at a time.
Code:// ***************************************************************************** // * Config_SIOC ver 3.7B1 - By Manolo Vélez - www.opencockpits.com // ***************************************************************************** // * FileName : sioc.txt // * Date : 20/06/2010 Var 9004, name Servo4, Link USB_SERVOS, Output 4, PosL 1, PosC 511, PosR 1023, Type 2 // Servo Motor Var 9005, name IndAirSpeed, Link FSUIPC_INOUT, Offset $02BC, Length 4 // Value of Indicated Air Speed * 128
Similar Threads
-
Interfacing an Exhaust Gas Temperature Gauge
By Mike.Powell in forum Interfacing Real Aviation PartsReplies: 8Last Post: 11-30-2011, 07:07 AM -
Looking for some basic help??
By Robert Byrne in forum General Builder Questions All Aircraft TypesReplies: 4Last Post: 12-22-2010, 05:48 AM -
FSBUS Dll and Visual Basic
By Anderson/SBSP in forum I/O Interfacing and HardwareReplies: 10Last Post: 02-20-2010, 11:37 PM -
USB basic help
By Redbirdman in forum Computer Hardware SetupReplies: 6Last Post: 03-18-2009, 05:44 PM -
737 OHD Systems basic IRS logic
By eudoniga in forum PMSystemsReplies: 5Last Post: 06-09-2008, 03:42 AM