LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Tagged Data From Text File

Hi all,

 

Hoping you can help - I am trying to read the data between xml tags incorporated into a text file. 

 

I am able to get the data within the <ExampleData> tags in the attached example and I imagine I could do similar to get all the tag data for the fields within this. 

 

However, is there a trick I'm missing here as the text files I will be reading will be of various sizes (both file size and array(s) size(s))?

 

Any help will be greatly appreciated!

 

Thanks,

 

Scot07

0 Kudos
Message 1 of 4
(1,477 Views)

HI, I will share with you Read from Text File Function

0 Kudos
Message 2 of 4
(1,400 Views)

Hi Raffi.13,

 

As you can see from the example diagrams in my question. I am currently using the read from text file function. The issue with this is that if I am looking to read the text data between hundreds of tags (lets call the number n) within that text file, the number of match patterns required will be 2 times n and will lead to a very messy block diagram. I could maybe create a SubVI to help but it will still be messy. 

 

I was wondering if there is any other method to read the data between XML tags. 

 

Thanks,

 

Scot07

0 Kudos
Message 3 of 4
(1,378 Views)

@Scot07 wrote:

 

I was wondering if there is any other method to read the data between XML tags. 

 

Thanks,

 

Scot07


Have you tried any of the LabVIEW XML parser vi's?

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 4
(1,373 Views)