LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PocketPC String to Path Oddity

I'm converting a 7.1 PocketPC app to v8.  It looks like when I recompile my program the string to path primitive yields an empty path in version 8.  So I build another app from scatch in version 8 using the string to path primitive and everything works fine.  There is something fishy going on during the conversion process.  Can somebody reproduce this problem?  Any suggestions?
 
Robert
0 Kudos
Message 1 of 6
(2,962 Views)

Robert,

If you wanted to post a sample VI I can give it a try. 

Hope that this helps,
Bob Young
0 Kudos
Message 2 of 6
(2,947 Views)
Here is a snippet of the code converted from 7.1 to 8.  You have to create a PDA 2003 DEVICE project, enable debugging and probe the string to path primitive.  The string to path is empty!!!Smiley Mad
 
 
0 Kudos
Message 3 of 6
(2,932 Views)
I forgot to add go to region on the bottom left and select Los Angeles as an example.
0 Kudos
Message 4 of 6
(2,933 Views)
No way to run your app : "Error executing. The application may not have been executed".
This being said, your vi seems somehow complicated !.. Could you try to reproduce the problem on something simpler ?
I have verified that the String to Path primitive was working on my PDA.
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 6
(2,925 Views)
OK folks, here is the deal.
 
When converting from v7.1 to v8, you have to do 2 things.
 
1. If you use the read from VI primitive in 7.1 and you read in a binary file, the conversion to 8 places a read DATALOG file primitive.  You have to replace the read DATALOG file VI with read BINARY file primitive VI.
 
2. Binary files in V7.1 will NOT work with V8.  Therefore, one has to save the binary file in v8 using write to binary file primitive in version 8.  I had to go through all my binary files and do this conversion.
 
The string to path primitive actually gives the correct path after I place a path indicator on the output of the primitive.  When I probe the output, I get an empty path.  This led to mass confusion.  So the events that leads to major head pains is as follows:
 
a. Probing string to path primitive on the output yields an empty path in dubugging mode on v8 pocketPC module.
b. From line item 1 above, I get an error from read Datalog file primitive.  Hence, path confusion cuz probe gives empty path
c. From line item 2 above, I get an error from read Binary file primitive.  Hence more confusion.  Do the conversion and everything works out.
 
I hope this saves somebody else some time and pain.
Message 6 of 6
(2,911 Views)