PDA

View Full Version : USB LED output board



jongas
03-26-2010, 04:59 PM
Hi everyone,

Can somebody post a copy of a script for the LED output board for me to see?

I have looked but cannot find any examples of a full script. I have also read Niko's site and I understand how to write a variable but its all the other bits that go on the script I want to take a peek at!

Thanks in advance to anyone who posts a copy for me to see!!

Regards

Jon

capetonian
03-26-2010, 06:17 PM
What do you want to do with the board? You need to know a basic "turn the LED on " " and turn it off" script and then modify them to suit your hardware and your glass cockpit software.

I use Prosim737 for my logics and my LED USB output script looks like this:



// These are the outputs connected to the first USBOutputs card
var 0663, Link IOCARD_OUT, Device 1, Output 63 // Cont CAB
var 0662, LINK IOCARD_OUT, Device 1, Output 62 // Bleed Trip Off L
var 0661, Link IOCARD_OUT, Device 1, Output 61 // Wing Body Overheat L
var 0660, Link IOCARD_OUT, Device 1, Output 60 // Wing Body Overheat R
var 0659, Link IOCARD_OUT, Device 1, Output 59 // Aft CAB
var 0658, Link IOCARD_OUT, Device 1, Output 58 // Bleed ALTN (Green)
var 0657, Link IOCARD_OUT, Device 1, Output 57 // Standby HYD Low Pressure
var 0656, Link IOCARD_OUT, Device 1, Output 56 // Bleed Trip Off R
var 0655, Link IOCARD_OUT, Device 1, Output 55 // Pack L
var 0654, Link IOCARD_OUT, Device 1, Output 54 // Pack R
var 0653, Link IOCARD_OUT, Device 1, Output 53 // Dual Bleed
var 0652, Link IOCARD_OUT, Device 1, Output 52 // FLT Control B Low Pressure
var 0651, Link IOCARD_OUT, Device 1, Output 51 // Standby HYD STDY Rudder On
var 0650, Link IOCARD_OUT, Device 1, Output 50 // Bleed Manual (Green)
var 0649, Link IOCARD_OUT, Device 1, Output 49 // Bleed Off Sched Descent
var 0648, Link IOCARD_OUT, Device 1, Output 48 // Fwd Cab
var 0647, Link IOCARD_OUT, Device 1, Output 47 // Standby HYD Low Quantity
var 0646, Link IOCARD_OUT, Device 1, Output 46 // FLT Control A Low Pressure
var 0645, Link IOCARD_OUT, Device 1, Output 45 // Equip Cooling Exhaust off
var 0644, Link IOCARD_OUT, Device 1, Output 44 // Emergancy Exit Lights Not Armed
var 0643, Link IOCARD_OUT, Device 1, Output 43 // Equip Cooling Supply off
var 0642, Link IOCARD_OUT, Device 1, Output 42 // Attend Call
//var 0635, Link IOCARD_OUT, Device 1, Output 35 //
var 0634, Link IOCARD_OUT, Device 1, Output 34 // 34 Yaw Damper
var 0633, Link IOCARD_OUT, Device 1, Output 33 // Auto Slat Fail
var 0632, Link IOCARD_OUT, Device 1, Output 32 // 32 Mach Trim Fail
//var 0630, Link IOCARD_OUT, Device 1, Output 30 //
//var 0629, Link IOCARD_OUT, Device 1, Output 29 //
//var 0628, Link IOCARD_OUT, Device 1, Output 28 //
//var 0627, Link IOCARD_OUT, Device 1, Output 27 //
//var 0626, Link IOCARD_OUT, Device 1, Output 26 //
//var 0625, Link IOCARD_OUT, Device 1, Output 25 //
//var 0624, Link IOCARD_OUT, Device 1, Output 24 //
//var 0623, Link IOCARD_OUT, Device 1, Output 23 //
//var 0622, Link IOCARD_OUT, Device 1, Output 22 //
//var 0621, Link IOCARD_OUT, Device 1, Output 21 //
//var 0620, Link IOCARD_OUT, Device 1, Output 20 //
//var 0619, Link IOCARD_OUT, Device 1, Output 19 //
//var 0618, Link IOCARD_OUT, Device 1, Output 18 //
//var 0617, Link IOCARD_OUT, Device 1, Output 17 //
//var 0616, Link IOCARD_OUT, Device 1, Output 16 //
//var 0615, Link IOCARD_OUT, Device 1, Output 15 //
//var 0614, Link IOCARD_OUT, Device 1, Output 14 //
//var 0613, Link IOCARD_OUT, Device 1, Output 13 //
//var 0612, Link IOCARD_OUT, Device 1, Output 12 //
//var 0611, Link IOCARD_OUT, Device 1, Output 11 //
//var 0610, Link IOCARD_OUT, Device 1, Output 10 //
//var 0609, Link IOCARD_OUT, Device 1, Output 09 //
//var 0608, Link IOCARD_OUT, Device 1, Output 08 //
//var 0607, Link IOCARD_OUT, Device 1, Output 07 //
//var 0606, Link IOCARD_OUT, Device 1, Output 06 //
//var 0605, Link IOCARD_OUT, Device 1, Output 05 //
//var 0604, Link IOCARD_OUT, Device 1, Output 04 //
//var 0603, Link IOCARD_OUT, Device 1, Output 03 //
//var 0602, Link IOCARD_OUT, Device 1, Output 02 //
//var 0601, Link IOCARD_OUT, Device 1, Output 01 //
//var 0600, Link IOCARD_OUT, Device 1, Output 00 //


