LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert/Read XML file from Globalstar SPOT

Hi every one,

 

I am trying to read the XML file I get from my SPOT GPS, but I am not good at this, I have try to do simple VI but it wont work 😞

 

 

// Lars

WiFi Guru, proud holder of world record in WiFi, 421 Km @ 2 mbit/s
Download All
0 Kudos
Message 1 of 5
(3,472 Views)

"It doesn't work" isn't very descriptive.  How is it not working?  Do you get error messages?

0 Kudos
Message 2 of 5
(3,449 Views)

Sorry for the short question, I have try to get this to work, I get :  Error 1103 occurred at Unflatten From XML in Untitled 2,

Possible reason(s): LabVIEW:  The XML tag describing the type of data is not recognized.

 

 

// Lasse

WiFi Guru, proud holder of world record in WiFi, 421 Km @ 2 mbit/s
0 Kudos
Message 3 of 5
(3,427 Views)

Your XML is not made with LabVIEW, and LabVIEW can't transform it into a cluster.

LabVIEW does not know how to, as there are no information about datatypes in the XML.

 

You need to contruct your own file translater. You can use the basic XML functions for that.

0 Kudos
Message 4 of 5
(3,418 Views)

Hello,

 

Have you already had a look at the following example from the NI Example Finder? (Help>Find Examples...)

"Load XML with Parser API.vi"

 

This VI can already give you an idea on how to create your own parser.

Do all of your produced/used xml-files have the same structure?

 

Can you share a first try based on the example above?

 

 

PS: This page might provide some interesting information about creating XML files from LabVIEW clusters (the opposite of what you are looking for):
https://forums.ni.com/t5/Components/Reference-Library-for-Converting-Between-LabVIEW-and-XML-Data/m-...

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 5 of 5
(3,375 Views)