キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

SequenceFilePostStepFailure

That looks good. But two things are not that what i want. That you have mad an String to enter my Text would be very nice. But the string i have enter should shown ubove if the same error in the same step occurs again. This should no problem to change because i only enter in the message config + Locals.Error. But that second problem is that the Locals.Error is only created in runtime.

I want to create this Local by TestStand for example in the Displaytest3.seq in UserZufallszahl permanetly and not only for runtime.
But i don't found something to realize this.

Do you know what i mean?

best reguards.

Tumbler
0 件の賞賛
メッセージ31/49
2,462件の閲覧回数
Has any body an idea how i can realize this that i permanetly creat an variable in the calling sequence.
0 件の賞賛
メッセージ32/49
2,448件の閲覧回数
Hi,

Here is an example of a local being created in a caller sequence's locals.

Regards
Ray Farmer
Regards
Ray Farmer
0 件の賞賛
メッセージ33/49
2,448件の閲覧回数
Thank you Ray Farmer,

the example is very nice. But it creates the local only in the running copy of TestStand an not permanently in the sequence that we load.

I want that TestStand create a variable in the running copy an in the sequence i have start. I don't know how i should explain you what i want.
0 件の賞賛
メッセージ34/49
2,446件の閲覧回数
Hi,

You can access this property by using RunState.Caller.RunState.SequenceFile.Data.Seq[""].Locals. You can perform the NameOf(RunState.Caller.RunState.Sequence) to get the Name of the Caller sequence.

You would have to increment the RunState.SequenceFile.ChangeCount and save the sequence file. Otherwise when you close the SequenceFile, you would lose this change.

I will modify that example a little later on.

Regards
Ray Farmer
Regards
Ray Farmer
0 件の賞賛
メッセージ35/49
2,442件の閲覧回数
That would be nice.

best reguards

Tumbler
0 件の賞賛
メッセージ36/49
2,442件の閲覧回数
Hi,


as promised, an updated example.

regards
Ray Farmer
Regards
Ray Farmer
メッセージ37/49
2,433件の閲覧回数
Very nice thank you very much for your help.
Now it works how i mean.

A litle problem i still have. Do you remember on my ErrorHandler.seq with the Message Popup that opens in Error case.
In this Message Popup i will Enter this string:
+ PropertyExsits("RunState.Caller.RunState.Caller.Locals.ErrorText") ? RunState.Caller.RunState.Caller.Locals.ErrorText : ""
But this string doesn't work i get an error

Datails: Error Evaluating Message Expression: Specified value does not have the expected type.

ErrorCode: -17308; Specified value does not have the expected type.

Location: Step 'Message Popup' of sequence 'MainSequence' in 'ErrorHandler.seq'

What is wrong with this Expression?
0 件の賞賛
メッセージ38/49
2,429件の閲覧回数
I have disengaged my problem.

Last but not least one question. Now we create the variable in the Locals Tab of a sequence. Is it possible to create a variable in the actually step of a sequence?
0 件の賞賛
メッセージ39/49
2,422件の閲覧回数
Hi,

Let me see if I have understood you correctly.

You what to create, at runtime, a SequenceCall step type with an additional step property, of type String and insert it into a sequence. This of course would make it a Custom Step Type based on NI SequenceCall Step Type.

Regards
Ray Farmer
Regards
Ray Farmer
0 件の賞賛
メッセージ40/49
2,423件の閲覧回数