LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

please how can i read file, to find number of lines and to extract number of block data, and number of data in each block

please if you can give me an example
0 Kudos
Message 1 of 4
(2,742 Views)
I'm not quite sure how you are wanting to implement the "block data" idea, but you should start with Read Lines From File.vi to learn how to read the number of lines. The implementation of this VI will give you some clues how to do that.

When you open a file, it tells you the size of the file itself. You could use this to split it up into blocks and then read that many bytes at a time.
J.R. Allen
0 Kudos
Message 2 of 4
(2,742 Views)
I attach a file wich i want read:
1- to know a number of lines in file
2- from the second line of the file to the line befor NCOUNT, put the lines in array like this, Variable and values like this Ex: TIMET 1 0 1 ..... first line

and put the values of NCOUNT in array
I attach a file
Download All
0 Kudos
Message 3 of 4
(2,742 Views)
I think everyone's going in circles with what you're needing. I would help if you created a VI with some array constants with what you expect to see. Don't forget to select make current values default before you save the VI.
0 Kudos
Message 4 of 4
(2,742 Views)