04-16-2007 11:56 AM
04-16-2007 12:34 PM
04-16-2007 12:50 PM
04-16-2007 02:30 PM
04-17-2007 12:56 AM - edited 04-17-2007 12:56 AM
The OpenG large_file library does deal with these things. It was written for LabVIEw 6.x which had no 64 bit integers. Most WinAPI functions dealing with large integer values for file size, have actually two 32bit integers with one being for the lower significant 32bit and a pointer to a 32bit integer being for the higher significant 32bits and you can provide a NULL pointer for the higher significant 32bit parameter if you are not interested in that. So I would check out that library if you want to know how this is done.
@BryanL wrote:Hi, I didnt got the vi built for calling the dll. The bug I mentioned is from using LabView's "Get File/Directory Info" vi which used a I64 integer and supposed to cover much higher than 4G. From their website, this bug is fixed in their LabView8.2.1 release which i dont have.I am trying to see if I can build my own vi to get the file size by calling the GetFileSizeEx funciton in Kernel32.dll with LabView's function call other libraries. I am having trouble to get it work. I create a reference to a File Path control, then typecasted that reference with integer 0, and send that to the Call Function node. At the output of function node, i specified I64 for file size. This simple vi will crush LabView. Thanks for looking into this.Bryan
Message Edited by rolfk on 04-17-2007 07:57 AM
04-17-2007 11:52 AM
LabVIEW 8.2.1 is free to current members of National Instruments software service programs. If you are a member of the services program, you may visit the NI Services Resource Center, to download LabVIEW 8.2.1 immediately, as well as access LabVIEW related on-demand training. If you are not a service program member, then you may purchase LabVIEW 8.2.1 as an upgrade.
04-17-2007 12:24 PM
04-18-2007 07:40 AM
04-18-2007 08:38 AM - edited 04-18-2007 08:38 AM
Checkout the large-file library. LabVIEW has two API levels for file handling. The low level API as exported from the LabVIEW File Manager interface uses a "File" datatype as file handle. Incidentially on all platforms I have tested (Windows, Mac, Linux) this is the same as the according platform file handle. The other level is the file IO library on diagram level. File refnums are really higher level wrappers around the lower level file handles and the File Manager API exports functions to convert one into the other.
wiebe@CARYA wrote:
The LabVIEW file handle has nothing to do with a windows file handle (although it would be great if it was the same thing, or a way to convert one to the other). You have to open a windows file handle yourself with OpenFile or CreateFile.
Regards,
Wiebe.
Message Edited by rolfk on 04-18-2007 03:45 PM