NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set .NET Step Module properties via API from c#

Needing to create a sequence step from c# using the api

The step is a dot net adapter type

I've got the sequence created

I've got the step created

I've set the limits and the units

Can't seem to find how to set the items from the module tab

   - Assembly

   - Root class

   - ect

 

If someone can point me in the right direction, I'd appreciate it

 

Thanks

 

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

Hi Mr_Mimo,

 

It sounds like you are looking for properties and methods from the following class:

 

DotNetModule - TestStand Help

https://zone.ni.com/reference/en-XX/help/370052R-01/tsapiref/reftopics/dotnetmodule/

 

Your step will have an instance of this class that you can access using Step.Module. This will return a DotNetModule object if the step uses the .NET adapter.

 

Best,

 

Duncan Waldrop

Technical Support Engineer

National Instruments

 

Message 2 of 3
(1,975 Views)

That was the missing link.

Thanks!

 

Follow up question if I may

 

When I call DotNetCall.LoadPrototypeFromSignature, I'm using the use existing object calls option.

 

That works except I can't seem to find how to add the library specific public function call.

As in "Use Exisiting Object Call (MyNamespace.MyClass).XXXX()

 

Doesn't seem like I can load the .XXXX part

 

Do I need to switch over to SetIncompleteSignature()

 

Thanks for your time

 

 

 

 

 

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