Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a DLL from LabVIEW code

Step 1 - Create a LabVIEW project containing all desired VIs

Step 1 - Project.png

Step 2 - Right click "Build Specifications" and create a new DLL

Step 2 - Create DLL.png

Step 3 - Give your DLL a name

Step 3 - Configure naming.png

Step 4 - Add the desired VI to the "Exported VIs" list

Step 4 - Select Files.png

Step 5 - Configure the calling convention, and other specifics

Step 5 - Configure calling convention.png

Step 6 - When everything is configured as desired, click "Build"

Step 6 - Configure other stuff and build.png

Step 7 - DLL has been successfully built!

Step 7 - Done.png

Comments
Claudio_Guido
NI Employee (retired)
on

Si ma come si aggiungono ingressi e uscite??

Grazie

John80
Member
Member
on

Are there any instructions on how to handle calling into a LabVIEW created DLL with parameters of types such as Cluster and String?

I am specifically interested in how to create a C++ application that will consume a DLL written in LabVIEW.

jcmochis
Member
Member
on

Is there any limitation for a DLL created using a LabView VI, I Mean, it could include any type of SubVIs like database coneectivity VIs? what I need to install on the target computer to be able to use the created DLL maybe a LabVIEW runtime?

Thanks for your support.

Thør
Active Participant
Active Participant
on

As long as what you're trying to do can be done in LabVIEW, you can do it in a LabVIEW-built DLL.  The only requirement as far as NI software is concerned is that for all LabVIEW-built DLLs, you will need to install the LabVIEW runtime on the target that will be using the DLL.  Other than that, it should all just work.

hitguyu
Member
Member
on

Hi Th0r, I noticed that after I managed to build a dll file base on certain LabView VIs, the dll functionality still relies on a folder that consists all the VIs required. Just wonder if there is a way we can get only 1 dll file, with which no additional VIs files need to be released along? Thanks.

saketa
Member
Member
on

Hi,

  I cannot find the "shared library (DLL) in my build specification.

  what is the probleme?

  i'm using labview 2013

 

  Thanks

Thør
Active Participant
Active Participant
on

The options for building applications for distribution are only present if you're using LabVIEW Professional Development System, or if you've purchased the Application Builder Add-on for LabVIEW.  You can check to see if application builder is activated by opening up the NI License Manager application, browsing to LabVIEW 2013 >> Modules, and look at the status of the "Application Builder" entry.  If the status icon is red, that's probably the reason why it's not showing up.  Does this help?

saketa
Member
Member
on

Hi,

I have resolved the C dll generation procedure using labview C generator after activing all needed Labview development system,

But as I’m using the C generator to generate a cvi code from existing labview one (using Modbus protocol). I’m facing a multiple problem (like C generator does not support..)

Is there any TCP/IP based cvi Modbus code for: opening the Ethernet port, writing to a specific DO, and reading from DI. When it’s connected to an iologic

Best Regards,

Abdelhak.

De : Thor.

Envoyé : lundi 10 novembre 2014 17:55

À : SAKET Abdelhak

Objet : Re: - Creating a DLL from LabVIEW code

Community<https://decibel.ni.com/content/index.jspa>

Creating a DLL from LabVIEW code

new comment by Thor.<https://decibel.ni.com/content/people/Thor.> View all comments on this document<https://decibel.ni.com/content/docs/DOC-15556#comment-38887

Contributors