LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to count the numeric data of text file

hello,

 i have to count the quantity of data(numeric values) which i am saving in a text file.does anybody knows how to count?

thanks
kind regards
robin
0 Kudos
Message 1 of 12
(4,558 Views)

Hi dudhar,

how do you define numeric values? Are this "hello 12 nice 11 day" two or four numeric values? Can you give us an example of your data and the expected number of counts?

Mike



Message Edited by MikeS81 on 02-27-2008 03:12 PM
0 Kudos
Message 2 of 12
(4,556 Views)
hi mike,

first  tys for reply my values are like " 20734    20733    20736    20735    20734    20736    20735".

kind regards
robin
0 Kudos
Message 3 of 12
(4,549 Views)

Hi Robin,

Do you want to count the data already stored in a data file or count them as you write the values to the file?  In the former case, you can use the "Spreadsheet string to Array" function followed by "Array Size" function.  In the latter case, you can just use a numeric indicator and increment everytime you write the data to the file.

Vikas

0 Kudos
Message 4 of 12
(4,539 Views)

hi dudhar,

if you have only values like the sting you show, you can use the "spreadsheet string to array" function with delimiter tab or what ever is between your numbers. After that count the number of enties in the array.

Mike

0 Kudos
Message 5 of 12
(4,537 Views)
Thanks vikas ,

yaa 1st case will do n let u know.tys
0 Kudos
Message 6 of 12
(4,533 Views)
thanks mike will do n  let u know .tys alot.
0 Kudos
Message 7 of 12
(4,530 Views)
thanks vikas n mike now it's working .
tys alot.
0 Kudos
Message 8 of 12
(4,517 Views)
hi vikas,
    i have implemented pulse generator in my labview program for conducting single short n single short burst test .actully my program is having three hardware part
1) Tdc-time to digital converter
2) motherboard -which consist of FPGA chip and S-RAM for data storing
3) usb raw 2.0 -from where i am reading the data on my labview software

i am transfering the data from TDC to MB(motherboard) by enableing the burst mode (from labview side)and from MB to USB end point by enabling auto mode(also from labview side) .my programe is working normal in timer mode ,in which control of data is not in my hand ,but when i am running it in single short mode for specific data ,usb is not reading any data.
0 Kudos
Message 9 of 12
(4,487 Views)

Hi Robin,

Since it is a different topic, I suggest you create a different thread so that others may be able to help too.

Anyway.. I have not worked with USB protocols, but I assume short mode refers to some sort of test mode.  Have you checked if the motherboard supports or needs to be re-configured for this mode? 

Vikas

0 Kudos
Message 10 of 12
(4,485 Views)