NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

On thy fly reporting - self made

I am trying to create a simple process model, which fires the "ProcessModelPostResults" callback, in order to log several data on the fly. I found some properties and methods for it, but the callback is not called. Following Expression is used as the first step in my entry Point:

RunState.Execution.EnableCallback(CallbackType_ModelPostResult, True),

RunState.Execution.EnableCallback(CallbackType_ModelPostResults, True),

RunState.Execution.MaximumResultsPerPostResultsCallback = 10,

RunState.Execution.PostResultsCallbackInterval = 1,

RunState.Execution.PostResultsCallbackOptions = 0,

 

Similar commands must be used by the TS original model files, but I think they are coded in dlls, because I just can't find the right Settings in the subsequences.

 

So, if I enable the ProcessModelPostResults callback, and I set the interval and the max. number of results per callback, why is the callback not called?

0 Kudos
Message 1 of 2
(2,168 Views)

Hey Madottati,

 

                 Are you building your process model from scratch ? If so, I would recommend instead to start working from an already existing one and edit it according to your purposes. For example, you could take the SequentialModel.seq and strip it down to the bare functionality that you need. Also, when posting this kind of questions, I would suggest adding an example sequence (or project) that would illustrate what do you want to achieve.

 

Regards,

Denis

0 Kudos
Message 2 of 2
(2,080 Views)