LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Parsing - Custom Format

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!

Download All
0 Kudos
Message 1 of 2
(2,569 Views)

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.

Message Edited by rolfk on 05-17-2010 08:53 AM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(2,536 Views)