Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Current Lvar list

Featured Replies

Cockpit developers :- Has anyone got an up-to-date Lvar list ( ideally as of latest Hotfix) for the 737NGX they can share, -- "pretty please"

Here's what I use with LINDA

-- EMPTY TEMPLATE ---- Fill with what functions you need -- -- ## System functions ##function InitVars ()	-- uncomment to disable display	AutopilotDisplayBlocked ()end-- ## Combo functions ##function NGX_AP_CRS1_____CRS2_inc ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_CRS1_inc ()else  NGX_AP_CRS2_inc ()endendfunction NGX_AP_CRS1_____CRS2_dec ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_CRS1_dec ()else  NGX_AP_CRS2_dec ()endendfunction NGX_AP_SPD_____AUTOBRAKE_inc ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_SPD_inc()else  NGX_AUTOBRAKE_inc()endendfunction NGX_AP_SPD_____AUTOBRAKE_dec ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_SPD_dec()else  NGX_AUTOBRAKE_dec()end endfunction NGX_ALT_INTV_____modeALT()	mode = ipc.get("USERmode")if mode == 1 or mode == nil then    	ipc.macro("NGX: ALT INTV")else    	modeALT = ipc.get("modeALT")    	if modeALT == nil or modeALT == 1 then        	ipc.set("modeALT", 2)	else        	ipc.set("modeALT", 1)    	endendendfunction NGX_AP_ALT_____CRZ_ALT_inc ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_ALT_inc ()else    	modeALT = ipc.get("modeALT")    	if modeALT == nil or modeALT == 1 then        	NGX_CRZ_Alt_Inc ()    	else        	NGX_LND_Alt_Inc ()    	endendendfunction NGX_AP_ALT_____CRZ_ALT_dec ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_ALT_dec()	else    	modeALT = ipc.get("modeALT")    	if modeALT == nil or modeALT == 1 then        	NGX_CRZ_Alt_Dec ()    	else        	NGX_LND_Alt_Dec ()    	endendendfunction NGX_AP_VS_____TCAS_inc ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_VS_inc ()else    	NGX_TCAS_Inc()endendfunction NGX_AP_VS_____TCAS_dec ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_VS_dec()else    	NGX_TCAS_Dec()endendfunction NGX_AP_HDG_____BANK_LIM_inc ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_HDG_inc ()else    	NGX_BANK_LIM_Inc ()endendfunction NGX_AP_HDG_____BANK_LIM_dec ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_HDG_dec ()else    	NGX_BANK_LIM_Dec()endend function NGX_AP_SPD_INTV_____AP_IAS_MACH ()mode = ipc.get("USERmode")if mode == 1 then    	NGX_AP_SPEED_INTV()else    	NGX_AP_IAS_MACH()endend-- ## EFIS ###############function NGX_EFIS_Minim_inc ()	ipc.macro("NGX: MINS+")	--ipc.macro("NGX: MINS+")endfunction NGX_EFIS_Minim_dec ()	ipc.macro("NGX: MINS-")	--ipc.macro("NGX: MINS-")endfunction NGX_EFIS_Minim_Baro ()	ipc.control(69988, 536870912)	--ipc.macro("NGX: MINS BARO")	--ipc.control(69988, 16384)endfunction NGX_EFIS_Minim_Radio ()	ipc.control(69988, 536870912)	--ipc.macro("NGX: MINS RADIO")	--ipc.control(69988, 8192)endfunction NGX_EFIS_Minim_RST ()	ipc.control(69989, 536870912)	ipc.control(69989, 131072)end  function NGX_EFIS_Baro_inc ()--ipc.control(69997, 131072)	ipc.macro("NGX: BARO+")endfunction NGX_EFIS_Baro_dec ()--ipc.control(69997, 536870912)	ipc.macro("NGX: BARO-")endfunction NGX_EFIS_Baro_INCHES ()	ipc.control(69998, 536870912)	--ipc.control(69998, 8192)endfunction NGX_EFIS_Baro_HPA ()	ipc.control(69998, 536870912)	--ipc.control(69998, 16384)endfunction NGX_EFIS_Baro_STD ()	ipc.control(69999, 536870912)	ipc.control(69999, 131072)end function NGX_EFIS_NDMode_inc ()	ipc.control(69991, 16384)endfunction NGX_EFIS_NDMode_dec ()	ipc.control(69991, 8192)endfunction NGX_EFIS_NDMode_CTR ()	ipc.control(69992, 536870912)	ipc.control(69992, 131072)end function NGX_EFIS_NDRange_inc ()	ipc.control(69993, 16384)endfunction NGX_EFIS_NDRange_dec ()	ipc.control(69993, 8192)endfunction NGX_EFIS_NDRange_TFC ()	ipc.control(69994, 536870912)	ipc.control(69994, 131072)end function NGX_EFIS_FPV ()	ipc.control(69995, 536870912)	ipc.control(69995, 131072)endfunction NGX_EFIS_MTRS ()	ipc.control(69996, 536870912)	ipc.control(69996, 131072)endfunction NGX_EFIS_VOR1 ()	ipc.control(69990, -2147483648)	ipc.control(69990, 524288)endfunction NGX_EFIS_ADF1 ()	ipc.control(69990, 536870912)	ipc.control(69990, 131072)endfunction NGX_EFIS_VOR2 ()	ipc.control(70000, -2147483648)	ipc.control(70000, 524288)endfunction NGX_EFIS_ADF2 ()	ipc.control(70000, 536870912)	ipc.control(70000, 131072)endfunction NGX_EFIS_WXR ()	ipc.control(70001, 536870912)	ipc.control(70001, 131072)endfunction NGX_EFIS_STA ()	ipc.control(70002, 536870912)	ipc.control(70002, 131072)endfunction NGX_EFIS_WPT ()	ipc.control(70003, 536870912)	ipc.control(70003, 131072)endfunction NGX_EFIS_ARPT ()	ipc.control(70004, 536870912)	ipc.control(70004, 131072)endfunction NGX_EFIS_DATA ()	ipc.control(70005, 536870912)	ipc.control(70005, 131072)endfunction NGX_EFIS_POS ()	ipc.control(70006, 536870912)	ipc.control(70006, 131072)endfunction NGX_EFIS_TERR ()	ipc.control(70007, 536870912)	ipc.control(70007, 131072)end -- ## Autopilot ############### function NGX_AP_FD1_toggle ()	ipc.control(70010, 536870912)	ipc.control(70039, 536870912)	ipc.control(70010, 131072)endfunction NGX_AP_CMDA_toggle ()	ipc.control(70034, 536870912)	ipc.control(70034, 131072)endfunction NGX_AP_CMDB_toggle ()	ipc.control(70035, 536870912)	ipc.control(70035, 131072)endfunction NGX_AP_ATHR_toggle ()	ipc.control(70012, 536870912)	ipc.control(70012, 131072)endfunction NGX_AP_MASTER_toggle ()	ipc.control(70038, 536870912)	ipc.control(70038, 131072)endfunction NGX_ATHR_soft_disconnect ()	ipc.writeLvar('ngx_switch_682_a', 100);	ipc.control(65860, 536870912)	ipc.sleep(150);	ipc.writeLvar('ngx_switch_682_a', 0);endfunction NGX_AP_soft_disconnect ()	ipc.writeLvar('ngx_switch_1004_a', 100);	ipc.control(65580, 536870912)	ipc.sleep(150);	ipc.writeLvar('ngx_switch_1004_a', 0);endfunction NGX_AP_TOGA ()	ipc.control(65861, 536870912)end-- ## Autopilot Dials ###############function NGX_AP_CRS1_inc ()	ipc.control(70008, 16384)endfunction NGX_AP_CRS1_dec ()	ipc.control(70008, 8192)endfunction NGX_AP_CRS2_inc ()	ipc.control(70041, 16384)endfunction NGX_AP_CRS2_dec ()	ipc.control(70041, 8192)endfunction NGX_AP_SPD_inc ()ipc.control(70016, 16384)endfunction NGX_AP_SPD_dec ()ipc.control(70016, 8192)endfunction NGX_AP_HDG_inc ()	ipc.control(70022, 16384)endfunction NGX_AP_HDG_dec ()	ipc.control(70022, 8192)endfunction NGX_AP_Bank_inc ()	ipc.control(70021, -2147483648)	ipc.control(70021, 524288)endfunction NGX_AP_Bank_dec ()	ipc.control(70021, 536870912)	ipc.control(70021, 131072)endfunction NGX_AP_ALT_inc ()	ipc.control(70032, 16384)endfunction NGX_AP_ALT_dec ()	ipc.control(70032, 8192)endfunction NGX_AP_VS_inc ()	ipc.control(70033, 8192)endfunction NGX_AP_VS_dec ()	ipc.control(70033, 16384)end-- ## Autopilot knobs ###############function NGX_AP_N1_toggle ()	ipc.control(70013, 536870912)	ipc.control(70013, 131072)endfunction NGX_AP_Speed_toggle ()	ipc.control(70014, 536870912)	ipc.control(70014, 131072)endfunction NGX_AP_CO_toggle ()	ipc.control(70015, 536870912)	ipc.control(70015, 131072)endfunction NGX_AP_SPEED_INTV ()	ipc.macro("NGX: SPD INTV")	--ipc.control(69999, 536870912)	--ipc.control(70019, 131072)endfunction NGX_AP_IAS_MACH ()	ipc.macro("NGX: IAS MACH")	--ipc.macro("NGX: IAS MACH1")endfunction NGX_AP_VNAV_toggle ()	ipc.control(70018, 536870912)	ipc.control(70018, 131072)endfunction NGX_AP_LVLCHG_toggle ()	ipc.control(70023, 536870912)	ipc.control(70023, 131072)endfunction NGX_AP_HDGSel_toggle ()	ipc.control(70024, 536870912)	ipc.control(70024, 131072)endfunction NGX_AP_LNAV_toggle ()	ipc.control(70029, 536870912)	ipc.control(70029, 131072)endfunction NGX_AP_VORLOC_toggle ()	ipc.control(70028, 536870912)	ipc.control(70028, 131072)endfunction NGX_AP_APP_toggle ()	ipc.control(70025, 536870912)	ipc.control(70025, 131072)end function NGX_AP_ALThold_toggle ()	ipc.control(70026, 536870912)	ipc.control(70026, 131072)endfunction NGX_AP_VS_toggle ()	ipc.control(70027, 536870912)	ipc.control(70027, 131072)endfunction NGX_AP_CWSA_toggle ()	ipc.control(70036, 536870912)	ipc.control(70036, 131072)endfunction NGX_AP_CWSB_toggle ()	ipc.control(70029, 536870912)	ipc.control(70029, 131072)end -- ## Cockpit lights ###############function NGX_DomeFLOOD_TOGGLE ()	df = ipc.get("domeFlood")	if df == nil or df == 0 then    	ipc.control(69890, 536870912)    	ipc.set("domeFlood", 1)	else    	ipc.control(69890, -2147483648)    	ipc.set("domeFlood", 0)	endendfunction NGX_DomeFLOOD_offDIM ()	ipc.control(69890, -2147483648)end function NGX_DomeFLOOD_offBRIGHT ()	ipc.control(69890, 536870912)endfunction NGX_PedestalFLOOD_inc ()	ipc.control(70388, 16384)endfunction NGX_PedestalFLOOD_dec ()	ipc.control(70388, 8192)endfunction NGX_PanelFLOOD_inc ()	ipc.control(69969, 16384)endfunction NGX_PanelFLOOD_dec ()	ipc.control(69969, 8192)endfunction NGX_MCPFLOOD_inc ()	ipc.control(69970, 16384)endfunction NGX_MCPFLOOD_dec ()	ipc.control(69970, 8192)end  function NGX_OVHlight_inc ()	ipc.control(69727, 16384)endfunction NGX_OVHlight_dec ()	ipc.control(69727, 8192)endfunction NGX_CBlight_inc ()	ipc.control(69726, 16384)endfunction NGX_CBlight_dec ()	ipc.control(69726, 8192)endfunction NGX_Pedestallight_inc ()	ipc.control(70389, 16384)endfunction NGX_Pedestallight_dec ()	ipc.control(70389, 8192)endfunction NGX_PanellightL_inc ()	ipc.control(69960, 16384)endfunction NGX_PanellightL_dec ()	ipc.control(69960, 8192)endfunction NGX_PanellightR_inc ()	ipc.control(70142, 16384)endfunction NGX_PanellightR_dec ()	ipc.control(70142, 8192)endfunction NGX_AllPanellights_inc ()for zoom = 0, 2, 1 do  NGX_PanellightR_inc ()  NGX_PanellightL_inc ()  NGX_Pedestallight_inc ()  NGX_CBlight_inc ()  NGX_OVHlight_inc ()   NGX_PanellightR_inc ()  NGX_PanellightL_inc ()  NGX_Pedestallight_inc ()  NGX_CBlight_inc ()  NGX_OVHlight_inc ()   NGX_PanellightR_inc ()  NGX_PanellightL_inc ()  NGX_Pedestallight_inc ()  NGX_CBlight_inc ()  NGX_OVHlight_inc ()endendfunction NGX_AllPanellights_dec ()for zoom = 0, 2, 1 do  NGX_PanellightR_dec ()  NGX_PanellightL_dec ()  NGX_Pedestallight_dec ()  NGX_CBlight_dec ()  NGX_OVHlight_dec ()  NGX_PanellightR_dec ()  NGX_PanellightL_dec ()  NGX_Pedestallight_dec ()  NGX_CBlight_dec ()  NGX_OVHlight_dec ()  NGX_PanellightR_dec ()  NGX_PanellightL_dec ()  NGX_Pedestallight_dec ()  NGX_CBlight_dec ()  NGX_OVHlight_dec ()endendfunction NGX_AllFLOOD_inc ()	for zoom = 0, 2, 1 do    	NGX_PedestalFLOOD_inc ()    	NGX_PanelFLOOD_inc ()    	NGX_MCPFLOOD_inc ()    	NGX_PedestalFLOOD_inc ()    	NGX_PanelFLOOD_inc ()    	NGX_MCPFLOOD_inc ()    	NGX_PedestalFLOOD_inc ()    	NGX_PanelFLOOD_inc ()    	NGX_MCPFLOOD_inc ()	endendfunction NGX_AllFLOOD_dec ()for zoom = 0, 2, 1 do  NGX_PedestalFLOOD_dec ()  NGX_PanelFLOOD_dec ()  NGX_MCPFLOOD_dec ()  NGX_PedestalFLOOD_dec ()  NGX_PanelFLOOD_dec ()  NGX_MCPFLOOD_dec ()  NGX_PedestalFLOOD_dec ()  NGX_PanelFLOOD_dec ()  NGX_MCPFLOOD_dec ()endend-- ## Lights ###############function NGX_LLFixed_on ()	ipc.macro("NGX: FIXED L")	ipc.macro("NGX: FIXED R")	--ipc.control(69746, 536870912)	--ipc.control(69745, 536870912)endfunction NGX_LLFixed_off ()	ipc.macro("NGX: FIXED L")	ipc.macro("NGX: FIXED R")	--ipc.control(69746, -2147483648)	--ipc.control(69745, -2147483648)endfunction NGX_LLFixedR_on ()	ipc.control(69746, 536870912)endfunction NGX_LLFixedR_off ()	ipc.control(69746, -2147483648)end function NGX_LLFixedL_on ()	ipc.control(69745, 536870912)endfunction NGX_LLFixedL_off ()	ipc.control(69745, -2147483648)endfunction NGX_LLRight_on ()	ipc.control(69744, 536870912)endfunction NGX_LLRight_off ()	ipc.control(69744, -2147483648)endfunction NGX_LLLeft_on ()	ipc.control(69743, 536870912)endfunction NGX_LLLeft_off ()	ipc.control(69743, -2147483648)endfunction NGX_LL_Inbrd_on ()	ipc.control(69744, 536870912)	ipc.control(69743, 536870912)	--ipc.control(69743, 536870912)	--ipc.control(69743, 536870912)endfunction NGX_LL_Inbrd_off ()	ipc.control(69744, -2147483648)	ipc.control(69743, -2147483648)	--ipc.control(69743, -2147483648)	--ipc.control(69743, -2147483648)endfunction NGX_LLRight_2xon ()	ipc.control(69744, 536870912)	--_sleep(200, 500)	ipc.control(69744, 536870912)endfunction NGX_LLRight_2xoff ()	ipc.control(69744, -2147483648)	--_sleep(200, 500)	ipc.control(69744, -2147483648)endfunction NGX_LLLeft_2xon ()	ipc.control(69743, 536870912)	--_sleep(200, 500)	ipc.control(69743, 536870912)endfunction NGX_LLLeft_2xoff ()	ipc.control(69743, -2147483648)	--_sleep(200, 500)	ipc.control(69743, -2147483648)end function All_LL_Toggle ()	--ii = ipc.readUW(0x0D0C)	--ii = ipc.clearbitsUW(0x0D0C, 0)	n = ipc.readUW(0x0D0C)	--ipc.log("1 --- " .. n)	n = logic.And(n, 4)	--ipc.log("2 --- " .. n)	--ll = ipc.get("landingLights")	--if ll == nil or ll == 0 then	if n == 0 then    	ipc.control(69742, 536870912)    	ipc.set("landingLights", 1)	else    	ipc.control(69742, -2147483648)    	ipc.set("landingLights", 0)	endendfunction All_LL_on ()	ipc.control(69742, 536870912)	--NGX_LLRight_2xon ()	--NGX_LLLeft_2xon ()	--NGX_LLFixedR_on ()	--_sleep(200, 400)	--NGX_LLFixedL_on ()endfunction All_LL_off ()	ipc.control(69742, -2147483648)	--NGX_LLRight_2xoff ()	--NGX_LLLeft_2xoff ()	--NGX_LLFixedR_off ()	--_sleep(200, 400)	--NGX_LLFixedL_off ()end function NGX_RWLightL_toggle ()	ipc.control(69747, 536870912)endfunction NGX_RWLightR_toggle ()	ipc.control(69748, 536870912)endfunction NGX_Runway_Lights_toggle ()	ipc.control(69747, 536870912)	ipc.control(69748, 536870912)endfunction NGX_Taxi_toggle ()	ipc.control(69749, 536870912)endfunction NGX_RWandTaxi_toggle ()	NGX_RWLightL_toggle ()	_sleep(200, 400)	NGX_RWLightR_toggle ()	_sleep(200, 400)	NGX_Taxi_toggle ()endfunction NGX_BothRWlights_toggle ()	NGX_RWLightL_toggle ()	_sleep(200, 400)	NGX_RWLightR_toggle ()end function NGX_Logo_toggle ()	ipc.control(69754, 536870912)endfunction NGX_NAV_on ()	ipc.control(69755, 536870912)endfunction NGX_Strobe_on ()	ipc.control(69755, -2147483648)endfunction NGX_NAV_2xon ()	ipc.control(69755, 536870912)    	ipc.control(69755, 536870912)endfunction NGX_Strobe_2xon ()	ipc.control(69755, -2147483648)	ipc.control(69755, -2147483648)end function NGX_BCN_toggle ()	ipc.control(69756, 536870912)endfunction NGX_Wing_toggle ()	ipc.control(69757, 536870912)endfunction NGX_Wheel_toggle ()	ipc.control(69758, 536870912)end -- ## Other ###############function NGX_Gear_up ()	ipc.control(70087, -2147483648)endfunction NGX_Gear_down ()	ipc.control(70087, 536870912)end function NGX_HGS_toggle ()	ipc.control(70611, 536870912)endfunction NGX_Left_ENG_Cutoff ()	ipc.control(70320, 536870912)ipc.control(70320, 131072)endfunction NGX_Right_ENG_Cutoff ()	ipc.control(70321, 536870912)ipc.control(70321, 131072)endfunction NGX_Speakers ()	--ipc.control(70183, 536870912)	--ipc.control(70175, 536870912)	--ipc.control(70167, 536870912)	--ipc.control(70169, 536870912)	--ipc.control(70169, 536870912)	--ipc.control(70188, 536870912)	ipc.control(70255, 536870912) -- menu	ipc.control(70247, 536870912) -- rsk4	ipc.control(70239, 536870912) -- lsk2	ipc.control(70241, 536870912) -- lsk4	ipc.control(70241, 536870912) -- lsk4	ipc.control(70238, 536870912) -- lsk1	ipc.control(70260, 536870912) -- execendfunction NGX_Headphones ()	--ipc.control(70183, 536870912)	--ipc.control(70175, 536870912)	--ipc.control(70167, 536870912)	--ipc.control(70169, 536870912)	--ipc.control(70169, 536870912)	--ipc.control(70188, 536870912)	ipc.control(70255, 536870912) -- menu	ipc.control(70247, 536870912) -- rsk4	ipc.control(70239, 536870912) -- lsk2	ipc.control(70241, 536870912) -- lsk4	ipc.control(70241, 536870912) -- lsk4	ipc.control(70242, 536870912) -- lsk5	ipc.control(70260, 536870912) -- execendfunction NGX_ColdAndDark ()	--ipc.control(70183, 536870912)	--ipc.control(70175, 536870912)	--ipc.control(70167, 536870912)	--ipc.control(70169, 536870912)	--ipc.control(70169, 536870912)	--ipc.control(70188, 536870912)	ipc.control(70255, 536870912) -- menu	ipc.control(70247, 536870912) -- rsk4	ipc.control(70245, 536870912) -- rsk2	ipc.control(70238, 536870912) -- lsk1	ipc.control(70260, 536870912) -- execendfunction NGX_AP_Disc ()	ipc.control(69971, 536870912) endfunction NGX_AT_Disc ()	ipc.control(69972, 536870912)endfunction NGX_FMC_P_RST ()	ipc.control(69973, 536870912)endfunction NGX_Fire_Warn ()	ipc.control(69979, 536870912)	ipc.sleep(200)	ipc.control(69979, 536870912) endfunction NGX_Master_Caution ()	ipc.control(69980, 536870912)	ipc.sleep(200)	ipc.control(69980, 536870912) endfunction NGX_Half_Brake_Set ()	--ipc.writeUW(0x0C00, 100)	--ipc.writeUW(0x0C01, 100)	--ipc.sleep(200)	--ipc.writeUW(0x0BC4, 4192)	--ipc.writeUW(0x0BC6, 8192)	--ipc.sleep(200)	ipc.control(66387, 5000) -- left toe brake	ipc.control(66388, -2000) -- right toe brake	--ipc.log(ipc.readUW(0x0BC4))	--ipc.log(ipc.readUW(0x0BC6))endfunction NGX_Half_Brake_Release ()	--ipc.writeUW(0x0C00, 0)	--ipc.writeUW(0x0C01, 0)	ipc.control(66387, 16384) -- left toe brake	ipc.control(66388, 16384) -- right toe brake	--ipc.log(ipc.readUW(0x0BC4))	--ipc.log(ipc.readUW(0x0BC6))endfunction NGX_ENG ()	ipc.control(70095, 536870912)endfunction NGX_SYS ()	ipc.control(70094, 536870912)endfunction NGX_AUTOBRAKE_inc ()	ipc.control(70092, 16384)endfunction NGX_AUTOBRAKE_dec ()	ipc.control(70092, 8192)endfunction NGX_Zoom_CDU ()	for zoom = 0, 68, 2 do    	ipc.writeUW(0x02B2, zoom)	endendfunction NGX_CDU_2D ()	ipc.control(66506, 402)endfunction NGX_Elev_Trim_Inc ()	ipc.control(70310, 16384)	trim = format_num(tonumber(ipc.readLvar("L:ElevTrimTT")), 2, "")	--trim = tonumber(ipc.readLvar("L:ElevTrimTT"))	ipc.writeSTR(0x3380, "Stabilizer Trim: " .. trim);	ipc.writeSW(0x32FA, 5);endfunction NGX_Elev_Trim_Dec ()	ipc.control(70310, 8192)	trim = format_num(tonumber(ipc.readLvar("L:ElevTrimTT")), 2, "")	--trim = tonumber(ipc.readLvar("L:ElevTrimTT"))	ipc.writeSTR(0x3380, "Stabilizer Trim: " .. trim);	ipc.writeSW(0x32FA, 5);endfunction NGX_TCAS_Inc ()	tcas = ipc.get("tcas22")	if tcas == nil then   	--ipc.log("tcas null: " .. tcas)   	tcas = 1	else    	--ipc.log("tcas inc: " .. tcas)    	if tcas > 4 then        	return    	end	end	NGX_Ivap_Transponder_Charlie()	ipc.set("tcas22", tcas + 1)	--ipc.log("tcas inc after: " .. ipc.get("tcas22"))	ipc.control(70432, -214748364)endfunction NGX_TCAS_Dec ()	tcas = ipc.get("tcas22")	--if not (tcas == nil) then	--	ipc.log("tcas: dec" .. tcas)	--end	if tcas == nil or tcas < 2 then    	ipc.set("tcas22", 1)    	return	end	if tcas < 3 then    	NGX_Ivap_Transponder_Standby()	end	ipc.set("tcas22", tcas - 1)	--ipc.log("tcas inc after: " .. ipc.get("tcas22") .. " " .. ipc.get("tcas"))	ipc.control(70432, 536870912)endfunction NGX_TCAS_Test ()	ipc.control(70433, 536870912)endfunction NGX_CRZ_Alt_Inc ()	ipc.control(69850, -2147483648)endfunction NGX_CRZ_Alt_Dec ()	ipc.control(69850, 536870912)endfunction NGX_LND_Alt_Inc ()	ipc.control(69852, -214748364)endfunction NGX_LND_Alt_Dec ()	ipc.control(69852, 536870912)endfunction NGX_BANK_LIM_Inc()	ipc.control(70021, -2147483648)endfunction NGX_BANK_LIM_Dec()	ipc.control(70021, 536870912)endfunction NGX_SEAT_BELTS_Inc()	ipc.control(69736, -2147483648)endfunction NGX_SEAT_BELTS_Dec()	ipc.control(69736, 536870912)endfunction NGX_Cockpit_Lights_Smoke_toggle()	ipc.control(65559)endfunction NGX_Squawk_Ident()	--ipc.log("before " .. ipc.readUB(0x7b93))	ipc.control(70438, 536870912)	ipc.writeUB(0x7b93, 1)	--for zoom = 0, 100, 1 do	--	ipc.log("after " .. ipc.readUB(0x7b93))	--	ipc.sleep(50)	--end endfunction NGX_Ivap_Transponder_Standby()	ipc.writeUB(0x7b91, 1)endfunction NGX_Ivap_Transponder_Charlie()	ipc.writeUB(0x7b91, 0)endfunction NGX_Ivap_Toggle()	ipc.keypress(111, 0)endfunction NGX_APU_Off()	--ipc.macro("NGX: APU-")	ipc.macro("NGX: APU OFF")endfunction NGX_APU_On()	--ipc.macro("NGX: APU+")	--ipc.macro("NGX: APU+")	ipc.macro("NGX: APU ON")	ipc.macro("NGX: APU ON")endfunction NGX_ReloadEngine()	ReloadEngine()	--NGX_AP_MASTER_toggle ()	ipc.sleep(200)	NGX_Half_Brake_Set ()ipc.sleep(500)NGX_Half_Brake_Release ()endfunction NGX_buttonALERT()	ipc.writeSTR(0x3380, "button press !!!!!!!!!!!!!!!!!!! ")	ipc.writeSW(0x32FA, 2)endfunction NGX_toggleJetway()	ipc.control(66695)end

