From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User Events in DLLs created using Labview

I am trying to communicate back and forth from a dll created using Labview with a Labview vi. I can send a message to the dll but I can't get the message back from the dll. Any help would be appreciated.

 

Here is my main vi that sends a message and tries to receive a message from the dll.

MainVi.PNG

Here is the vi that I turn into a dll with Labview. I can see the message come from my main vi but I can't send it back.

dllvi.PNG

0 Kudos
Message 1 of 2
(2,040 Views)

Hi Dandrews17,

 

I think one thing that might help is configuring your DLL to have a return value of message out. I'm not sure how the nested event structure that you have would affect this behavior but might be a cause of why we never see a return message. What is the ultimate goal of your application?

 

Here is the knowledge base article on calling dlls just for reference:

Calling a Dynamic Link Library (DLL) from LabVIEW

 

Best,

TyVo

0 Kudos
Message 2 of 2
(1,987 Views)