Author Topic: how do i adress arrays from x-plane  (Read 852 times)

jannik

  • Newbie
  • *
  • Posts: 5
how do i adress arrays from x-plane
« on: March 08, 2020, 07:54:53 AM »
Hi!
I have a problem getting values from x-plane when they are displayed in datareftool in the form of an array.

I access some dataref's in x-plane via SpadNext from VoiceAttack.
When I look at a specific dataref, it is displayed in DatarefTool as:
           AirbusFBW/ENGTLASettingN1[4]=[28.525501,28.525501,0.,0.]

When I try to get the value of say the first array element, i make an "getvalue" using the SPAD.neXt VoiceAttack plugin on the decimal variable XPLANE!AirbusFBW/ENGTLASettingN1

According to the log file this goes well, but unfortunately i have never been able to "extract" say the first instance from this array.
I have tried the following in a "write a value to event log" function:
Got value of N1 percentage = {DEC:XPLANE!AirbusFBW/ENGTLASettingN1[1]}

but it does not display "28.525501", it only displays "0".

Can anybodu help?

Kind regards
Jannik

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: how do i adress arrays from x-plane
« Reply #1 on: March 08, 2020, 12:28:38 PM »
You'll want to ask the author of that third-party plugin about this.

They have a support ticket system, and a forum.