Menu

making an executable program using h5labview

2022-04-06
2022-04-10
  • matthew a marcus

    I have written a program for the analysis of Scanning Transmission X-ray Microscope (STXM) data which is pretty popular with users and is distributed in the form of a LabVIEW executable. I would like to add the ability to read HDF5 files to it. However, I can't seem to get a simple executable to work. When I try to make an executable out of the simple-write.vi example and run it, it dies with error 7 :Call Library Function Node in H5F.lvlib:H5Fopen.vi:6750001->simple-write.vi, even when I put the executable in the same folder as the source. It it possible to build an executable with this library?
    Matthew Marcus

     
  • Martijn Jasperse

    Hi,
    The DLLs need to be in a subdirectory called "data" relative to the application EXE. I believe this is standard practice with LabVIEW compiled applications, although for various compatibility reasons LabVIEW doesn't correctly locate the DLLs automatically during the build process and you have to copy them manually.

    Since the code looks for this "data" directory, you're getting file-not-found in the CLN. Make sure to copy all the DLL dependencies as well to avoid load errors.

    Cheers,
    Martijn

     

Log in to post a comment.