LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading text file in PDA prblem

I have made a vi that reads data from a text file (about 1084 characters) and stored in a string indicator. After that I search for 12 different words in this string. My vi works fine in my PC but not in my PDA. However if the text file is smaller (about 200 characters) everything is ok in my PDA. Is there any limitation on file sizes or in indicator sizes in PDAs?
Thank you.
0 Kudos
Message 1 of 6
(4,835 Views)
I wrote a program that wrote strings to the PPC emulator string indicator. It got up to 32758. Another test went up to 30343.

I think that if there is a limit to the file size of the PDA that it is due to the amount of RAM. Did you get an error and what happens if you read 200 characters at a time?
0 Kudos
Message 2 of 6
(4,835 Views)
I didn't get any error in my program. When I run it in the PDA it doesn't answer to any action. However it works fine when it reads 200 characters at a time.
I have tried to read the file by blocks and it works in my PC but not in my PDA.
Anyway, thanks for your comments Jeremy.
0 Kudos
Message 3 of 6
(4,835 Views)
Hi Antonio!
Did reading blocks of 200 characters fix your problem ?
I have just the same problem as you. The application works fine when run at PC, but when downloaded to emulator or Pocket PC the app. crashes. I've tries reading in smaller blocks, but it does not fix my problem. With file sizes less than 1kB bytes (I've not found the exact limit) it works fine, but with files greater than 1kB the app. crash. No error messages are shown. (I've not attatched my source files, they are basically the same as yours)

If you have found a soulution to this problem please let me known.

Regards
Lars Erik
0 Kudos
Message 4 of 6
(4,835 Views)
Hi Lars!
In my case I can reduce the text file to 200 bytes and it works fine, but I haven't studied where the limit of bytes is.
I made another test trying to read the file by blocks but it doesn't work even with the 200 bytes file.
If I have more news about this issue I'll keep in contact with you.

Best regards.
Antonio.
0 Kudos
Message 5 of 6
(4,835 Views)
Hi again, here you have a vi that reads any text file in PDA. It doesn't matter the size of the file. The vi reads the file by blocks.

I hope it can help you.

Regards.
Antonio.
0 Kudos
Message 6 of 6
(4,835 Views)