Jump to content
The simFlight Network Forums

FSUIPC  v7.2.9: Cannot Get ipc.execCalcCode to work A32NX


zap737

Recommended Posts

Hi,

I have a Lua file which runs automatically and detects whether a button is pressed for a short time or a longer time.

This emulates the push and pull function of the FCU Alt, and Speed knobs on the A32NX which engage the managed or selected functions.

The FSUIPC>AddOns>WASM>Execute Calculator Code works if I execute it within the FSUIPC Interface, but the code in the LUA does not work.

If I execute the following pull event within FSUIPC>AddOns>WASM>Execute Calculator Code,  it works

(>H:A320_Neo_FCU_ALT_PULL) (>H:A320_Neo_CDU_MODE_SELECTED_ALTITUDE)

Same for Push....  It works fine within FSUIPC>AddOns>WASM>Execute Calculator Code

(>H:A320_Neo_FCU_ALT_PUSH) (>H:A320_Neo_CDU_MODE_MANAGED_ALTITUDE)

So, the attached Altitude LUA code does not work.

However, the attached LUA file for speed (which is virtually identical), DOES work !

Yes, I have confirmed the button and joystick numbers are correct.

My FSUIPC INI file is also attached.

 

 

FCU_Alt.lua FCU_Speed.lua FSUIPC7.ini

FSUIPC7.log

Link to comment
Share on other sites

Could you please activate:
  - logging for Buttons & Keys and Lua Plugins in FSUIPC7 (from FSUIPC7 Log menu)
  - WAPI debug logging (from FSUIPC7.ini file)
  - WASM debug logging (from FSUIPC_WASM.ini)

Then generate an FSUIPC7.log and FSUIPC_WASM.log showing your issue. Also send the calc code from the WASM menu so that is also logged.
Please remember to close/exit FSUIPC7 before attaching your log - the one you attached is useless as you don't even have an a/c loaded or get to the ready-to-fly state.

If you can then attach the 2 log files I will take a look - but tomorrow, finishing for the day now.

John

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.