11-15-2007 04:28 AM
11-15-2007 05:38 PM
rkk,
Firstly, to create a new step, you will need to call Engine.Newstep. This function takes two parameters, the important one for you is the second parameter. This is the name of the type of step you would like to use. These names can be found in your NI_FlowControl.ini types file. For example, the "If" step is called "NI_Flow_If" and the "For" is called "NI_Flow_For".
To insert that new step into your sequence, you will need to call Sequence.InsertStep.
You also might find some useful information in this post
http://forums.ni.com/ni/board/message?board.id=330&message.id=10709&requireLogin=False
11-15-2007 08:36 PM
Josh,
Thanks for reply. I would interest to know about .ini file. Where can I get it and how to use it in .NET. How can I add multiple steps at run time?
Please suggest me how to implement.
Thank you
Regards
RKK
11-15-2007 11:51 PM
Josh,
Thank you. May I know how to set condition expression for while loop, statement step expression in .NET?
Please help me.
Thank you
regards
RKK
11-15-2007 11:58 PM
11-16-2007 04:00 AM
11-16-2007 07:16 AM
Hi josh,
I tried to access step result through .NET but not found any solution. I tried with the following code .
PropertyObject
objPropSeq;objPropSeq = ObjSeq.AsPropertyObject();
if (objPropSeq.Exists("RunState.Step.DataSource", 0)){
bool value = objPropSeq.GetValBoolean("RunState.Step.Result.PassFail", 0);}
11-16-2007 07:16 AM
Hi josh,
I tried to access step result through .NET but not found any solution. I tried with the following code .
PropertyObject
objPropSeq;objPropSeq = ObjSeq.AsPropertyObject();
if (objPropSeq.Exists("RunState.Step.DataSource", 0)){
bool value = objPropSeq.GetValBoolean("RunState.Step.Result.PassFail", 0);}
11-16-2007 07:16 AM
Hi josh,
I tried to access step result through .NET but not found any solution. I tried with the following code .
PropertyObject
objPropSeq;objPropSeq = ObjSeq.AsPropertyObject();
if (objPropSeq.Exists("RunState.Step.DataSource", 0)){
bool value = objPropSeq.GetValBoolean("RunState.Step.Result.PassFail", 0);}
11-16-2007 07:16 AM
Hi josh,
I tried to access step result through .NET but not found any solution. I tried with the following code .
PropertyObject
objPropSeq;objPropSeq = ObjSeq.AsPropertyObject();
if (objPropSeq.Exists("RunState.Step.DataSource", 0)){
bool value = objPropSeq.GetValBoolean("RunState.Step.Result.PassFail", 0);}