10-06-2020 08:17 AM
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?
10-06-2020 08:31 AM
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
10-06-2020 08:34 AM
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
10-06-2020 08:43 AM
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 😞
10-06-2020 09:19 AM
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
10-06-2020 09:38 AM
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?
10-07-2020 02:25 AM
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
10-07-2020 11:46 AM
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
10-08-2020 08:24 AM
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