11-28-2007 04:47 AM
11-30-2007 08:25 AM - edited 11-30-2007 08:26 AM
11-30-2007 08:57 AM
11-30-2007 12:12 PM
11-30-2007 03:21 PM
kehander wrote:
So neither the LabVIEW Zip functions nor the OpenG equivalents work on RT targets (i.e. Phar Lap), right?
I agree, this would be nice to have. Isn't there at least a Zip utility that could be executed under Phar Lap through SysExec or something?
As I wrote, anybody having the toolchain for the RT target installed should be able to create a version of the OpenG LVZIP library for that platform. the used zlib functions make only use of a few standard C library functions and therefore compilation of a DLL/shared library for that platform should be very straightfroward. Me not having such an RT target available (and no time at the moment) can't do that currently.
Rolf Kalbermatter
12-04-2007 08:57 AM
I just found out that there is a problem in the Dir2File VIs when they are run on the RIO...caused by the fact that if you convert a path to a string on the RIO it does not convert the same way it would on the PC(!).
This seems very strange as the paths are shown the same way when running on RIO, so why not the converted string as well?
Here is an example:
Conversion on Windows:
The path: c:\test\hello.txt
becomes the text: c:\test\hello.txt
On RIO the path looks the same, however the text becomes:
/c/test/hello.txt
Now this is all fine as long as you are going to use the string on the RIO - there other functions understand that path fine, however if you take that path and use it on a Windows machine it fails. Why are paths represented in Windows-style all the time on the RIO, except when converted to text? The inconsistency is handled on the RIO, but not across to Windows. In this case we use relative paths from the RIO to rebuild a directory structure on Windows and it fails due to this.
The solution for Dir2File is simple enough - either code or decode the relative path correctly, or use a flattened path value instead (the latter might need testing)...I'll upload a fixed version later.
12-04-2007 09:25 AM
12-05-2007 05:03 AM - edited 12-05-2007 05:03 AM
12-06-2007 08:00 AM
I've looked into this a bit more and one possible problem might be the use of the C runtime library in MSVCRT.DLL for a default build of the DLL. I think the Pharlap based systems from NI only come with msvcp71/msvcr71 DLLs for the C runtime if at all. As I do not currently want to upgrade my Visual C installation to 2003 or higher it's a bit hard to create a shared library that could run with this. However I created a shared library that included the static C runtime from Visual C. This avoids the dependency on a specific external Visual C runtime DLL at the cost of extra DLL size. It also adds dependencies on extra kernel32.dll exports so this could be another problem as I have no way to check for the moment if this DLL would run on a Pharlap based RIO or Compact Fieldpoint system.
Mads wrote:
The plan is not to run it on the FPGA, just under RT on the RIO.The functions seem to be there already in LV, it's just that the unzip functionality does not work properly, so it does not seem that far fetched to get native support. As Devin tells in his message that's now been reported to RnD so perhaps in a future release we'll see it. From a cross-target compatibility standpoint it would be good to have, and it fails on Windows as well and is on the standard pallettes so it should definitely work there at least.zlib is an option yes, for our use we'll probably end up just doing some simple G-based file packaging though.
12-06-2007 08:01 AM