NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to crate an action step in teststan using C# along with setting properties for the step like namespace,classname,objectReference and calling a method

I need to know how to create an action step in teststand using  C# along with setting properties for the step like namespace,class,objectReference and calling a method.
0 Kudos
Message 1 of 16
(5,846 Views)

Hi,

 

Have you looked at any of the examples provided with teststand?

 

Also have you tried the NI Website or even just searching this forum?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 16
(5,843 Views)
yes i looked after the examples regarding teststand and i found how to insert a step in teststan and the step is a sequence call but i need to insert an action step.i am unable to set the properties like calling namespace,setting object Reference and calling a method for the step.Is there any dll that i have include in my project?
0 Kudos
Message 3 of 16
(5,842 Views)

Hi,

 

That sounds that you like to create the sequence(file) and steps dynamically

It that correct ?

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 16
(5,831 Views)
yas they have to be generated dynamically in teststand sequence programatically through C# user interface.
0 Kudos
Message 5 of 16
(5,828 Views)

Hi,

 

....through C# user interface.

 

Is that a dervation of the operator interface that come with the TS example package ?

If yes, i am wondering why you want to create steps with it.

 

Juergen 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 16
(5,820 Views)

Hi,

 

Which code module apater do you like to use ?

If it is LV take a look on this thread:

 

http://forums.ni.com/ni/board/message?board.id=330&message.id=25825

 

This code is done in TS itself, but calls in C# are the same

 

Juergen 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 7 of 16
(5,793 Views)

Hi

 

That means you like to create an action step type that is using a .net code module adapter.

Right ?

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 9 of 16
(5,777 Views)
exactly, I have done creating an action step using .Net adapter.but the problem is defining an object reference for the action step and the return values of object reference.How can I do that.
0 Kudos
Message 10 of 16
(5,774 Views)