NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

SequenceFilePostStepFailure

Hello,

Im very new in TestStand and i have two questions.

The first one: I have made an Config VI. With this VI I put firmly from which directory on C or D or wherever my Sequencen to be which I call.
That has the advantage, if a product or like changes I can create a new directory and must only change the path once for all Vi's or SequenceCalls in my Config VI.

Now the problem. I uae the SequenceFilePostStepFailure Callback. In this Callback i have an SequenceCall. That SequenceCall call a data file named ErrorHandler.seq in this Sequence is the Standard Code wich you can find in the Test Stand Examples SequenceCallback FailureHandlerExample.seq.

Because I insert in the SequenceCallback a SequenceCall this ErrorHandler did not function any longer. And i get this Error Message:

Details: The precondition for the step 'Exit if sequence call step' could not be evaluated. Unknown variable or property name 'Parameters.Step'.
Error in argument 1, 'Parameters.Step', in call to the expression function 'TypeOf'

Error Code: -17306; Unknown variable or property name.

Location: Step 'Exit if sequence call step' of sequence 'MainSequence' in 'ErrorHandler.seq'

I know where the problem is. He had to jump back to another data file and not only to the SequenceCall. But i don't know what i have to change that the SequenceCallBack function again. I want to make it however in such way. I only insert my two station-global variable which contains the path were i config in my config VI. Because this path is were the Sequence Call comes from.

The second problem: I want to change the Code of the SequenceFilePostStepFailure that i have an further button named ErrorConfig. When i pressed this button in fault. An Active X Element checks whether a variable named Error or what ever is existing. If the variable is not exesting the ActiveX Element creat the variable. After the variable is existing I can insert a text in the variable which is visible if the same failure is apperance again.

I hope i illustrated understandable. And somebody can help me to find the right way. And my english is understandable too.

Thanks a lot and regards

Tumbler
0 Kudos
Message 1 of 49
(4,731 Views)
Hi,

In your ErrorHandler.seq do you have the Step property in the Parameters Tab?

If you look at the original SequenceCallback FailureHandlerExample.seq, in the Parameters Tab, you will need all those items listed in your ErrorHandler.seq Parameters Tab.

Maybe, you could attach an example of your problem.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 49
(4,699 Views)
Hi,

Thank you Ray Farmer. I have insert in the Parameters tab the Step and Result Container. Now i have another error a view steps later.

details: The post-expression for the step 'Get Step Details: Sequence Failure' could not be evaluated.
Unknown variable or property name 'Locals.StepDetails'

Error Code: -17306; Unknown variable or property

Location: Step 'Get Step Details: Sequence Failure' of Sequence 'MainSequence' in 'ErrorHandler.seq'

I have attached the Sequence and the directorys.

Start Displaytest3.seq

And you will see my Problem and what i want to realized.

regards

Tumbler
0 Kudos
Message 3 of 49
(4,699 Views)
Hi,

you will need to add StepDetails in your ErrorHandler.seq. It is defined in the SequenceFileStepFailure sequence as Locals, so you need to pass it as a Parameter to ErrorHandler.seq.

Include the StepDetails variable in the Parameters of MainSequence in ErrorHandle.seq. Then change all the occurances of Locals.StepDetails in MainSequence of ErrorHandler.seq to Parameters.StepDetails.

( Or an easier change would be to add a Parameters.StepDetails and a Locals.StepsDetails in MainSequence, then add an expression step in the beginning of the Setup witth the expression Locals.StepDetails = Parameter.StepDetails)

In your SequenceCall to MainSequence(ErrorHandle.seq) in SequenceFileStepFailure you will need to specify Locals.StepDetails as the extra parameter value to pass.

hope thats clear.


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 49
(4,697 Views)
What do you mean with this?
In your SequenceCall to MainSequence(ErrorHandle.seq) in SequenceFileStepFailure you will need to specify Locals.StepDetails as the extra parameter value to pass.

How should i specify Locals.StepDetails as the extra parameter?

Without modifying this thing i have another error.

Details: Incorrect Object Reference type in 'Parameters.Step'.
A refernce to an object of type 'Step' was expected.

Error Code: -17308; Specified value does not have the expected type

Location: Step 'Determine if the step failure caused the sequence to fail' of sequence 'MainSequence' in 'ErrorHandler.seq'

I know i know nothing but i hope it will be better.
0 Kudos
Message 5 of 49
(4,696 Views)
Is this wright?

I have set in displaytest3.seq in Locals tab the string StepDetails at the position Value "pass".

But the error that i say one Thread before is the same.
0 Kudos
Message 6 of 49
(4,701 Views)
Hi,

In the ErrorHandler.seq, in the sequence MainSequence, add the String variable StepDetails to the Parameters. Also add a String Variable StepDetails to the Locals.
Still in the ErrorHandler.seq, in MainSequence, add a expression step in the beginning of the Setup Group to do the following expression; Locals.StepDetails = Parameters.StepDetails.

In Displaytest3.seq, in the sequence SequenceFilePostStepFailure, select the step in Main called "ErrorHandler" and right mouse click, select Specify Module. In the Parameter List, set the StepDetails to use Locals.StepDetails, which you have prevoiusly defined.

I haven't looked in SequenceFilePostFailure where you are actually setting Locals.StepDetails before you make the SequenceCall to the ErrorHandler.

Hope this helps, I would have modified your examples but unfortunately I do not have access to TestStand at this moment in time.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 7 of 49
(4,696 Views)
Hi,

Ignore my previous message.

All you need too do is add the Locals.StepDetails string variable in the ErrorHandler.seq, in the sequence MainSequence.

I forgot, that you had mention that your ErrorHandler.seq was a copy of the example sequencefile FailureHandlerExample.seq.


Sorry for the confusion.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 8 of 49
(4,693 Views)
Thank you for so much help. I have do everything what you wrote but i have still this error

Details: Incorrect Object Reference type in 'Parameters.Step'.
A refernce to an object of type 'Step' was expected.

Error Code: -17308; Specified value does not have the expected type

Location: Step 'Determine if the step failure caused the sequence to fail' of sequence 'MainSequence' in 'ErrorHandler.seq'


I'm sure that you can help me that it run. I hope you help me by my second problem too.

I think it is hard for you because i know under.

regards

Tumbler
0 Kudos
Message 9 of 49
(4,695 Views)
Hi,

What have you specified as the property you pass as a parameter to the SequenceCall "ErrorHandler"?


Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 10 of 49
(4,694 Views)