This are the Support Forums for FSUIPC and related products.
These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.
Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.
Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE
[Solved] Preset Question
Hi, one question reg presets, not sure if you can help here.
I am trying to execute several "commands" in a row for the Ifly Max via a preset. For some variables I get it working, but for others not.
This one works, it will switch both wipers on (turn knob right):
IFLY_737Max_WIPER_ON_BOTH#1 (>L:VC_Anti_Ice_trigger_VAL, Number) 3 (>L:VC_Anti_Ice_trigger_VAL, Number)
However this one is just executing the first command and ignores the second one (should turn up inboard and outboard display on FOs side):
IFLY_737Max_DISPLAYS_TURN_UP#122 (>L:VC_Instruments_trigger_VAL, Number) 132 (>L:VC_Instruments_trigger_VAL, Number)
Any ideas why this could be and if any workaround ?
Many thanks
Posted by: @manoloAny ideas why this could be and if any workaround ?
I am not sure why it isn't working for that lvar, especially as it works for the other, but maybe you need a short pause between the two updates. Currrently there is no way to introduce a pause. I am planning to add a pause/sleep function that can be used in calculator code at some point, but not sure when I will get time to implement this at the moment.
Rather than combining the updates into one calculator code string, use two separate presets to overload the assignments, and maybe also introduce a pause between them. So, if you define two presets, e.g.
IFLY_737Max_DISPLAY1_TURN_UP#122 (>L:VC_Instruments_trigger_VAL, Number) IFLY_737Max_DISPLAY2_TURN_UP#132 (>L:VC_Instruments_trigger_VAL, Number)
Then assign to one of the presets, and open up your FSUIPC7.ini to find the assignment. It will look something like this:
15=PB,7,CPIFLY_737Max_DISPLAY1_TURN_UP,0 -{Preset Control}-Duplicate that line, an edit to give a new & unique index number, and change the preset, to give:
15=PB,7,CPIFLY_737Max_DISPLAY1_TURN_UP,0 -{Preset Control}-
16=PB,7,CPIFLY_737Max_DISPLAY2_TURN_UP,0 -{Preset Control}-
If that still doesn't work, you can introduce a delay using the pause control, e.g.
15=PB,7,CPIFLY_737Max_DISPLAY1_TURN_UP,0 -{Preset Control}-
16=PB,7,C1152,50 -{pause (ms)}-
17=PB,7,CPIFLY_737Max_DISPLAY2_TURN_UP,0 -{Preset Control}-You can also use macro files for sending multiple controls on a single button or key press - see the Advanced User guide for details.
John
Thank you so much John, I will give that a try !
@Manolo Did you get this to work?
Note that there is now a beta release available for v7.5.6 (see the News section). In this release, I have added a pause/sleep function that can be used in preset/calculator code strings, so with this version you can also try using:
IFLY_737Max_DISPLAYS_TURN_UP#122 (>L:VC_Instruments_trigger_VAL, Number) SLEEP::50 132 (>L:VC_Instruments_trigger_VAL, Number)
i.e. add a short pause between the lvar updates.
John
Hey John, so sorry for not reporting back. Yes, I solved it splitting it into separate presets and assigning to same key as you suggested. But great to hear you implemented that pause function directly. Thank you so much, I will try that also.
