Today I tested your new exe file - unfortunately it dosen't work. But... I'm a little embarrassed, but the original application DOES run with both USB devices. It may be that I had included a few errors in the Lua code (sorry, but I can no longer trace it - I changed the code again and again).
Here is the FSUIPC7.JoyScan.csv file no your request:
Good?, flags, VID, PID, Name, INIid, REGid, RegEntry, INIguid, REGguid, HIDguid, ValsOK?, ReadsOk?
,,, HIDscanning completed
,,, REGscanning completed
,,, User settings imported
,,, Values matched and decided
Your new program also wrote the same csv file. And, it gave an error on
com.openhid(0x0, 0x11, 0, 0)
8687 LUA.3: Crash C0000005 at 7FFC143F6CBC: "D:\FSUIPC7\A320Rmp.lua"
So the code change seems to be unsuccessful. However, the same line works with v7.2.13 and I cand send and receive data from the A320 RMP.
The only remaining problem is that the device starts sending it status messages (with 20 Hz) right after the Lua script sends an message. And, it seems to not stop after FSUIPC is closed. At the next start of FSUIPC, the device is opened successfully, but sending a message fails. Restarting the device before the next FSUIPC start helps to establish a working connection again. I need to investigate that further.
Many thanks again!
Torsten