NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I call Matlab compiled DLL using TestStand

Hi ...
 
I'm trying to call a matlab DLL from TestStand.  Is there any ready examples out there that teaches me how to do so?
 
Thanks!
 
 
0 Kudos
Message 1 of 4
(4,511 Views)

KPChan,

I couldn't find any examples initially.  I believe you should just be able to use the step, and then change the "Adapter" to C/C++ DLL.  Then in your module tab, browse to the DLL.  Let me know if this helps, Thanks!

Matt S
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(4,468 Views)

why the invoking to from testand 4.1 is so slow when a try to call a com object  based on matlab???it's about 1 second for open it!, is that normal??? if a deploy a c/c++ dll from labview i don't get this latency

0 Kudos
Message 3 of 4
(3,787 Views)

Edgar,

 

There is nothing teststand is doing that should introduce any signficant latency. Do you get 1 second latency on every call or just on the create of the object? If it's just on the create, can you hold the object in an Object Reference variable and reuse it? The typelibrary is loaded the first time you access a COM server, but it's cached and should be reused from then on.

 

Hope this helps,

-Doug

0 Kudos
Message 4 of 4
(3,782 Views)