NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

New execution and caller callback

Solved!
Go to solution

Hi,

 

I created a sequence which launches two new executions. These 2 executions can be seen as 2 branches, each one calling a specific subsequence in the same file. These 2 branches are launched as 'new execution' because one can pause the other (which is not possible if these 2 branches are launched as 'threads').

 

I do not want my 2 'branches' to execute any entry points because all necessary info (identification, report options, etc...) are already get from the main sequence (the caller). So the sequence calls are set to launch the subsequences without any process model.

 

The problem is that my process model callbacks are not triggered by these 2 'branches'. Only the caller trigger them.

Is there any way to force my 2 'branches' to trigger my process model callback ?

 

 

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 7
(4,324 Views)

Hi,

 

just for more understanding,which ProcessModels-Callbacks do you need ?

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 7
(4,318 Views)

Hi Juergen,

 

Now I need the Poststep and PostStepFailure callbacks... But I may need the others after... I'm building a TS UI, so I may need other callbacks for future needs.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 7
(4,314 Views)

Hi,

 

are you looking for something like this ?

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Download All
Message 4 of 7
(4,306 Views)

Hi Juergen,

 

Thank you for the examples. Yes, it looks to something like this. But the callbacks I want to trigger are processmodel callbacks.

My TS UI has to display some info with any kind of sequences that my customer will play. So I can't ask him to modify its own sequences files to add a SequenceCallbacks.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 5 of 7
(4,304 Views)

Hi,

 

if no modifications allowed, you have to provide a processes model that is aligned with your UI.

 

I have no idea how to implement such a feature without modifiying the model.

Let's hope the blue one knows something more...

 

Regards

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 7
(4,298 Views)
Solution
Accepted by topic author CyGa

Hi Juergen,

 

I found the solution. Indeed I've a customized process model. So I continued customizing it adding a new EntryPoint. In this entry point I added a simple call to the subsequence I have to run as a new execution.

 

In my MainSequence, my seqcalls are parametrized to execute a new execution with client file process model, the entry point is set to be the newly created EntryPoint, and set to use the current file. This new entrypoint as 1 parameter : the name of the subsequence to run. 

 

That way my process model is still in use, so my new executions have access to my process model callbacks.

 

Thank you for your kind help !

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 7 of 7
(4,295 Views)