Thanks !!! Not quite what I expected, but great for FSUIPC. Are your LINDA function names "EXACTLY" the same as the available PMDG Lvar or Event names ?

function NGX_SEAT_BELTS_Inc() ipc.control(69736, -2147483648)endfunction NGX_SEAT_BELTS_Dec() ipc.control(69736, 536870912)end
'Inc' and 'dec' of SEAT_BELTS seem a little strange, unless the belts are fully adjustable !! j/k Thank you for the FSUIPC examples.
'Inc' and 'dec' of SEAT_BELTS seem a little strange, unless the belts are fully adjustable !! j/k
I notice your adding of "j/k", but in case this was in fact still meant as a serious question Big%20Grin.gif I'm pretty sure this refers to the FASTEN SEAT BELTS switch having three positions (not two, like simple ON-OFF). It has OFF-AUTO-ON, and hence it's not a simple toggle but can, indeed, be "increased" and "decreased", respectively. If that helps. dance.gifsig.gif
I notice your adding of "j/k", but in case this was in fact still meant as a serious question Big%20Grin.gif I'm pretty sure this refers to the FASTEN SEAT BELTS switch having three positions (not two, like simple ON-OFF). It has OFF-AUTO-ON, and hence it's not a simple toggle but can, indeed, be "increased" and "decreased", respectively. If that helps. dance.gifsig.gif
BLUSH -- got me again Etienne im%20Not%20Worthy.gif makes perfect sense now you have enlightened me Hypnotized.gif But one of the things I dislike about FSX, are the toggles, and inc/decs that can get out of step.Having a 'SET' would seem to make much more sense,
Thanks !!! Not quite what I expected, but great for FSUIPC. Are your LINDA function names "EXACTLY" the same as the available PMDG Lvar or Event names ?
No Geoff, the function names are just arbitrary names. It's what's inside the functions what controls the knobs and switches in the NGX.What were you expecting exactly? I don't use Lvars unless I need to read a value from them or there's no other way to map something

Thanks Dazz I have not used LINDA before, but it does look interesting. I guess it's time to read the documenation first, and try a few examples.

LINDA lists all the LVars used by the NGX in the LINDA Tracer. You can search for LVar. You can activate a Lvar then (or all, or few) and see in the Concole Window how this LVar behaves.Same with Offsets and controls. You can filter LVars, Offsets and controls, so that the Console Window is not flooded or you can filter to see just some specific variables ...You can also send LVar, Offset and Control offsets to your addon and also toggle them. All in all LINDA made hunting and gathering LVars a lot easier!

Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

All in all LINDA made hunting and gathering LVars a lot easier!
This I can attest
  • 1 month later...

teamanyone spotted a script for wipers ... left,right or both ??

for now, cheers

john martin

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.