CIPLEO Posted January 25 Report Share Posted January 25 (edited) Hello, I am trying to interface the HDF5 DLL to read the contents of a file in the same format. My problem appears when I try to read an attribute composed of a "char*". When I try to read it through the "Call Library Function Node" LabVIEW refuses to read the string. I tried several settings of the call dll, trying to read a string by testing the 4 proposed formats but also by reading an array of U8 that I transform into string thereafter. For some settings LabVIEW crashes, for others it returns an incomplete and incorrect string. Look at the code : Not being able to read directly with LabVIEW I tried in C to read this same file by using the same functions, I obtain well the expected string. What confirms me in my idea that the problem comes from LabVIEW or my parameterization of the call of the DLL. Can you help to understand my problem ? I put you in attachment a file composed of the VI on which you have the code trying to read the DLL, the dll hdf5 and a capture of the code in C. NB : I use LabVIEW 2020 64 bits. DLL_HDF5.zip Edited January 25 by CIPLEO Quote Link to comment
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.