LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interface with program from dll

Spoiler
 

I am trying to figure out how I can operate this light bar through labview. I have a driver library (attached) that appears to be used through visual basic. I am wondering how I would be able to somehow use labview and this library to operate (turn on and off certain lights) the lightbar. I know this is a little vague but I am not sure where to start, thanks in advance

0 Kudos
Message 1 of 2
(2,417 Views)

This looks like it should not be too complicated. You will need to use Call Library Function Node from the LabVIEW palettes to call the functions in the DLL. Fortunately it appears there are only 4 functions and it's all standard data types. The byte data type is a U8 in LabVIEW, and the *pData parameter is an array of U8.

 

If you have a header file (.h) that came with the library, I would start by using  LabVIEW's DLL Import Tool (Tools menu, under Import) and see if it can correctly generate VIs for you. If not, then you'll have to do it by hand, which still should not be too difficult.

 

I hope that's enough to get you started. If not, attach your VIs to a reply so we can see how you configured the Call Library node, and from there we should be able to help you set it up properly.

0 Kudos
Message 2 of 2
(2,390 Views)