NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling methods of Interface in .NET dll from Teststand

Hi All,

I tried accesing the methods of Interface in .NET dll though Teststand. I have written the code to reset the Dorensen DC power supply,DLM15-40.
I'm able to select the 'reset' method after selecting interface in the Class in the 'Module' tab to include the .NET dll,but when i run the code i get an error"The object specifies in the Class reference is not a .NET object".
I checked the 'creat class' check box in the 'Module tab' for the step in sequence editor but again it gave an error "Constructor on type XXX.IInstrument not found".

Can anbody help me out,if i'm making any mistakes in accessing the Interface of .NET dll.Or anybody can provide me some example to access methods in Interface through Teststand

Thanks in advance.

Regards
VDC


0 Kudos
Message 1 of 3
(3,701 Views)

Hi VDC

In this thead there is a simple Example

http://forums.ni.com/ni/board/message?board.id=330&message.id=17663&query.id=73821#M17663

Hope this helps

Juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 3
(3,694 Views)
Hello VDC,
 
It looks like Juergen gave you a helpful suggestion for your problem.  I wanted to see if you needed anymore help or if you were able to solve your issue?  If you do need further assistance feel free to post a response.
John B.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,601 Views)