From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW XML, GXML, or EasyXML?

Solved!
Go to solution

I'm developing some routines to collect behavioral data.  I want to generate a "Header file" that contains two kinds of data -- Experiment-wide (constant) data, such as the name of the subject, the settings of the equipment, date, etc., and "trial-by-trial" data, such as what stimulus was used and what response was recorded.  I will also be collecting analog and digital data in separate files, and will record "pointers" into those files as part of the "Trials" data.

 

It occurred to me to use XML to write the Header File.  My thoughts are that being "human-readable" was a plus, and the file format would "naturally" be driven by the data that is generated.

 

I notice that there are three sets of XML routines, the "native" LabVIEW XML VIs, an NI "package" called GXML, and a set of routines from JKI called EasyXML.  Other than assuming that EasyXML is "easy-to-use", are there any recommendations or suggestions as to which to use?  Do they have different functional properties?  What are the reasons to prefer one over the other?

0 Kudos
Message 1 of 6
(3,578 Views)

Of the options you gave, I would choose JSON strings...

 

It's still human readable, a lot smaller than XML and is trivial to convert front and into native LV data structures -- at least in LV 2013. 

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,558 Views)

@mikeporter wrote:

Of the options you gave, I would choose JSON strings...


What is a JSON string?  How do I learn more about this option?

 

BS

0 Kudos
Message 3 of 6
(3,541 Views)

Google "JSON".

 

The name stands for JavaScript Object Notation and it is a standard. LV2013 has built-in functions for converting native LV data structure into JSON and converting JSON back into native LV data structures.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 6
(3,532 Views)
Solution
Accepted by topic author Bob_Schor

After doing some tests, the Winner appears to be .... (drum roll, please) .... GXML.  It produces "clean-looking" output, is fairly easy to use, and has "modifiable" features (I've made a few "minor improvements" that make it more forgiving of the data I'm throwing at it).  Here's hoping that it continues getting support from the Community and from NI, and maybe becomes better known and more easily available.

Message 5 of 6
(3,467 Views)

I would like to point to another alternative. We created a library that is similar to GXML but is based on cluster references. It offers more flexibility and can easily be used with LabVIEW classes.

 

Data Converter XML

 

Cheers

0 Kudos
Message 6 of 6
(3,328 Views)