LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems accessing the manufacrurer dll

I am trying to communicatete a Gigahertz-Optik optometer using dll file provided by the manufacturer. I have Labview 7.1 and operating on Windows 2000. After a proper function is selected in the "Call library Node" and excpected assignments done, the program crashes.

 The error message reads, "An exception occurred within the external code called by a Call Library Node. This may have corrupted LabVIEW's memory. You should save any work to a new location and restart LabVIEW. VI "xyz.vi" was stopped at Call Library Function Node 0x448 of subVI "called-function.vi" ".

I have attached my program and a header file provided by the manufacturer. ANy help would be appreciated.
Download All
0 Kudos
Message 1 of 2
(2,544 Views)
Can't access the DLL, but my guess is that it's because you're not providing a string to use as the buffer for the error message. Unless the DLL creates this dynamically, it's probably expecting you to pass in a buffer. I would try wiring in a string of adequate length. I would also change the parameter from LStrHandle to just a C string pointer.

I would strongly suggest that you should look at the shipping examples, as there's a very good example that shows you how to call functions in a DLL using a variety of parameters.
Message 2 of 2
(2,523 Views)