Sign in to follow this  
Guest

Passing parameters from panel.cfg to XML gauges

Recommended Posts

Hi XML-experts ...Can someone tell me if it is possible to specify XML variables from the calling panel.cfg file ??Some something like:In Panel.cfg:gauge01= example!test, 0,100,10,10, "number"And in gauge Test.xml:.... "number" (>G:Var1) .....Is this possible ?If so, how, and can you give an example ?If not, is there another way of passing info to an XML gauge (e.g. via an .ini file or alike ?(other than using L: panel-wide variables between XML gauges) Thanks in advance,Rob

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

I've read that this is possible for C gauges but do not know if it works with XML gauges. I suspect this is something that MS left out, but you could try. Perhaps it works like the stdin vector assigning values sequentially to GVar's.I suppose you could make a small 'database' of values using the L:vars by giving them a variety of fixed values for use in other gauges.Steve

Share this post


Link to post
Share on other sites

Hi Steve,I already tried that with the Gvars, but unfortunately that is no "hidden" feature :-)And I did consider making a simple gauge with only L: Vars definitions for the other gauges (like a sort of .ini file), but that would mean that users of my panel have to edit this ".ini gauge" manually to set the right parameters.And for most Flightsimmer, editting a panel .cfg file is already sometimes more than they can handle :-)Thanks anyway.Rob

Share this post


Link to post
Share on other sites

Hi,maybe that works with JAVA! I also need something to read/write to a file. Unfortunately I've no expierience in programming JAVA. Maybe someone else could help???regards,Franz

Share this post


Link to post
Share on other sites

I believe I've read somewhere that it is supposed to be passed to the gauge as a string. Did you try any of those "horrible" string commands? Don't have any experience with concatenating strings and the like myself though.But I also think to have read that it is not possible. But on some (other) occasions I've proven these "not possible" statements wrong.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this