LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi thread access to a .Net dll?

Hello

I do have a .Net dll which runs two threads in parallel. After using the dll in LabView it seems that I have only access to the thread where I do program my HW. I know this because the programming runs till the end.

Now I have the problem that the other thread - which runs the status update - is not accessible and therefore I do not have any status information!

 

What I need to do to have access to both threads of this .Net dll?

An example would be great therefore.

 

thanks in advance

                        

0 Kudos
Message 1 of 3
(2,730 Views)

Hi, could you post some example VIs so I can reproduce it on my PC?

 

Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 2 of 3
(2,694 Views)

Provided they are both running in the same process context you should be able to put all of your dll calls inside a single Action Engine that in turn is shared between the two threads.

 

Just triyng to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,690 Views)