09-14-2006 01:43 AM
09-14-2006 02:56 AM - edited 09-14-2006 02:56 AM
09-14-2006 07:08 AM
Very good example Gerd,
One way to overcome the overflow problem is to implement the solution (shown below) within a loop. You read the file line by line and keep adding the number of occurrences of each line to the total. In a document, a single character, such as a space or letter "a" will occur very often.
I think "Read lines from file.vi" could be useful or you can implement something similar to suit your needs. Another method is to read the text in blocks and index each block at a time for every iteration of the loop. Make sure you keep track of the end of the file.
RayR
09-14-2006 07:40 AM
hello gerd,
thanks for ur good reply,
and Joe i request you to provide the example that u r talking about,
i think u missed attaching the file,
regards,
santosh.
09-29-2006 02:22 PM
Sorry santosh,
I should have revisited this thread. I'll try to post an example over the wekend.
RayR
09-30-2006 03:35 PM - edited 09-30-2006 03:35 PM
Another option would be to read the file and input the string into the Spreadsheet String to Array function (using your character as the delimiter) and then use the Array Size function on that array.
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Message Edited by tst on 09-30-2006 11:35 PM
01-31-2013 03:31 PM
Hey Gerd,
What is the function you were using in that VI?
If you still have the VI itself that's even better..
Yours,
mm035b
01-31-2013 04:11 PM
@mm035b wrote:
Hey Gerd,
What is the function you were using in that VI?
If you still have the VI itself that's even better..
Yours,
mm035b
Which function are you referring to?