LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How does one read memo pad items in Palm PDA?

I would like to read a memopad text file into my LabVIEW Palm PDA compiled program. I would think that this would be easy?
0 Kudos
Message 1 of 5
(4,598 Views)
Hello,

You should be able to access a text file on your PDA if you use the correct file path and file name from within your program. From the Palm, this is usually just the file name (like "textfile.txt") since there is no real directory structure. So, if you create a string constant, use the filename, convert it to a path, and use that for your File I/O VIs, you should be able to access the file. (If you type the filename into a path constant, it will automatically add the "C:\", which is the reason for the conversion.)

Have you tried this? Do you get any errors? What goes wrong? If you'd like, I can try your program here to see if I can reproduce the problem and offer any further help.

Liz Fausak
National Instruments
0 Kudos
Message 2 of 5
(4,598 Views)
I need to read the data that is in the Palm OS program "Memo". This is not a text file that was created using a LabVIEW product, but the data in the built in Palm feature.
0 Kudos
Message 3 of 5
(4,598 Views)
I am also curious at how you do this with the Palm Pilot.

I understand what Liz is saying because I was able to do it that way using HP's PDA running Win-CE.

Reading the memo on the Palm is a completely different story. If you are successful, let us know how you did it...

Thanks... and good luck.

-JLV-
0 Kudos
Message 4 of 5
(4,598 Views)
JoeLabView wrote:
> I am also curious at how you do this with the Palm Pilot.
>
> I understand what Liz is saying because I was able to do it that way
> using HP's PDA running Win-CE.
>
> Reading the memo on the Palm is a completely different story. If you
> are successful, let us know how you did it...
>
> Thanks... and good luck.
>
> -JLV-

The source code of the Memo application is shipped with CodeWarrior.
The location will be something like C:\Program
Files\Metrowerks\CodeWarrior\(CodeWarrior Examples)\Palm OS 4.0 SDK
Examples\Memo

I haven't read all the source code,
but it seems that the Memo application creates one database that
contains records that are the memo items.

If you just need to read the texts of a memo item,
I th
ink you can write a C function that opens the database, gets the
record associated with the memo item, reads the records, and returns a C
String.
Wrap this C function with a Call Library Node to use it from LVPDA.

I imagine the prototype would be something like
char* GetMemoText(uInt32 index) where index is the index of the memo item.

miko.h
0 Kudos
Message 5 of 5
(4,598 Views)