05-16-2010 05:32 PM
Hello,
I am currently parsing string data and saving it to a cluster using a VI that knows about the data types (attached image).
I was wondering if the same can be done in a generic VI by just using a file which has information about the data type (attached txt file, it is actually in xml format). This could give flexibility if the data types were to change (since I won't have to edit the data types in VI anymore).
Comments/suggestions are appreciated. Thanks!
05-17-2010 01:50 AM - edited 05-17-2010 01:53 AM
It's definitely doable but not trivial at all. Similar challenges have taken me usually anywhere from a few days to several weeks of (not always continues) programming.
In your case you would first need to parse your XML format into some other form and then go from there, defining some intermediate datatype description. Then have a datatypepacker and unpacker much like what you can find in the OpenG lvdata package.