-
-
-
jazzmanPL started following rsrandazzo
-
jazzmanPL changed their profile photo
-
-
-
jazzmanPL started following Keven Menard
-
Licence keys no longer accepted
jazzmanPL replied to HarryK64's topic in Aviasoft Remote CDU for Phone / Tablet Official Support ForumSame problem. Email sent already. Thanks for cooperation
-
Lua error SLX_G1000.lua
Sounds clear for me You're doing a fantastic job. Thanks for Your tremendous work, I really appreciate that a lot. All the best, Darek
-
Lua error SLX_G1000.lua
Helo Maarten, There's some coding error in SL_G1000.lua in line 26 (missing bracket ')' ): -- "Slave Server" example LUA plug-in, by Pete Dowson, October 2009 -- To make the Server FS act as a slave, following the Client FS acting as Master -- The SOCKET module is built into FSUIPC, but is not active until "required" local socket = require("socket") -- Set the host name to the name of the PC running this Server local host = "localhost" -- The port must match the port selected in the client and not clash with others. local port = "34568" local function processdata(data) -- decode string, format is lvarname,lvarvalue,isstring (0 or 1) local index1 = 1 local index2 = string.find(data, ",") local lvarname = string.sub(data, index1, index2 - 1) index1 = index2 + 1 index2 = string.find(data, ",", index1) local lvarvalue = string.sub(data, index1, index2 - 1) local lvarisstring = string.sub(data, index2 + 1) if lvarisstring == "1" then for i = 1, 6 do if (string.len(lvarvalue) >= i then ////here exactly - error when parsing/// ipc.writeLvar("SLX_StringValue" .. i, string.byte(lvarvalue, i) else ipc.writeLvar("SLX_StringValue" .. i, 0) end end else ipc.writeLvar("SLX_" .. lvarname, tonumber(lvarvalue)) end ipc.writeLvar("SLX_" .. lvarname .. "_Set", 1) end local server = assert(socket.bind(host, port)) local ack = "<EOF>" while 1 do print("slx_fs9gps_server: waiting for client connection...") local control if (server ~= nil) control = server:accept() else control = nil if control ~= nil then print("slx_fs9gps_server: client connected!") while 1 do local data = control:receive() if data == nil then print("slx_fs9gps_server: client disconnected") -- ipc.control(65794) -- Pause FS break end else local index = string.find(data, "<EOF>") if index ~= nill then data = string.sub(data, 1, index - 1) if data == "ping" then assert(control:send("ping<EOF>")) else assert(control:send(ack)) processdata(data) end end end end end end Best wishes, Darek
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
OK topic closed tonight I uninstalled all PMDG prducts I had and made clean install of NGX, VRI SOFTWARE, Linda and ngx mod. The panel with both apps started to work at last. Sth was f..ed by the side of pmdg modules. The Linda software works great and even the responses to knobs are faster and more efficient comparing to vri software. Thanks for Your time and patience Guenter. For sure You are the Man Thanks also that I could learn a lot of another scripting language and I can use it oppose another sim addons. That means a lot for a true flight simmer. I wish You and all the team all the best and a donation for the project is a must Happy flights and throttles on
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
Hello Guneter I did as You told me and I found some interesting clues. Ok let me start from the very beginning I got his code: function Timer () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () end function NGX_AP_SPD_show () ipc.sleep(50) ngx_spd = ipc.readLvar("L:ngx_SPDwindow") DspSPD(ngx_spd) end function NGX_AP_SPD_inc () ipc.control(70016, 16384) NGX_AP_SPD_show () end function NGX_AP_SPD_incfast () local i for i = 1, 4 do ipc.control(70016, 16384) end NGX_AP_SPD_show () end function NGX_AP_SPD_dec () ipc.control(70016, 8192) NGX_AP_SPD_show () end function NGX_AP_SPD_decfast () local i for i = 1, 4 do ipc.control(70016, 8192) end NGX_AP_SPD_show () end function NGX_AP_HDG_show () ipc.sleep(50) ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") DspHDG(ngx_hdg) end function NGX_AP_HDG_inc () ipc.control(70022, 16384) NGX_AP_HDG_show () end function NGX_AP_HDG_dec () ipc.control(70022, 8192) NGX_AP_HDG_show () end function NGX_AP_ALT_show () ngx_alt = ipc.readLvar("L:ngx_ALTwindow") DspALT(ngx_alt) end function NGX_AP_ALT_inc () ipc.control(70032, 16384) NGX_AP_ALT_show () end function NGX_AP_ALT_dec () ipc.control(70032, 8192) NGX_AP_ALT_show () end With this code the values start to change on the pmdg mcp and on the vri mcp, but there's some other issue. The values on the vri mcp change as I rotate the knob, but they do always reset to their default state of 000 (the good thing is that they started to change ===================================================================================================== But !!! when I was changing the code I got some funny thing. If I put this code (I change the DspSPD and DspALT to DspHDG as it goes down there - the alt and spd on the vri do change!!!, only the hdg value resets to 000 when I stop rotating the HDG knob): function Timer () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () end function NGX_AP_SPD_show () ipc.sleep(50) ngx_spd = ipc.readLvar("L:ngx_SPDwindow") DspHDG(ngx_spd) end function NGX_AP_SPD_inc () ipc.control(70016, 16384) NGX_AP_SPD_show () end function NGX_AP_SPD_incfast () local i for i = 1, 4 do ipc.control(70016, 16384) end NGX_AP_SPD_show () end function NGX_AP_SPD_dec () ipc.control(70016, 8192) NGX_AP_SPD_show () end function NGX_AP_SPD_decfast () local i for i = 1, 4 do ipc.control(70016, 8192) end NGX_AP_SPD_show () end function NGX_AP_HDG_show () ipc.sleep(50) ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") DspHDG(ngx_hdg) end function NGX_AP_HDG_inc () ipc.control(70022, 16384) NGX_AP_HDG_show () end function NGX_AP_HDG_dec () ipc.control(70022, 8192) NGX_AP_HDG_show () end function NGX_AP_ALT_show () ngx_alt = ipc.readLvar("L:ngx_ALTwindow") DspHDG(ngx_alt) end function NGX_AP_ALT_inc () ipc.control(70032, 16384) NGX_AP_ALT_show () end function NGX_AP_ALT_dec () ipc.control(70032, 8192) NGX_AP_ALT_show () end As You can see in the NGX_AP_SPD_show, NGX_AP_HDG_show and NGX_AP_ALT_show there's continuously - DspHDG(ngx_spd), DspHDG(ngx_hdg) and DspHDG(ngx_alt). It gave me to thinking that there may be something wrong with the common.lua DspHDG DspSPD and DspALT, because some part of the code is resetting the displays to 000 even when the values start changing. That's my actual code from common.lua for these functions: function DspSPD (i) if dev == 0 then return end local strVal strVal = DspNum(i) if DSP_SPD_PREV ~= strVal then if _MCP2() then --or _MCP2a() then Dsp9("\\\\ \\") end ipc.sleep(20) com.write(dev, "SPD" .. DspNum(i) .. "__", 8) SPD = i DSP_SPD_PREV = strVal DspHideCursor() end end function DspHDG (i) if dev == 0 then return end local strVal strVal = DspNum(i) if DSP_HDG_PREV ~= strVal then if _MCP1() then ipc.sleep(30) com.write(dev, "HDG" .. DspNum(i), 8) DspHideCursor() elseif _MCP2() then DspC(DspNum(i) .. '\\') elseif (_MCP2a() and Airbus) then ipc.sleep(30) com.write(dev, "HDG" .. DspNum(i,3) .. '\\', 8) else -- MCP2a default DspB(DspNum(i) .. '\\') end HDG = i DSP_HDG_PREV = strVal end end function DspALT (i) if dev == 0 then return end local strVal strVal = DspNum(i) if DSP_ALT_PREV ~= strVal then ipc.sleep(30) com.write(dev, "ALT" .. DspNum(i), 8) DspHideCursor() ALT = i DSP_ALT_PREV = strVal end end Thanks again for Your patience and great advices
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
Seems like the black hole I put these functions in the timer already but they don't seem to update the values. I worked with the init vars yesterday. At the beginning we've got that: ngx_spd = 0 ngx_hdg = 0 ngx_alt = 0 ngx_vvs = 0 When I change values, ex. ngx_spd=200, the init display shows 200 for speed with this function: function NGX_AP_SPD_show () ipc.sleep(50) DspSPD(ngx_spd) end However when I change the ngx_spd to display what's on the ngx mcp with this var: ngx_spd = ipc.readLvar("L:ngx_SPDwindow") it does not even load the value of whatever it is (for default the ngx mcp spd shows 100). By somehow I think the lvar "ipc.readLvar("L:ngx_SPDwindow")" is not working, but I don't know why I checked it with vri software and pmdg and the effect is the same. It works wth the default airplanes, but these values with ngx remains stucked. That's some kind of bull..it for me. Anyway I'm not going to leave this. This one is a must
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
I simply don't get it 4th day and no results I put that in actions.lua: function Timer () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () NGX_AP_VS_show () end but it doesn't work . And there's no any timer function in the 3.4 module for NGX I was earching for some kind of error in the common, handlers and events luas, but got nothing. I do not understand one thing. The radios panel on the bri works fine, it changes, rotates and does some miracles also, since theese 4 values on the mcp stays as sorcerer's stone. I tried many combinations in the actions lua. On the beginning I've got: AutoDisplay = false in the initvars. When I change that one to true - the values change but only one degree/kt/ft on plus and minus. There must be some solution to move this #@$ display Guenter is it possible that You send me some working actions.lua and config-mcp2.lua for [email protected]? I'm just curious what's the heck wrong with that. Thanks for help
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
Ok after long hours of script changing I got that (I modified this in the actions.lua module): function InitVars () ngx_spd = 100 ngx_hdg = 100 ngx_alt = 100 ngx_vvs = 0 end function InitDsp () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () NGX_AP_VS_show () end function NGX_AP_SPD_show () ipc.sleep(50) ngx_SPD = ipc.readLvar("L:ngx_SPDwindow") DspSPD(ngx_spd) end function NGX_AP_HDG_show () ipc.sleep(50) ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") DspHDG(ngx_hdg) end function NGX_AP_ALT_show () ipc.sleep(50) DspALT(ngx_alt) end When I change the init vars the VRI MCP display shows both the fixed values of 100 and reads the heading from NGX - ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") The thing is that with this script: function NGX_AP_SPD_inc () ipc.control(70016, 16384) NGX_AP_SPD_show () end function NGX_AP_SPD_incfast () local i for i = 1, 4 do ipc.control(70016, 16384) end NGX_AP_SPD_show () end function NGX_AP_SPD_dec () ipc.control(70016, 8192) NGX_AP_SPD_show () end function NGX_AP_SPD_decfast () local i for i = 1, 4 do ipc.control(70016, 8192) end NGX_AP_SPD_show () end the values are not changing, only the knobs are rotating. The 8192 and 16384 may be responsible for rotating the knob only, but not for changing the values on the VRI display. Am I right?
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
I wrote sth like that: function InitVars () ngx_spd = ipc.readLvar("L:ngx_SPDwindow") end function InitDsp () NGX_AP_SPD_show () end function NGX_AP_SPD_show () ipc.sleep(50) DspSPD(ngx_spd) end but the VRI display is not responding. I'm just wondering: if I write ngx_spd = 100, should the VRI display show this value of 100 or anythin else I put there, let's say 731?
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
I was trying to solve the issues with the old one, but nothing happened. I thought it might be better to start from the very beginning to identify what's wrong. The problem lies somewhere in the actions.lua. When the file is clear the values on the mcp change, nut NGX mcp stays frozen. The fsx default one works well since it's using some fallbacked actions (I don't know where to find them) but only with the default fsx airplanes - the mcp on the default aircraft is cooperating with the vr insinght mcp. When I use the module 3.4 the VRI stays frozen, but the NGX mcp values are changing. I decided to create a script that changes one value, ex. SPD and try to synchronise that one with vri mcp. After that I try to add HDG, ALT and VS and at the very end - I'll add that scripts to the 3.4 module. The problem is like that: My NGX mcp shows that for default - SPD=100//HDG=000//ALT=10000//VS remains blank since it's not activated of course. My VRI combo shows all vaules at zero: SPD=000//HDG=000//ALT=00000//VS=000 What I'm trying to do is to show the same vaules at the VRI mcp cause they do not synchronise when the module is loaded. At the beginning of the script - 'initvars' I've got: ngx_spd = 0 ngx_hdg = 0 ngx_alt = 0 ngx_vvs = 0 I tried to do sth like that to change the vaules on the vri display ngx_spd = ipc.readLvar("L:ngx_SPDwindow") ngx_hdg = ipc.readLvar("L:ngx_HDGwindow") ngx_alt = ipc.readLvar("L:ngx_ALTwindow") ngx_vvs = ipc.readLvar("L:ngx_VVSwindow") but it doesn't work As I understand these are used later for the following functions which are responsible for showing what's on the vri display: function InitDsp () NGX_AP_SPD_show () NGX_AP_HDG_show () NGX_AP_ALT_show () NGX_AP_VS_show () end This one is the main function for creatin what's on the vri display for the SPD and the DspSPD is the LINDA function which actually sends the data to the VRI SPD display function NGX_AP_SPD_show () ipc.sleep(50) ngx_spd = ipc.readLvar("L:ngx_SPDwindow") if ngx_spd < 0 then ngx_spd = 0 end DspSPD(ngx_spd) end Something is not working here. At the very beginning the ngx_spd is set to 0, here it reads the ngx display, so it goes for two values set. An is it possible that the value for speed is less than 0 (maybe for reverse thrust, I'm not sure about that)? I keeps me fighting the third day and I'm going a little bit crazy about that. Thanks for reading this Guenter, maybe You can find some more advices for me I know that LINDA is a fantastic app and I have to find the clue
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
Can You please help me with that: ipc.control(70022, 16384) What I understand (70022) is for EVT_MCP_HEADING_SELECTOR where EVT equals NGX and is responsible for turning the hdg selector knob on the Ngx mcp What is the 16384 value used for and where can I find it? Thanks again
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
Ok I'm doing fine with the LINDA scripts, sth starts to happen. I'll inform You with the results. I'm trying to synchronise the displays with ngx thanks to lua scripts for 737NGX. I'll upload the files for LINDA when I'm done. For now being the displays on VRI mcp starts work and the NGX mcp values are changing a little bit. Next night on programming and setting the displays up Anyway, there is a problem with the actual module and functions inside, that's why they are not working as they should. Throttle on
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
I did some research on the lua files. The lua programing language is relatively very simple. I created my own file and for the SPD, HDG, ALT, VS it goes as follows: -- MCP SPD knob SPD1 = { ["A SHOW"] = SPD_show , ["A +"] = SPD_plus , ["A ++"] = SPD_plusfast , ["A -"] = SPD_minus , ["A --"] = SPD_minusfast , ["PRESS"] = empty , } -- MCP HDG knob HDG1 = { ["A SHOW"] = HDG_show , ["A +"] = HDG_plus , ["A ++"] = HDG_plusfast , ["A -"] = HDG_minus , ["A --"] = HDG_minusfast , ["PRESS"] = Autopilot_HDG_Bug_align , } -- MCP ALT knob ALT1 = { ["A SHOW"] = ALT_show , ["A +"] = ALT_plus , ["A ++"] = ALT_plusfast , ["A -"] = ALT_minus , ["A --"] = ALT_minusfast , ["PRESS"] = Autopilot_ALTSEL_mode , } -- MCP VVS knob VVS1 = { ["A SHOW"] = VVS_show , ["A +"] = VVS_plus , ["A ++"] = VVS_plusfast , ["A -"] = VVS_minus , ["A --"] = VVS_minusfast , ["PRESS"] = Autopilot_VSSEL_mode , } With this file the display in the unit is working well, however mcp in ngx is frozen. Inside the newest module from avsim the file shows: -- MCP SPD knob SPD1 = { ["A SHOW"] = empty , ["A +"] = NGX_AP_SPD_inc , ["A ++"] = NGX_AP_SPD_incfast , ["A -"] = NGX_AP_SPD_dec , ["A --"] = NGX_AP_SPD_decfast , ["PRESS"] = NGX_AP_SPD_INTV , } -- MCP HDG knob HDG1 = { ["A SHOW"] = empty , ["A +"] = NGX_AP_HDG_inc , ["A ++"] = NGX_AP_HDG_incfast , ["A -"] = NGX_AP_HDG_dec , ["A --"] = NGX_AP_HDG_decfast , ["PRESS"] = NGX_AP_HDG_BANK_toggle , } -- MCP ALT knob ALT1 = { ["A SHOW"] = empty , ["A +"] = NGX_AP_ALT_inc , ["A ++"] = NGX_AP_ALT_incfast , ["A -"] = NGX_AP_ALT_dec , ["A --"] = NGX_AP_ALT_decfast , ["PRESS"] = NGX_AP_ALT_INTV , } -- MCP VVS knob VVS1 = { ["A SHOW"] = empty , ["A +"] = NGX_AP_VS_inc , ["A ++"] = NGX_AP_VS_inc , ["A -"] = NGX_AP_VS_dec , ["A --"] = NGX_AP_VS_dec , ["PRESS"] = empty , } With this one the vri mcp stays frozen, however ngx mcp works well. There's a difference with the functions naming, so the problem lies here somewhere. Had anyone have a problem like this before? Is it possible to assign both values for one function? I'll try to do that and inform about the results. Any help greatly appreciated
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
With or without it, it works the same. If the vri software is off, it doesn't collide with linda in any matter. The last thing I did yesterday was removing the configs for 737NGX in linda and operating the aircraft on fsx defaults. Things got inverted somehow - the mcp unit itself was working with values changed by knobs, but it had no effect on the NGX mcp. I'm getting crazy about that. What I think, there's some problem in communication between linda and ngx modules. That's why they cannot transfer data between them. But it relates to SPD, HDG, ALT and V/S. The rest is working ok. The radios panel works great, the efis and all the buttons also, so I'm sure there must be some solution. Thanks again for an advice. Help Guenter
-
VRINSIGHT BOEING MCP - PMDG NGX DISPLAY ISSUE WITH LINDA
That's my linda config for NGX. I think the problem lies in sending data betwween ngx and mcp unit via linda scripts. Just don't know the solution