LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Easy XML Labview

Hello, 

I am new with all this labview stuffs . I have a XML file in PDFl. I need to read and create a 2D graphic with it.

I have downloaded the Easy XML Toolkit. I was thinking about using "Easy Parse XML" but I don't know how to use it cuz it's my first program.

Is it possible to create the hole labview program with XML ?
How can I read it with labview?

 

 

0 Kudos
Message 1 of 9
(3,813 Views)

Do you know who generated this XML file?

I ask because it was generated from some LabVIEW code, so if you can, ask whoever gave you this XML file if they can share with you some code.

Back to your questions : it's not too hard to write the LabVIEW code to load your XML file into LabVIEW, but if you are new, it's going to take some learning.

If you simply need to get the data and plot it, then yes, you can do it all in LabVIEW.

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 9
(3,803 Views)

also, it's a bit annoying that your xml has been printed into a pdf

do you have the actual xml file?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 3 of 9
(3,800 Views)

I only have PDF or TXT (just like a ctrl v ctrl c from pdf).

Can u tell me what do i need to study to do it?

It's not that easy to find things about labview 😞

0 Kudos
Message 4 of 9
(3,795 Views)

can you send the TXT file then, because the PDF is a nightmare to get data from (it has a lot of extra "-", probably added by MS Word)

The data you need to extract is only the values of also all the channel settings?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 9
(3,780 Views)

I only need the values.

Actually i have just notice that the file its in DP format.

I puted it in a TXT file. Is it ok?

0 Kudos
Message 6 of 9
(3,770 Views)

you do know that the pdf and the txt file don't contain the same data right?

 

I don't know what you mean by "DP format, but I can read the txt file, it's actually xml data in it.

 

Now from this txt what do you need to extract? everything or just a subset of the data?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 7 of 9
(3,719 Views)

I need to extract 

"<Cluster>
<Name>Detected Pulses</Name>
<NumElts>2</NumElts>
<String>
<Name>PD Pulses</Name>"

and

</Val>
</String>
<String>
<Name>Cicles Info</Name>
<Val>NC=120

 

 

I need to creat a 2D graphic with it

0 Kudos
Message 8 of 9
(3,690 Views)

I'm sorry the sound is really bad... I hope this helps.

See attached VI.

 


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 9 of 9
(3,649 Views)