07-17-2012 06:30 AM
how can I md5 sum individual files contained in an llb file ?
Solved! Go to Solution.
07-17-2012 07:44 AM
I'm going to assume you know how to get the MD5 value. If not ... http://forums.ni.com/t5/LabVIEW/MD5/m-p/1067558
The LLB acts like a container. Thus, you'd have to extract the files out of the LLB and save them as individual files so that you can calculate the MD5 checkusm for each file. LabVIEW has a built-in LLB manager that can be used to convert an LLB to a directory of files.
Note: If you are using the LLB for storing your VIs during development, that is a BAD idea (source code control issues, corruption of one file corrupts the entire LLB, distributed development nightmare, etc...). LLBs should only be used to distribute code, and if you need an MD5 for that, you could just provide the MD5 for the LLB, rather than the MD5 for each file.
07-18-2012 04:24 AM
Would there be a way to convert an llb file to a temp directory within a vi's so that individual md5's for the files within can be calculated ? This is a requirement for my particular application.
07-18-2012 07:25 AM
The LLB Manager is written in pure LabVIEW. The LLB Manager VIs can be found in the <labview>\project\llbedit.llb library. Thus, you could copy your LLB to this temp folder (simple file copy function) and then use the "Convert VI Libraries to Dirs" VI in the llbedit library.