ni.com is currently undergoing scheduled maintenance.

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

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,641 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
(2,588 Views)