NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a .NET module from C# - Sequence File XML parser

Dears, I'm running the Sequence File XML parser, now I'm trying to modify the step type and full fill it internally with my own .net dlls.

Anyone has any clue about how can I fullfill the step module from the .net?

I was trying to use the loadModule from C# but I had no sucess.

 

 

The source code who creates the .seq is : 

 

public void new_sequence()
{
file = engine.NewSequenceFile();

// Sequence seq = file.GetSequenceByName("MainSequence");

Sequence seq = engine.NewSequence();
seq.Name = "Example";
file.InsertSequenceEx(file.NumSequences, seq);

Step step = engine.NewStep("DotNet Adapter", "PassFailTest");

step.Name = "MalAutomationTest";
file.AsPropertyObjectFile().TypeUsageList.AddUsedTypes(step.AsPropertyObject());
seq.InsertStep(step, 0, StepGroups.StepGroup_Main);

save_sequence_file(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + @"\output.seq");


}

This is the result from this source code: 

Gabriel_Habib_0-1602184638787.png

Gabriel_Habib_1-1602184672808.png

 

 

However I still need to fullfill the module options, in the following picture I have done these configurations manually.

 

Gabriel_Habib_2-1602184727366.png

 

Is there anyone that can help with this?

 

0 Kudos
Message 1 of 1
(900 Views)