LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data to a dll via CallLibraryFunction Node

I have neither the time nor your software to do the whole thing, but this is a first setup on how it could be done. And yes beware, it's simply a quick and dirty first attempt. No compiler has been tried on this code, so expect typos and minor issues, as well as additional settings in your compiler environment to make it find the include headers for your DLL. Since it uses LoadLibrary() no link libraries other than the standard runtime libraries should be necessary, but your final software when you build your application as an executable of course will need the Telops software to be installed separately in order to work.

 

 

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Download All
0 Kudos
Message 11 of 13
(398 Views)

Hi Rolf,

 

Thank you for the updated, and greatly simplified wrapper. I was able to get it compiled and working to a certain extent. Unfortunately, I am still receiving Library Error -201: Invalid Data Format when attempting to pass an Unsigned Byte Array to ReadRegisterData.

 

I realize that without the hardware and software, your ability to help troubleshoot a library error is very much limited but if there is any advice you can provide on how to better handle passing data to/from a dll I would very much appreciate it.

0 Kudos
Message 12 of 13
(342 Views)

I would need to see the code you wrote and the according VIs.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 13 of 13
(49 Views)