Prosim does the rest of the work for me... so, to reiterate , .. what do you have connected to your PC? Mastercards, just the USB card?
What do you want to do with the LEDS?

kiek
03-26-2010, 06:21 PM
Hi,
Here my Level-D 767 Annunciators powered by the USB Outputs board (and lekseecon):
Nico Kaan


Var 704 Static
{
&O_EntryDoors = TESTBIT v704 0
&O_EmerDoors = TESTBIT v704 1
&O_CargoDoors = TESTBIT v704 2
&O_AccessDoors = TESTBIT v704 3

&O_CaptPitot = TESTBIT v704 4
&O_FOPitot = TESTBIT v704 5
&O_LauxPitot = TESTBIT v704 6
&O_RauxPitot = TESTBIT v704 7

&O_LAOA = TESTBIT v704 8
&O_RAOA = TESTBIT v704 9
&O_TAT = TESTBIT v704 10

&O_Spoilers = TESTBIT v704 11
&O_AilLock = TESTBIT v704 12
&O_StabTrim = TESTBIT v704 13
&O_UnsStabTrim = TESTBIT v704 14
&O_AutoSpBrk = TESTBIT v704 15
&O_RudRatio = TESTBIT v704 16
&O_AntiSkid = TESTBIT v704 17

}

Var 9001 name O_EntryDoors Link IOCARD_OUT Device 3 Output 63
Var 9002 name O_EmerDoors Link IOCARD_OUT Device 3 Output 62
Var 9003 name O_CargoDoors Link IOCARD_OUT Device 3 Output 61
Var 9004 name O_AccessDoors Link IOCARD_OUT Device 3 Output 60
Var 9005 name O_CaptPitot Link IOCARD_OUT Device 3 Output 59
Var 9006 name O_FOPitot Link IOCARD_OUT Device 3 Output 58
Var 9007 name O_LAOA Link IOCARD_OUT Device 3 Output 57
Var 9008 name O_RAOA Link IOCARD_OUT Device 3 Output 56
Var 9009 name O_LauxPitot Link IOCARD_OUT Device 3 Output 55
Var 9010 name O_RauxPitot Link IOCARD_OUT Device 3 Output 54
Var 9011 name O_TAT Link IOCARD_OUT Device 3 Output 53
Var 9012 name O_StabTrim Link IOCARD_OUT Device 3 Output 52
Var 9013 name O_Spoilers Link IOCARD_OUT Device 3 Output 51
Var 9014 name O_AutoSpBrk Link IOCARD_OUT Device 3 Output 50
Var 9015 name O_UnsStabTrim Link IOCARD_OUT Device 3 Output 49
Var 9016 name O_RudRatio Link IOCARD_OUT Device 3 Output 48
Var 9017 name O_AntiSkid Link IOCARD_OUT Device 3 Output 47
Var 9018 name O_AilLock Link IOCARD_OUT Device 3 Output 46