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

Hi

 

Do you want to create it during running execution or do create the sequence(file) and Steps statically

like you do it via SequenceEditor ?

 

Juergen  

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 11 of 16
(2,926 Views)

1.How to specify the Parameters of  object Reference Variable in Teststand Sequence file programatically using C#.

 

2.How to load a sequence in to the main sequence programatically using C#.

0 Kudos
Message 12 of 16
(2,926 Views)

Hi,

 

This task seems to be a real challange! I have modified my upper LV example to Net.

Creating a .net Reference and adding to Main was boring. But adding parameters let me force to fail (after a few hours), too.

 

The function GetMetadataToken and for Constructor always retruned -1 !

 

I seached the forum and there was an answer and some workarrounds from the blue one's

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

 

I will try to solve my challenge

the next days

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 13 of 16
(2,911 Views)

Hi

i am still working on this.

http://forums.ni.com/ni/board/message?board.id=330&thread.id=26880&view=by_date_ascending&page=2

It is very interresting, maybe we will get a solution.

 

But lets go back to the first reply from Ray. Perhaps there is a better and faster solution for your task.

Because there some other great approaches creating steps.

 

But WE (Ray (i hope so), Myself, the "BlueOnes" and hunderts of great members) NEED TO KNOW what you want to do !

 

1. Please descripe your task and why you want to create automatically steps.

2. Do Not open a new thread answer here!

 

Juergen

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 14 of 16
(2,838 Views)

Hi,

 

Where are you with this query?

 

Regards

Ray

Regards
Ray Farmer
Message 15 of 16
(2,830 Views)

Yeah !

I did my challenge!  

 

This example is for all members who answer on someones reply!!

 

The builder.seq creates a Test.seq which creates/calls the .Net computer.dll from Ni's "HelloWorld" Example from the demo folder.

Class protoytpe loading is done in Constructor and Memberfunction.

The properties of a class where NOT discussed here.

 

All the stuff is done by using the TS-API.

It would a have been more easy to do this in C# but i did it with TS because it can be used 

by our LV and CVI members. The approach is the always the same.

 

Enjoy it

 

Juergen 

 

 

 

 

 

 

Message Edited by j_dodek on 01-08-2010 11:54 PM
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 16 of 16
(2,785 Views)