Do not put the refnums on file since they might differ from one run to the
next. Use the Instrument value to select one of 4 refnums to your instrument
clusters.
If you have only numeric values, use %f format to scan Value to a number. If
Value may represent different datatypes, (numbers, booleans, strings, path),
you will need a way to identify the type. You could use the ClassID property
of the control to scan the string according to control datatype.
Jean-Pierre Drolet
"mroberto"
a écrit dans le message news:
50650000000500000029350000-993342863000@exchange.ni.com...
> Jean-Pierre,
>
> I like the idea of using Refnums, however, how can a refnum value be
> written to, or read from, a file? I haven't seen any way to convert it
> to another data type, or extract a value, if indeed it's that simple.
> I think this approach would be the most dynamic if it'll work with the
> config files.
>
> Thanks for you help!
>
> Mark Roberto
> MD Robotics