NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a .DLL within TestStand

Solved!
Go to solution

Hi folks

I've been trying to figure this out the entire day, but without luck. I hope you guys are able to help me out

I am using an instrument (Frequency. Counter) from Mini-Circuits. I need to get the measurements inside TestStand, onto my report. 

Therefore I tried to implement the custom made .DLL for this instrument. Found here: "https://www.minicircuits.com/softwaredownload/fc.html" 

".NET DLL from 27. October 2020.    .NET class library for automation via USB (Windows PCs)"

So I am asking - how do I call a .DLL within TestStand? I don't seem to be able to do this..

Thanks in advance! 
BR Andedam

0 Kudos
Message 1 of 5
(4,653 Views)

Hello,

 

You change the adaptor in the insertion palette to .NET, and you can then use Action or Tests to call you DLL.

 

Action.NET.png

After that you can select the function and specify the parameters of the functions in the Step Settings Pane.

CsBihacker

Message 2 of 5
(4,623 Views)

Hi bigyo

Thanks for the reply. I hope you can make the time to take a quick look at this as well 🙂 

I actually managed to get to this point yesterday,  but I was still unable to extract data. What I have tried is:

 

 

Andedam_0-1607676498286.png


At the .NET innovation, I need to first select the USB_FreqCounter()

After this I am prompted by a selection of commands ;

Andedam_1-1607676544657.png


Here I would then first pick the Connect(System, String ByRef) command, and enter the SN as value? 

Andedam_3-1607676812600.png

 

Then I can make a new Numeric Value Test step for the same .DLL module, and select the function:  ReadFreq(Double ByRef) 

As seen here: 

Andedam_4-1607677008826.png



NOTE: I am only able to select USB_FreqCounter and then another command. Then I am not able to select more commands in that step. 


BR Andedam, really hope you can help me out

0 Kudos
Message 3 of 5
(4,613 Views)
Solution
Accepted by topic author Andedam

Hi Andedam,

 

First you should  connect to the equipment with Connect function, this should give some Reference, what you need to store in a variable (Local).

For the next functions you should include the reference when calling any other function.

 

After finishing close or disconnect.

CsBihacker

0 Kudos
Message 4 of 5
(4,595 Views)

Thanks a lot bud, I make it work. Thanks for the good advice! 

BR Andedam

0 Kudos
Message 5 of 5
(4,558 Views)