05-08-2021 06:25 AM
Calling C/C++ DLLs in LabView, and change Labview in DLLs.
For example,change panel control's value or run a vi and so on
(Labview调用dll时,dll可能同步反馈数据,需要改变面板某个控制值,或运行某个vi,类似回调函数功能,如何实现)
Solved! Go to Solution.
05-08-2021 12:02 PM
What is the question here?
05-09-2021 07:57 PM
05-10-2021 03:40 AM
@iori_007 wrote:
If action is very long in DLL,how to real time change value of ctrl befor the end of the DLL
You can't access controls from inside a C DLL directly with any officially documented API. What you can do is however to call PostLVUserEvent to send an user event to your applications user event structure and let it respond to that. That requires of course that the call to the DLL function that blocks for this long time is not inside the same loop as your applications event loop and that you made your DLL function multithreading safe as you can't call it in the UI thread context, otherwise your GUI won't be able to update the change on the front panel until your function returns anyhow.