PDA

View Full Version : SIOC Script - "powerful FS-gauge-Start"



aeromax
03-04-2012, 11:17 AM
Hi everyone,

a quick and easy question, so i hope. Maybe someone has this problem or ever had observed

Using OC- ServoCard and SIOC-Script.

The sioc-scripts are already done; e.g. using ASI,VSI,Flap,EGT... and working perfect !. But

If i start the Simulator (FS2004) and then the SIOC at second, the ASIīs (using two of them) moving fast up to the end and stay there at needles-stop-pin. The servo-motor continues, slight hum is heard.


if i open the SIOC-Card-test.exe i can bring them down.

But with next entry, maybe flap pos. 1; the needles running up again.

So therefore i have to make a takeoff-run until the ASIīs begin to start around 60kts; they come back and drive normal (take on ride from 60kts then). Now everything works.

I have to do this everytime -only- at new Start of FS2004 and SIOC- Connection.
The same if the Aircraft is on the Gate and if i gonna taxi out. Always that impulse.

Seems to me that the ASI gauges get a weird fs-impulse a the beginning.

Has anyone an idea or solution what that can be

Thanks - Cheers

fordgt40
03-04-2012, 12:21 PM
Have you checked what values are being sent to the gauges at startup? Using the IOCPConsole will show you if an out of range value is being sent to the gauge. If not done already, you may need to set an initial value for the gauges at startup using the Var 0 construct.

David

aeromax
03-04-2012, 02:24 PM
Hi David,

thanks for fast responding. so i watched before at IOCPConsole through LogON - but thereīs a big number of ranges. further on iīm not sure how to solve that. in the sioc- script i think isnīt a usefuel var 0 construct. under IOCPConsole just says e.g. V0005 (valor dec) 0. so i have to search again.

thanks a lot, appreciated,

max

fordgt40
03-04-2012, 04:48 PM
Max

I just compiled and ran that code you sent me for the IAS and it seemed ok with no out of range values for the IAS gauge
Try cutting back your code to just the elements for the IAS gauge and take it from there.

David

aeromax
03-04-2012, 05:14 PM
Perhaps there is a problem in the interplay with the other gauges. But I can remember that this also occurred previously in single-handedly. So i gonna try few more variants. At this point i really donīt know why that occurs.

Thank You David, stay tuned !.

Cheers

aeromax
03-05-2012, 08:53 AM
iīm back and I've tried everything now.

i have changed the positions of gauges with each other in the script. therefore replaced numbers and assignments. also i tried the asiīs alone and then they work, but not with the others (other gauges) in one script. still the bug occurs by open fsSim2004 and opening SIOC.exe afterwards. donīt know which internal interface of that impulse is responsible. think there is no change in future about.

same can be said that there are not necessarily only the ASIīs - think thatīs a general impulse problem, because the others coming up a little bit - but not so bad.

using: latest SIOC-Version 4,01 and reg.copy of FSUIPC 3.989x

what a crap.

Cheers

fordgt40
03-05-2012, 09:34 AM
Max

Keep at it :)

As you know that the ASI code and gauge work properly on their own, then the problem lies in the rest of the code somewhere. Try adding one extra gauge at a time until the problem shows up again. The we can examine that code and search for the problem.

Regards

David

aeromax
03-05-2012, 02:00 PM
Thanks David.

So iīll try. But i can also remember that the EGTīs have to come at first in the script- otherwise want not work (e.g. at the end or somewhere inside). Next place/step is the third and fourth row and then the problem exist/comes up as described.

So for better understanding īll send you the script at PM. Thanks for your help, David.

Best wishes, Max. :wink:

fordgt40
03-05-2012, 03:36 PM
Max

Did you write the script yourself or get it from somewhere else? If it is your script then it should be a simple matter to code each gauge separately and check that they work before joining them together. I am convinced that that there is an error in the code causing your problems. Sorry, but just about to go out, so cannot respond again today

Regards

David

aeromax
03-05-2012, 04:26 PM
David

Thanks for help. It have time and it doesnīt matter if youīre not answering today. Some Information i compiled and these have been sent already. So may gonna find that bug, crap or whatever....:wink:

thanks, cheers

Max

fordgt40
03-06-2012, 05:34 AM
Max

There was an error in your second script - you had duplicated var 0005 and var 0006, indeed it would not compile!! I corrected the errors by renumbering the variables in sequence. The script worked ok with no gauge "shoot up" on the ASI and the EGT gauge worked correctly when the engine was started

David

aeromax
03-06-2012, 10:58 AM
David

