Sign Up

Details

OpenG LabVIEW ZIP Library v5.0.0-1 by OpenG.org is incompatible with the current release. Functions have changed and connector panes have changed in ways that aren't straight forward to fix.

Comments

Rolf Kalbermatter Unfortunately there is no easy way to make the new functionality fully backwards compatible without duplicating most of the code.
 •  Reply3 weeks
Rolf Kalbermatter Hmm, you are using the private VIs from the package. What a naughty boy! :-) Let me think about a possibility to provide a more official method to do that.
 •  Reply3 weeks
Brian Hoover Yes sorry I dug into the VIs more than the exposed API shows. This was partially so I could get a progress update on how that operation was going. I also see the initial Prepare for File Insersion also used a few internal functions. I think I could update my code to work with the newer version if I had some time but I saw it wasn't a straightforward drop in replacement.
 •  Reply2 weeks
Rolf Kalbermatter I was a teasing you. :-) Digging in open source software is always a valid thing to do, but it has some risks such as what you found out. ;-) I'm happy to announce that I was working on a new update 5.0.2 that provides more official APIs to do junk sized operation on file transfers into a ZIP archive. That should fix your use of private VIs as far as I can see.
 •  Reply2 weeks
Rolf Kalbermatter Version 5.0.2 has two new low level functions ZLIB Store File Prepare_ogtk.vi and ZLIB Store File Continue_ogtk.vi. The Prepare determines the soruce type, and then creates a new entry in the archive, while the Continue can be called with a chunk size after which it will return and then you can call it again and again until the "finished" boolean is true. No cleanup is needed after that as the file entry is already properly closed in that case. You do need to convert the LabVIEW path to a Wide path using the FILE Create Wide Path function from the Advanced File-IO palette. And store this path and the file transfer info to pass to subsequent calls of the Continue function.
 •  Reply2 weeks
Rolf Kalbermatter You also should store the file type from the Prepare and pass it to the continue.
 •  Reply2 weeks
Rolf Kalbermatter You also should store the file type from the Prepare and pass it to the continue.
 •  Reply2 weeks
Rolf Kalbermatter You also should store the file type from the Prepare and pass it to the continue.
 •  Reply2 weeks

Please sign in to leave a comment.