LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a DLL built with LabWindows/CVI

Solved!
Go to solution

Hi everybody,

 

I am pretty new in the LabWindows/CVI environment, so apologize for any silly question. I have a real-time application running in a PXI, but I would like to "complete" it by adding new functionalities I have in C Code generated from Dymola. I have thought about creating a DLL of that code (using LabWindows) and then insert it in the .vi (the one I have running in the PXI) using the Call Library Function so that I could have the new .vi running in the PXI.

 

Will it work??

 

Thanks

0 Kudos
Message 1 of 4
(3,623 Views)

Yes, LabView can call functions in a DLL created using CVI.

CVI ships with multiple examples that create a DLL.  LabView ships with examples that use a DLL.

It could be a good exercise to build a DLL from a CVI example, and then call it from a modified LabView example.

0 Kudos
Message 2 of 4
(3,619 Views)
Solution
Accepted by topic author Atila_85

Hi all,

 

    AI S is right, you may find this KnowledgeBase and the associated links really helpful. This tutorial seems also interesting. Nevertheless, you should take into account the code will run on a Real Time Platform (such as the functions will run with the same priority as the caller threadand many other issues). Don't forget to FTP the *.dll file to the PXI.

 

    Hope this helps,

David Oña
0 Kudos
Message 3 of 4
(3,597 Views)

Thank you very much for your help. I have finally managed to deploy a very simple dll created with CVI to Labview RT!!!!

0 Kudos
Message 4 of 4
(3,521 Views)