Thanks for letting me know. Indeed thatīs true and i gonna have a look out. `ll inform you later on.

Thank You, great. Stay tuned

Cheers, Max.

aeromax
03-06-2012, 11:45 AM
David

I once looked at it. Indeed, that Var was/is duplicated due to make an example to show thatīs equal which script i do use as follow. So what i want to say is, that i can use that last one or that above to bring them at Var0005 and Var0006. In my using script (i sent already) all be fine about Var and assignments/ numbering. So where ever the hook is - i donīt know.

So by time just have a look at it. Thanks for that.

Cheers

fordgt40
03-06-2012, 12:35 PM
Max

Ok a misunderstanding over what you had sent me:)

I have run your latest script, the one you are using and which gives the problem. I find that it compiles ok and also shows the correct values for IAS in the IOCPConsole when the aircraft is stationary and at boot up.

Are you sure that your servos are rotating in the right direction? perhaps a zero IAS speed is showing up as a maximum on your gauge if it is rotating in the wrong direction? Forgive me raising this but I see no evident problem with your script, hence questioning the hardware

Try putting different values into var 0005 via the IOCPConsole and see how the gauge moves.

Regards

David

aeromax
03-06-2012, 12:43 PM
David

yeep, thanks for that information. so i cannot find any bug in the script either. maybe i turn the servo (without touching needle) back 180°. At first gonna put different values into var 0005 via Console and īll have a look how it moves.

īll keep you informed.

Regards

Max

aeromax
03-06-2012, 12:45 PM
so but the question is, why they work perfect as stand alone ones..:shock:

fordgt40
03-06-2012, 01:19 PM
Max

On my machine, with all the scripts that you sent me, the VSI value is always 0 at the start, that is why I question your servo rotation

David

aeromax
03-06-2012, 01:42 PM
Max

On my machine, with all the scripts that you sent me, the VSI value is always 0 at the start, that is why I question your servo rotation

David

so it do not depend on servo rotation - i tried it now - 180° back without needle - no way - same bug.

so use just the last script of sioc and think about thatīs equal which gauge i gonna use at 0005 or 0006 after the ASIīs, always the same speed up problem. further iīll give you a shot of iocpconsole while gauges are running 180° and back to 60kts. after speeding up the aircraft.

what a crap. thanks a lot and donīt worry about.

cheers, max

fordgt40
03-06-2012, 01:49 PM
Max

So there is no doubt, can you be a bit clearer on what you did and the result?
If your full scale movement is say 400knots, did you enter 100, 200, 300 and 400 into var 0005 via the IOCPConsole. If so, how did the needle move for each value?

David

aeromax
03-06-2012, 02:05 PM
Var 0005 IOCPConsole

100 = 090
200 = 120
300 = 150
400 = 180

aeromax
03-06-2012, 02:23 PM
so i tested now. if i use the iocpconsole btw flight-sim can use the gauges - therefore do not have to start the test.exe to bring them back. further tests going on...

regards

fordgt40
03-06-2012, 02:24 PM
Max

Thanks, so the rotation is ok. One last question, when you first run sioc what value do you get for var 0005 in the IOCPConsole?

David

aeromax
03-06-2012, 02:32 PM
Max

Thanks, so the rotation is ok. One last question, when you first run sioc what value do you get for var 0005 in the IOCPConsole?

David

#5 - DEC VALUE is 0 !

aeromax
03-06-2012, 02:33 PM
so if i use value 20 for var0005 the needle turning back to 60kts on dial.

fordgt40
03-06-2012, 02:55 PM
Max

I am beginning to think that your code is ok, but there is something odd with the servo
A long shot - try removing the argument "Type 2" from your USBservos variable definition as it is not implemented yet, according to OC

David

fordgt40
03-06-2012, 02:58 PM
Max

Just come across a sioc script for servos which uses the argument Type 1 !!!! Try that as well :p

aeromax
03-06-2012, 03:36 PM
david

talking about that ?

1: .......Output 1, PosL 0, PosC 562, PosR 988, Type 2

2: .......Output 3, PosL 0, PosC 512, PosR 557, Type 2

fordgt40
03-06-2012, 04:07 PM
Max

Yes try Type 1 and then try removing the Type argument

Also, I recall elsewhere on this forum advice that you should not define two variables to the same FSUIPC offset! You have both IAS and ASI variables linked to the same FSUIPC offset Try temporarily removing the ASI code from your script and see if this makes any difference.
Beginning to run out of ideas now :)

David

aeromax
03-06-2012, 04:08 PM
david

so it doesnīt matter what ever i change.

if i change to nothing instead Type 2

or

if i change to Type 1

always the same speed up

Cheers

aeromax
03-06-2012, 04:10 PM
Max

Yes try Type 1 and then try removing the Type argument

Also, I recall elsewhere on this forum advice that you should not define two variables to the same FSUIPC offset! You have both IAS and ASI variables linked to the same FSUIPC offset Try temporarily removing the ASI code from your script and see if this makes any difference.
Beginning to run out of ideas now :)

David

ok. īll do and keep you informed.

mmh, that should mean, thatīs not possible to use an ASI maybe with one backup-ASI in the Cockpit ?? letīs see what happend

fordgt40
03-06-2012, 04:13 PM
Max

No, you can use both gauges, just need to change the coding slightly. Lets see what happens

David

aeromax
03-06-2012, 04:24 PM
david

uups thatīs very weird, indeed.

so first i removed that ASI -script (placed on Servocard 3) --> no difference; also speeding up

so then i removed that IAS -script (placed onServocard 1) --> also no difference; speeding up although it is not driven according to script; häh ? how can that be ??

the names ASI and IAS i had to do - because otherwise also no work (if itīs the same: IAS and IAS)

thatīs very weird

regards

fordgt40
03-06-2012, 04:33 PM
Max

I should check again your connections from the gauges to the servo card and the numbers you have given them in sioc.

David

aeromax
03-06-2012, 04:36 PM
david

uuuups, even if i remove both speedindicators - thatīhappens ?????

thatīs crazy

cheers

fordgt40
03-06-2012, 04:49 PM
Have you rechecked your connections as suggested?

aeromax
03-06-2012, 05:00 PM
David

yes - rechecked - but iīll do again...wondering that the servos running up while opening the sim or start sioc - even the speedindicators are removed. maybe i have to rename all again - just cut out from script. maybe thatīs why.

so īll keep you informed.

thanks a lot for your work, david

cheers

aeromax
03-06-2012, 06:27 PM
So all is rechecked and and numbered exactly. the positions in the script and on the card are identical.

thanks again, regards