This are the (new) 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, and are still available (until the end of the year) for read-only here.

At the moment these new forums are quite empty – I will be updating the FAQ section and copying across the User Contributions from the old forums in the next few months.

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

Local panel Variabl…
 
Notifications
Clear all

[Solved] Local panel Variables looking for a particular switch

Posts: 11
Registered
Topic starter
(@reco01)
Joined: 2 months ago

Hi 

I have used LVar and it has list 391 entries for a particular aircraft. Using the list of LVar I have managed to create a macro file to assign 12 switches in my cockpit. One switch however is alluding me. Is there a fast and easy way to track down the switch. 

The switches don’t show up when using the normal logging functions on fsuipc and create macro doesn’t work either 

Cheers  


16 Replies
Posts: 173
Moderator
(@fsuipc-support)
Joined: 3 months ago

Which aircraft are you using, and what switch? It is always a good idea to provide these details. And are you using MSFS2020 or MSFS2024?

If no lvars look appropriate, event and input event logging shows nothing when moving the switch, and there are no presets available, then the next step would be to investigate how the switch is set-up using the model behavior window in the MSFS developer tools. See the following posts from Mobiflight on how to use this:

for MSFS2020: https://www.badcasserole.com/uncovering-input-events-using-the-msfs2020-model-behavior-dialog/
for MSFS2024: https://docs.mobiflight.com/guides/input-events-2024/

You can use those posts to determine how the switch works and define a preset/calculator code to replicate the behavior. You don’t need to use or assign in Mobiflight.


Reply
Posts: 11
Registered
Topic starter
(@reco01)
Joined: 2 months ago

Hi 

The aircraft is the Milviz MD530F for fsx, so using fsuipc 4. I have tracked down the switch which is “knob_light_dim1”

It controls the light intensity for the instrument panel. As it is a rotating knob, I hooked up a a spare potentiometer which rotates about 270 degrees hooked it up yo my bodnar board using a spare input.

In fsuipc axis I select the right hand side of the menu and found the Macro command in the drop down menu and assign it to the potentiometer . In the cockpit the knob moves very slightly but I can not figure out how to go about setting up the macro command to rotate the knob clock wise and anti clock wise.

Cheers 

Reco 


Reply
Posts: 113
Admin
(@fsuipc)
Joined: 6 months ago

Your potentiometer is an axis so you need to assign it on the lefthand side of the axis assignment panel, and assign it to write its value to an FSUIPC offset (e.g. 66C0) as a signed word or dword. Then, rather than using a macro, you need to write a lua script to monitor that offset (via event.offset), calibrate the axis value the offset range, and then update the lvar value. I think I already explained to you how to do this for the throttle/collective in the old support forums here: https://forum.simflight.com/topic/99790-assigning-switches-using-local-panel-variables-lvars-for-the-milviz-bell-uh1-redux-fsx/page/2/#comment-599329

The technique is the same, just use a different offset and lvar. You can even use the same script as you use for the throttle/collective – add another event.offset call and another handling function for that offset.

John


Reply
Posts: 11
Registered
Topic starter
(@reco01)
Joined: 2 months ago

Thanks John

I ran log Lvars and got this “113844 LUA.1: L:knob_light_dim=95”  What does 113844 refer to ?

As you mentioned I could use the current  throttle LAU and modify it.

Do I copy the throttle Lua and rename it knob_light_dim and in the Lua script just replace any throttle  reference  with knob_light_dim and of course change the calibration and then place the script in the ini file as I did with the throttle axis

cheers 


Reply
Page 1 / 4