05-09-2014 04:16 PM
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
05-12-2014 06:54 AM
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.
05-12-2014
07:09 AM
- last edited on
12-13-2024
10:32 AM
by
Content Cleaner
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
05-12-2014 08:32 AM
"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
05-12-2014 09:54 AM
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
05-12-2014 11:57 AM
Yes. You use the Index Array function to get a specific element.