Results 51 to 60 of 70
Thread: Interfacing a Basic ASI Gauge
-
06-20-2010, 06:53 AM #51
Re: Interfacing a Basic ASI Gauge
Jack,
This script does nothing ...
First you have to specify what you want to achieve and then you have to develop an algorithm doing that (using these Vars and maybe some others as well). You have to write SIOC code between curly braces attached to a Var otherwise nothing will happen at all ....
regards,
Nico
-
06-20-2010, 07:02 AM #52
Re: Interfacing a Basic ASI Gauge
Hi Nico,
As I said the script is not finished, I have to scale it yet.
I noticed on the previous page David (on one of his scripts) posted the line "L0 = &LeftDuctPress / 1.5"
I understand that line, except for the definition of "L0". The line means that, whatever L0 is, is that it is equal to the value of LeftDuctPress Offset divided by 1.5.
The line after that, "&Servo4 = L0 + 364", I udnerstand as the scaling of the servo. It is basically telling the servo that Zero is "+364", so that the gauge and "real" servo are in-sync (if that makes sense, pretty much making sure that both of them are zero).
If all that is correct, that means I understand about 85% of that SIOC script, I just need to know what L0 is, and then I can start to develop my own.
I'm finding this fun, learning SIOC is a challenge but I see how it can be rewarding. Still, I don't understand how everyone can learn SIOC when one of the tutorials is a dead link, and the manual is 6 years out of date!
Thankfully, your site does provide relief to an extent, I learnt how to program push-buttons and basic outputs (like LEDs) from you site.
-
06-20-2010, 07:14 AM #53
Re: Interfacing a Basic ASI Gauge
L0 is a internal integer/float variable, to be used in a script, see my HowTo page http://www.lekseecon.nl/howto.html#internalVars
Study the Help information in Config_sioc, it decribes each language feature of SIOC ...
Again, in my opion, you are too optimistic. I'd recommend to practice with SIOC scripts for easier tasks first (encoders, leds, and so on). Programming Servo's is risky if you do not understand it fully. Servo's can be blown up easily ...Last edited by kiek; 06-20-2010 at 07:21 AM.
-
06-20-2010, 07:21 AM #54
Re: Interfacing a Basic ASI Gauge
Last edited by kiek; 06-20-2010 at 07:24 AM.
-
06-20-2010, 08:59 AM #55
Re: Interfacing a Basic ASI Gauge
Nico, I'm referring to the SIOC interface has changed. It looks much more different to 2004.
Furthermore, I'm extremely please because I *think* I understand the L0 now.
Is this correct:
For example:
"v7 = v3 / 7 + v9" = WRONG, because more than one operation is happening in one line/statement
"L0 = v3 / 7
v7 = L0 + v9" = CORRECT, because you are using L0 as a "subtitute" to v3 / 7
Is that correct?
Also, a more practical example:
"L0 = &LeftDuctPress / 1.5
&Servo4 = L0 + 364"
=
"&Servo4 = &LeftDuctPress / 1.5 + 364" -> BUT this cannot be written as it is more than one operation.
-
06-20-2010, 09:19 AM #56
Re: Interfacing a Basic ASI Gauge
With 'SIOC interface' I believe you mean the 'tools'. If I'm right you are referring to the -now obsolete- GUI tool for programming IOCards.
The other option, SIOC as a language for programming IOCards, has not changed and if you are using the Notepad editor the 'tooling' also has not changed
-
06-20-2010, 09:21 AM #57
-
06-20-2010, 09:26 AM #58
Re: Interfacing a Basic ASI Gauge
Woooooo!
also, you say I should try programming rotary encoders. I think I know how to do this already, the following small script is for a Speed Selector on the A/P Panel, which ranges from 0 to 999 knots:
Var 6 Link IOCARD_ENCODER Input 43 Aceleration 3 Type 2
{
L0 = v6 * +1
v7 = ROTATE 0 999 L0
Is that correct?
-
06-20-2010, 10:03 AM #59
Re: Interfacing a Basic ASI Gauge
-
06-20-2010, 10:12 AM #60
- Join Date
- Jul 2013
- Posts
- 917
Re: Interfacing a Basic ASI Gauge
Jack
(posted before I saw Nico`s reply, but the message is still sound)
Sorry but no!
Remove the quotes before var 6
Add a curly bracket at the end of the code
Where is the definition for Var7? ie where does the output go to?
Sorry, but you are a bit like a spinning top bouncing off the walls
Slow down, follow Nico`s advice and try working simple examples through. For example did you try to compile this script, if you had, then errors would have been flagged. Learn the simple steps first - please
David
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
Hi...realize this has been a long time, but I'm heading down the path of building my own 777...
B777 Overhead Panel Design