LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with invoking a dll into LabView

I have problems with invoking a dll in LabView. I want to control a lightmeter via the serial port. I got the dll from the manufacturer of the lightmeter. It came along with example files for Excel and Visual Basic. There everything works fine. In labview I can open/close the COM port using the dll. But as soon as I want to make a measurement using the appropriate function there comes an error message starting like this: "An exception error occured withing the external code called by a Call Library Node...". On the lightmeter I can See that it took the measurement but sometimes after that the error must occur.
I think I tried everything possible setting for the library node and it still won't work.
I'll atta
ch the files.

Maybe I have not thought of a little thing or it doesn't work at all but at the moment I don't know what to do! I would appreciate any suggestions an this problem
Thanks
p.s.: tried to post the dll Manual but seemed to be too big (pdf 340kb) so i posted a screenshot of the fuction i used in the VI hope this is enough
0 Kudos
Message 1 of 2
(2,498 Views)
The doubles for the call to

cs100aMES

are by ref. (This function is called from selector frame #1)

You are passing them by value which is an incorrect type. I tried passing them by pointer and it seemed to work just fine.
Message 2 of 2
(2,498 Views)