is it possible to also write the units to an INI-file?
When i write wavelength = 1.23 nm to an INI-file,
the file contains wavelength = 0.000000
and not
wavelength = 1.23 nm
or
wavelength = 1.23E-9 m
(or
wavelength = 1.23E-9)
In its actual version, the units are stripped from the
number before being written into ini file. The number
written is always in base units, e.g. if you display speeds
in km/h, the number stored on file is in meters/second. That
number in base units is the only available in data since
displayed units are control attributes.
To display base units, one could modify "Format Variant into
String" to get the units using "Get Physical Units" and
format this into a string appended to the number.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=558016
In its actual version, the units are stripped from the
number before being written into ini file. The number
written is always in base units, e.g. if you display speeds
in km/h, the number stored on file is in meters/second. That
number in base units is the only available in data since
displayed units are control attributes.
To display base units, one could modify "Format Variant into
String" to get the units using "Get Physical Units" and
format this into a string appended to the number.