LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming a .txt file and displaying a data in Labview

Hi and Thank You,

 

I need help for a project I am doing,

 

I need to take a data from .txt file, the program need to open it as a excel chart and need to put each value separate by a coma in a different cell. I need to take the value of this cell (that's changing place by +1 each report) and display it in Labview. Not only that, but the report is not even on the same computer, but the file is on a pc connected to internet.

 

 

Thank You And Sorry for the poor grammar.

 

SG

0 Kudos
Message 1 of 6
(2,938 Views)

Could you provide an example file?  And also what you have already tried?

 

It sounds like you are just reading a comma delimited text file.  In that case, just use the Read From Spreadsheet File function with a comma set as the delimiter.  You will now have a 2D array of all of your data.  You can manipulate it from there however you want.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(2,879 Views)

Thank You for your answer ! 

 

I didn't try much atm, we have someone at the university who was making many Vi but some of the VI he was using arent support anymore (AKA Write Charactere to files)

 

The fact too, is that I don't know how to use those VI, just that I know, the comma delimiter is just /c in a control box ?

 

And the main reason why I posted here, Is because I didn't find any example of the write/read function and I still don't know what kind of specificity i can have with the VI atm , even the really good post of one of your co-worker (http://www.ni.com/newsletter/51339/fr/) didn't help me much 😞

 

Thank You For your Time,


SG

0 Kudos
Message 3 of 6
(2,872 Views)

"Read from spreadsheet file" can easily read comma separated files. If you have normal network access to the target it's just a filepath question, as P:\projects\result.txt

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(2,851 Views)

Hi,

 

Can You Specify which row or colon u want the value to be read ? What I can see from the Read VI is that u can see a row or a multiple of row, but i just want one specific cells,

 

Thank You


SG

0 Kudos
Message 5 of 6
(2,835 Views)

Yes.  You use the Index Array function to get a specific element.

0 Kudos
Message 6 of 6
(2,819 Views)