henri
02-01-2011, 01:48 PM
Hi i've been using phidget cards and real studio for some time but
now that it was time for a expansion I thought let me use the Opencockpit card.
And I can use some help. I want to manage some leds. The leds on or of depend on
more than 1 function.
Var 2, Link FSUIPC_IN Offset $3340, Length 4
var 3, Link FSUIPC_IN offset $092C, length 2
var 4, link FSUIPC_IN offset $3344, length 4 // need this one also
{
L0 = TESTBIT V2,14
if L0 = 0
{
&leds2 = 0
&leds3 = 0
}
else
L1 = TESTBIT V3,0
if L1 = 1
{
&Leds2 = 0
&leds3 = 0
}
else
{
&leds2 = 1
&leds3 = 1
&Leds4 = 1
}
}
var 5, name Leds2 link iocard_out, output 15
var 6, name Leds3 link iocard_out, output 13
I seem to miss something because it's not working. I hope some one can help
to show how to use more then 1 varaible to manage the led.
regards and thnx,
henri
now that it was time for a expansion I thought let me use the Opencockpit card.
And I can use some help. I want to manage some leds. The leds on or of depend on
more than 1 function.
Var 2, Link FSUIPC_IN Offset $3340, Length 4
var 3, Link FSUIPC_IN offset $092C, length 2
var 4, link FSUIPC_IN offset $3344, length 4 // need this one also
{
L0 = TESTBIT V2,14
if L0 = 0
{
&leds2 = 0
&leds3 = 0
}
else
L1 = TESTBIT V3,0
if L1 = 1
{
&Leds2 = 0
&leds3 = 0
}
else
{
&leds2 = 1
&leds3 = 1
&Leds4 = 1
}
}
var 5, name Leds2 link iocard_out, output 15
var 6, name Leds3 link iocard_out, output 13
I seem to miss something because it's not working. I hope some one can help
to show how to use more then 1 varaible to manage the led.
regards and thnx,
henri