Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

A module for handling XML vars with a working gauge example

Featured Replies

Few days ago I swept the dust from some old C++ code I have used to build custom DLLs; found interesting snippets from which to make a rebuilt and the result is XMLVARS.DLL. This small but powerful module enables de use of custom variables -kind of LVars- for storing and retrieving data across the entire gaugeset of an aircraft panel. Like Lvars, this variables can have any name, can hold numeric values of any kind and, unlike LVars, can also handle string values. Besides, they can handle *standard* multidimension array-style manipulation of data, a powerful tool that is not possible to work with through the native LVarset unless a complex group of macros is suited for the task.XMLVARS supports storing and retrieving a total of 1024 different variables, with names up to 64 char, numeric values of type FLOAT64 and string values up to 128 char.It can minimize the use of repetitive code in complex gauges like FMS, Navigation Display, TCAS and similar as one of its strongest point is the ability to maintain variable values across the different gauges, like Lvars do (and most gpsvars don't). However, unlike LVars, those values still remain even after an aircraft reload, aircraft change or flight reset; something that could be useful for debugging purposes. In this case, making a RELOAD_USER_AIRCRAFT in FSX equals to make RELOAD_PANELS in FS9 (a powerful event for developers that was lost in FSX).XMLVARS comes in two versions, one for FSX and another for FS9(2004); this last one thanks to Bob and Robbie McElrath's help. I also added a gauge than can be taken as an example on the advantage of using arrays of variables for certain operations, in this case a simulation of a 757/767 CAS (Crew Alert System). I want to thank Bob again for providing the FMS-style gauge that I took as a container for the example (see .jpg image attached)Instructions on how to install, some XML macro examples and XMLVarsExample.xml are included in the dowloadable zip:http://www.mediafire...68bi8ug1wfwsx4uComments and suggestions are always welcomedTom

  • Author
Tom,Thanks for the module, haven't had time to test, nor have a use for it, as of yet. :( I do see where it will come in handy though.. Again Thanks.Roman
Hi Roman,I always thought that you dreamed with the possibility to write(L:MyVar:l0) (L:MyVar:l1) (L:MyVar:l2)instead of those fancy macro arrays we had to develope as a workaround because of the limitations found in LVars unable to handle subindex.Now with XMLVars module this is gone forever :( . Take a look at the documentation and the example gauge and you'll see what I'm talking about-.Tom

Tom, I hope my reply didn't come off in the wrong way..

I always thought that you dreamed with the possibility to write
Yes exactly, a "dynamic" 2 dimensional array :( <--- :LMAO:Come to think of it, the project I am working does have a specific use for your module. X=distance (about 40 points), y=ground height (per X), dynamic shifting of Y-->X based on ground speed.. OR something like that :( , that particular coding is weeks ahead..Thanks again Tom,Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.