ark1320 Posted September 29, 2022 Report Posted September 29, 2022 FSUIPC7 calculator code is a wonderful capability! The examples I've seen always express the XML code on a single line. XML code can get "long" ( which I assume is why up to 1023 characters can be used) and I was wondering if there might be a way to use multiple lines like in the example below. What I've tried has not worked. ipc.execCalcCode (" (L:AP_PFT_COUNTER, number) 21 >= if{ 1 (>L:AP_PFT_POWER,bool) 0 (>L:AP_PFT_COUNTER_ENABLE,bool) 0 (>L:AP_PFT_COUNTER, number) } els{ (A:CIRCUIT ON:9,bool) 0 == if{ 0 (>L:AP_PFT_POWER,bool) 0 (>L:AP_PFT_COUNTER, number) 0 (>L:AP_PFT_COUNTER_ENABLE,bool) 0 (>L:AP_MEM,bool) 0 (>L:YAW_DAMPER_MEM,bool) (>K:YAW_DAMPER_OFF) (>K:AUTOPILOT_OFF) (A:AUTOPILOT FLIGHT DIRECTOR ACTIVE,Bool) 1 == if{ (>K:TOGGLE_FLIGHT_DIRECTOR) } } } ")
John Dowson Posted September 30, 2022 Report Posted September 30, 2022 No - the calculator code must all be on one line, currently up to a maximum of 1024 bytes. It is not possible to change this for various reasons. John
ark1320 Posted September 30, 2022 Author Report Posted September 30, 2022 7 hours ago, John Dowson said: No - the calculator code must all be on one line, currently up to a maximum of 1024 bytes. It is not possible to change this for various reasons. John Ok, thanks for the info John. I wasn't asking you to change anything. I thought there might be a special EOL character or string concatenation character that would work with the current implementation. Thanks again for this calculator XML code capability -- very useful! Al
John Dowson Posted September 30, 2022 Report Posted September 30, 2022 7 minutes ago, ark1320 said: I thought there might be a special EOL character or string concatenation character that would work with the current implementation. No - line continuation characters are not supported, sorry. John
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now