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.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

C# wrapper calling C dll used by teststand

Hello, 

I have a unmanaged c dll used in a C# wrapper through dllimport. The wrapper dll works perfectly outside testStand, but when I try to call its functions that refers to the c dll from teststand I get a system level exception or extremely strange results form my functions. 

ANy advice?

Thanks and best regards,

Francesca Galluzzo

0 Kudos
Message 1 of 2
(860 Views)

Hello Francesca,

 

I am not familiar with textual programming lauguages, but perhaps you may add some more details about the system level exception (code, description) and the stranges results you get (expected vs. returned). This may help other users... to help you.

 

TestStand is able to call DLL using the adapter. Did you try to call the C dll directly from TestStand ?

I aslo have a naïve question, why do you need to wrap it in a C# dll ?

 

Edit : I just read your message on the thread Teststand shuts down calling c# wrapper of c-dll

 

Regards,

0 Kudos
Message 2 of 2
(816 Views)