NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Step information in .NET

Is there a way to have a step in my process model that passes all the step information from the execution (step name, parameters, results, etc.) to a .NET assembly for manipulation?  Basically, the pseudo-code in the sequence would look like this:

 

for each test step that was executed:

    SomeDotNetMethod(test.name, test.numberofparameters, test.result, test.type, test.limithi, test.limitlow)

 

and then in my .Net assmbly, I'd have:

 

public void SomeDotNetMethod(somedatatype test.name, int test.numberofparameters, double test.result, double test.limithi, double test.limitlow)

{

    // Do stuff with the data that is passed in

}

 

Any help is appreciated.  I'm doing this in C# / .Net 3.5

0 Kudos
Message 1 of 2
(2,883 Views)

Hello rcldesign,

 

One way to accomplish what you are trying to do would be to override the SequenceFilePostStep callback.  Within this callback, which is simply a sequence itself, you could then call the code module that you desire, in this case the aforementioned .Net assembly.  This sequence receives the step name and step result values automatically by means of the Parameters variables.  The other values that you mentioned may also be accessible in these Parameter variables, but if not, they have the potential for access by means of a FileGlobal variable.  This approach should allow you to achieve the end goal you described.

 

Cheers,

Message 2 of 2
(2,861 Views)