String Variables

User avatar
Posts: 1425
Joined: Mon Feb 14, 2011 5:29 am

String Variables

Postby WarpD » Fri Oct 26, 2018 5:35 am

In the sim, gauges have access to string variables via token variables. As example there is VOR1_IDENTITY. It is my understanding that token variables are considered obsolete and that it is preferred that lookup_var() no longer be used to read sim variables. My understanding is that aircraft_varget() is the preferred replacement function. Unfortunately, it does not support the return of strings. In the Simulation Variables list there is no such variable that returns the identity string of the currently tuned VOR on each nav radio. There is a NAV IDENT, but it doesn't indicate that it accepts an index value.

Is the only way to read string variables to be restricted to SimConnect data reads? Or is there a way to read them via aircraft_varget()?
Ed Wilson
Senior Developer
Mindstar Aviation

Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 1 guest