mroberto wrote in news:5065000000050000005B350000-
993342863000@exchange.ni.com:
> Sergey,
>
> If I understand you correctly, the import/export strings feature in
> LabVIEW wouldn't give me the versatility that I require. For example,
> it only exports the default values for any control, whereas, I need to
> export the current value as it pertains to the current data
> acquisition stream.
>
> If I've misunderstood your idea, or if you can think of anything else,
> please post it when you have the chance.
>
> Thank you!
>
> Mark Roberto
Mark,
I thought that there is a way of store ALL control's data (even
dynamically) to file and retrieve this data from that file. I don't see any
troubles to use binary file and avoid most of the parsing issues.
To make this: open VI reference -> get all control values and store these
values directly to file (you want to call it configuration file).
I don't see why do not use such (binary) file as a configuration data file
for your instrument. Editing text file manually in notepad-like editor? You
have LabVIEW in hands. Give to the author of this text file your utility
and he'll send many thanks to you.
If you can't avoid using text based file like you requesting, use simple
conversion vi and text row format like:
Instrumentfile_nametest _number
Conversion utility is as simple as front panel with desired controls
identical to instrument and Get/Set all control values. Use your instrument
itself for this configuration if you like.
This thought could be implemented independently of your instrument type and
controls shape on the front panel. So, cluster or array of controls or
anything else doesn't matter. Dynamically? I think yes.
This is just a sort of Jean-Pierre solution with references.
You asked ideas. This is one, may be stupid but real. Exact implementation
depends on your fantasy and style. My trial to make it in a minute was
failed as I see, sorry for that.
Good Luck,
--
Sergey Krasnishov
________________
Automated Control Sustems
National Instruments Alliance Member
Moscow Russia
http://acs.levsha.ru