AM sending a value multiple times?

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Message
Author
fatcharlieuk
Posts: 47
Joined: Tue Dec 22, 2020 7:42 am

AM sending a value multiple times?

#1 Post by fatcharlieuk »

Hi all,

I'm using Air Manager with Xplane 11 to control an Opencockpits FMC, interfacing with the IXEG 737-300.

There is a way of getting datarefs from the FMC, which is a plugin called "OCusbmapper" this assigns datarefs to all the buttons and leds of the Opencockpits FMC. However, I'm getting a weird effect where the command is sent multiple times. At its simplest, for instance:

xpl_dataref_write("ixeg/733/FMC/cdu1_G", "FLOAT", 0)

,,, will produce five "G" characters in the scratchpad.

I've assigned a callback request to effect four backspaces, but obviously not an ideal solution - also doesn't work with non-character keys such as the LSKs or the function keys (DEP/ARR, HOLD etc).

I have tried putting a flag into each callback and then

if flag == previous then return end

But I think it all happens too quickly to stop the multiple "firing" of the dataref write.

I will contact the writer of the plugin too, but wondered if anyone else has had this experience or could suggest a way to just capture one write and discard the other four?

many thanks,

Roger.

User avatar
Ralph
Posts: 7876
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AM sending a value multiple times?

#2 Post by Ralph »

Sounds like you're running an old plugin.

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: AM sending a value multiple times?

#3 Post by Keith Baxter »

Hi,

Are there not commands to use rather than trying to write to the datarefs?

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

fatcharlieuk
Posts: 47
Joined: Tue Dec 22, 2020 7:42 am

Re: AM sending a value multiple times?

#4 Post by fatcharlieuk »

Hi Keith,

Good idea but sadly not - the "clear", or backspace, command is the only "command" I've come across for the keys - all of the alphanumeric keys are datarefs only.

I'll check the plugin though Ralph, good call.

Cheers, Roger

User avatar
Keith Baxter
Posts: 4674
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: AM sending a value multiple times?

#5 Post by Keith Baxter »

fatcharlieuk wrote: Fri Aug 12, 2022 8:33 am Hi Keith,

Good idea but sadly not - the "clear", or backspace, command is the only "command" I've come across for the keys - all of the alphanumeric keys are datarefs only.

I'll check the plugin though Ralph, good call.

Cheers, Roger
Hi Rager,

So all these commands do not work?
ice_screenshot_20220812-114640.png
If they do then you just use the "BEGIN" and "END"

https://siminnovations.com/wiki/index.p ... pl_command

Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: AM sending a value multiple times?

#6 Post by jph »

As of 2017 "the official list of custom commands & dataref is included with the aircraft in the documentation folder, file "2-interface guide.pdf"
It will - hopefully ;) - have been updated since then.

So all the command details should be with the aircraft.
Joe. CISSP, MSc.

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: AM sending a value multiple times?

#7 Post by jph »

Here 'tis

Enjoy.

CBA is too high to read it Keith but you might find it useful ?
IXEG Interface-Guide.pdf
(911.24 KiB) Downloaded 36 times
Joe. CISSP, MSc.

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: AM sending a value multiple times?

#8 Post by jph »

This guy might also be able to help

https://forums.x-pilot.com/profile/3933-litjan/
Joe. CISSP, MSc.

fatcharlieuk
Posts: 47
Joined: Tue Dec 22, 2020 7:42 am

Re: AM sending a value multiple times?

#9 Post by fatcharlieuk »

[/quote]

Hi Rager,

So all these commands do not work?

ice_screenshot_20220812-114640.png

If they do then you just use the "BEGIN" and "END"

https://siminnovations.com/wiki/index.p ... pl_command

Keith
[/quote]

No Keith - they don't work with the ixeg 737-300

fatcharlieuk
Posts: 47
Joined: Tue Dec 22, 2020 7:42 am

Re: AM sending a value multiple times?

#10 Post by fatcharlieuk »

Embarrassingly, Ralph hit the bullseye - I am 64 yrs old, have been simming since Sub-Logic and cockpit building since FS5, but i didn't think to check my update status.

Updated the plugin and it worked immediately.

red face... :-(

Thanks everyone for the input - I learned stuff anyway!

Cheers,

Roger.

Post Reply