LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create a dll with multiple functions in LabView

Is it possible to create a dll in Labview (v 7.1) with multiple functions. I want to create a dll with an open, close, read and write functions so I dont have to pass all the parameters to each dll call each time. Is this possible to do or will I have to create a different VI to make each function.
Thanks,
Dave
0 Kudos
Message 1 of 3
(3,117 Views)
I'm not sure exactly what you want to do. You can create a single dll with mutiple functions. Each function is a separate VI. Each VI or function call will have it's own set of parameters. Each VI could call subVIs that you can choose not to export as separate functions. You could also have a single VI or function call that does multiple operations based on a parameter you pass to it. Do you want the ability to skip inputting some parameters so that it uses some default like the the last file name used? I've never tried this. What I normally do is have the subVI/function call return a parameter I need to pass to another subVI/function call. For example, if I have an open function in which I need to pass a file name, I have it return the file name so tha
t I can wire this parameter to the write function. This enables data flow which is very nice to have.
Message 2 of 3
(3,117 Views)
Thanks, I never thought to create them as sub-VIs, I was just trying something real quick to build a TCP/IP server into a dll and had cases for read and write, open and close rather than subs. The problem was that my dll had 7 parameters and was only one function, this solves it all. Thank you.
0 Kudos
Message 3 of 3
(3,117 Views)