NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to define a callback for Pass/Fail or Numeric Limit steptype.

I would like to manipulate the Pass/Fail step and Numeric test step result, so wonder a special callback for them, but I am not so clear to creat a callback in TestStand.
********************************
*The best Chinese farmer*
********************************
0 Kudos
Message 1 of 7
(4,660 Views)
Hello paulbin
 
I think you should tell the members here what you want to manipulate more in detail, there are many things to manipulate.
There are a lot of "Step" callbacks. I think you could use one of them and do a wrapper that filters only the step types you want. 
 
Greetings
 
juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 7
(4,655 Views)
Hi J I propose to collect all "Pass/Fail" step result and "Numeric Limit Test" result to a CVS file on customer request withtou using TestStand report. So I would like to log the step name, high low limits values, pass or fail string. I have ever used poststep callback on this, this cause the sequence always go into the callback after every step, and then route to different case in callback but lead to low performance, the log VI resides in this callback. So I would like to get a specific callbck just only for this two steptypes. That's what I want.
********************************
*The best Chinese farmer*
********************************
0 Kudos
Message 3 of 7
(4,630 Views)
 Hi Paulbin,
 
I have written a simple EngineCallback wrapper, i think you know this technique. I have used just only a Statement than writting to a file.
I want to figure out the performance. With/Without callback.
This is the result on 3000 steps. 13.3 s without callback and 17.4 withcallback that means 4.1s or  1,3ms more each step.
 
I have also tested FrontEndCallbacks which i called as an API call in PostExpression. Here you have your named callback but the perfromance: Forget it, I aborted.
 
So the last solution will be a Post substep call, which i think might be the fasted solution (I have to create a dll or vi).
Now i have to go to bedSmiley Wink
 
Good night
 
Juergen
 
Update!!!!
When I closed my TS, TS want to save some ini-type files Becareful !! Never acept savings to this ini.Files
Tomorrow i will post a clean example !!!
 
 
 
 


Message Edited by j_dodek on 01-07-2008 04:28 PM
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 7
(4,612 Views)
Good Morning Paulbin,
 
Oh I am an idot !!, I have used an example from this forum here and modified it but it was conterminated !!
To get more information about this you should visit this thread:
 
Yesterday it let file run on my notebook which was very fast
Today on my "fast" development maschine it was extremly slow. I have to abort !
 
The reason was in StationOptions->Execution->Enable Tracing ! When i deseleceted "Allow Tracing into Pre-/Post Step Callbacks" (best all)
It was fast as my notebook!!  
 
greetings from the lake of Constance, Germany
and get never affected by a type virus
 
juergen
 
P.S.
This is "clean"
 


Message Edited by j_dodek on 01-08-2008 02:02 AM
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 5 of 7
(4,601 Views)
Hi J I'm so sorry for I can not open your file, probably caused by TS version, I get 3.1 on debug machine.
********************************
*The best Chinese farmer*
********************************
0 Kudos
Message 6 of 7
(4,567 Views)
Hi Paulbin
 
Try this one
 
Greetings
juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 7 of 7
(4,562 Views)