ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

Using a DLL built with LabWindows/CVI

已解决!
转到解答

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 项奖励
1 条消息(共 4 条)
3,819 次查看

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 项奖励
2 条消息(共 4 条)
3,815 次查看
解答
接受人 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 项奖励
3 条消息(共 4 条)
3,793 次查看

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

0 项奖励
4 条消息(共 4 条)
3,717 次查看