LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PDA File/Directory Info Vi supposed to work with WM5.0?

Does anyone know if this is supposed to be supported by PDA (Version 8.0.1) ... I've tried to use it but it doesn't return a directories contents (number of files) ...it will return if it is a directory, also if pointed at a file ... it will return with the files size .. what I'm really after here is the number of files in a directory ... has anyone got this to work?  Thanks in advance ....

Is there a list of VI that work and ones that don't in regards to PDA ... if there is, could someone point me to it ... if not  ... NI - is this goin to happen anytime soon?  This would help those of us attempting to code with LV PDA greatly  ...

Greycat
0 Kudos
Message 1 of 18
(7,304 Views)
Hello,
 
How about using the List Folder function (which returns and array of file names given a folder path) along with the array size function - that will give you the number of files in a folder.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 18
(7,281 Views)
Yes the List folder function works great ... Thanks  ... Do you know if the File/Directory Info vi is supposed to work .. if it is supposed to work then I will report it to NI ... if not then it would be good to know ... Do you know of any list of vi's that do not work with LV PDA?

Greycat
0 Kudos
Message 3 of 18
(7,275 Views)
Hello,
 
I don't think this is documented as a problem yet, but I do see the same behavior.  The Help file specifically indicates:
 
"size indicates the size of the file or directory specified by path. If path specifies a directory, size indicates the number of items in the directory."
 
However, when I use this with path to a non-empty directory, I get a size of 0 returned.  I have filed a corrective action request to R&D on the matter (CAR #: 3X7AN9SQ) so that it can be addressed for a future version; hopefully the workaround we noted here is acceptable in the mean time.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 4 of 18
(7,266 Views)
Great ... glad to see that things are being done to make the product better ... There really should be a complete list of bugs that are pending fixes so that we don't all have to find these things out the hardway, or at least so the R&D department doesn't get a whole bunch of requests for the same problem ... anyhow .. thanks for looking into this .. and the work around will work just fine I think ...

Greycat
0 Kudos
Message 5 of 18
(7,265 Views)
Hello,
 
No problem, and I agree that a published list would be nice.  Unfortunately, I don't have the authorization to make such a list public 😞
 
However, I'm glad in this case there is a reasonable workaround!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 6 of 18
(7,258 Views)
 

This was reported to R&D (# 3X7AN9SQ) and was fixed in LabVIEW 8.2 PDA. 

Thanks!

Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 7 of 18
(7,107 Views)
It nice this bug was fixed in PDA 8.20, but unfortunately this download is not availiable from ni.com's download site. At least I am not able to find it. LabVIEW PDA Module Version 8.0.1f1 for Windows 2000/XP -- PocketPC is there and all the other version of PDA, FPGA, DSC etc. but not the 8.20 PDA module. Could you provide me with a download location ? Even a beta version will do just fine, it has to be better than the current version.
 
søren
0 Kudos
Message 8 of 18
(7,070 Views)

Soren,

It's available here.

 
--
Michael P
National Instruments
0 Kudos
Message 9 of 18
(7,065 Views)

Thanks Michael, I really apriciate that.

You dont by any chance know how to avoid the error -1073807202 (see below). I get this error when using the VISA functions of the PDA 8.20 (nice to have them back btw). Is there a runtime version of VISA that needs to be installed on the PDA target?. I get the error when trying to open a com port using the standard VISA open vis. I have tried this on the TPC2006, NP800S and NP880S (first two ones in CE42 the latter in CE50), all three of them return the same error. Its a pity cause I really would like to get away from the old serial vis. I have not been able to find VISA drivers for PDA, so I think the built app. shoule include this by default, am I wrong here ?

søren h. jensen

 

 

Error -1073807202 occurred at an unidentified location

Possible reason(s):

VISA:  (Hex 0xBFFF009E) A code library required by VISA could not be located or loaded.
=========================

0 Kudos
Message 10 of 18
(7,029 Views)