Process model: additional results

Hello

I have again to TestStand (process templates) framework.

I would like to set up the process for my project template include comments of step and stage requirements for each step of the sequence.

I've seen solutions where sequence recalls were used to implement this. But this requires the incorporation of reminders in the sequence file which I don't want.

How can I do this?

Concerning

Benjamin

Hi Benjamin,

Is there a reason that you can't use the callbacks?

Reports in TestStand consists of 2 elements: Collection of results and reporting.  Basically, the report is generated on what is collected.  The collection occurs during runtime.  So basically, if your collection contains no comments and requirements then it is impossible that a report can be generated with this information (as this information is no longer in memory).

However, since it is of the static elements of a stage you can potentially get away with the creation of some kind of reporting mechanism focus on disk in the sequence copy and enter this information using the API TestStand.  The idea would be that you would through your collection of results and looking at the result properties you could identify what stage in what order in which order was called file.  Then open this file in sequence and glean the demands and comments for that step.  Quite honestly, that would be a hairy algorithm.

If you use the statement-fly, you can use the ProcessModelPostResultListEntry callback in the process model and information on the step and put it on the report.  It would avoid having to add all your file of the client's sequence recalls.

Hope this helps,

Tags: NI Software

Similar Questions

  • Be a mistake to create an additional result in the Table UUT_Results:

    Research site of NOR and found information on how to create additional value of loggin in the UUT_Result table.  I copied and saved the database.seq, and the standard process model.  parameter has been added to database.seq.  parameter added to the recall, then added a local variable to the model.  I did all the steps in order, then check the schema was OK and the journaling property has been added.  I always get the following error message and don't know if a step is missed.

    An error occurred calling "LogUUTResult" in "ITSDBLog" of "ZNIUGOL TestStand database logging"
    An error occurred when setting a column value.
    Statement: UUT_RESULT.
    Column: WO_NUMBER
    Property: measure. [Measure 1]
    Name of variable or unknown property 'Logging.WO_Number '.

    Source: TSDBLog

    Error code:-17306; Name of variable or an unknown property.

    Geographical area: step 'Journal USE result' sequence 'SequenceFilePostResultListEntry' in 'SequentialModel2.seq '.

    I think I had two different problems.  I was able to connect additional content under the UUT_Results, but I had to change my settings for database logging.  I disabled additional results, and everything started working.  I have always had a problem with the activation of the additional results box and never gave a reason why.  This occurs with standard features.

    If the last error noted the activation of additional results, so I disabled and was able to get my full database table.

    Thanks for the reply.

  • Secondary process model

    The States of TestStand Manual of reference on page A-4:

    "In addition to a primary, or parent, process template file, you can use a secondary process template file, or the child, to encapsulate specific functionality, such as the generation of reports."

    A 'model of secondary process' file is also mentioned on page 10-3:

    "A primary process template file can directly call reminder of model sequences in a secondary process template file. At runtime, if the sequence of the client to the primary sequence file file implements a callback defined in the secondary process template file, TestStand called the sequence reminder in the customer file of sequence, even if the primary process template file does not define the callback. You must add a copy of the sequence of callback for the file of main model for the reminder to appear in the dialog box file of the file of the client's sequence sequence recalls. »

    I can't find any additional information about the secondary process model.

    • Can someone explain how a secondary process model would be used?
    • Are there examples using a secondary process template?

    Thank you!

    1. how to create a / refers to a secondary/child process model?

    It seems that this is done by creating a sequence of recall in a sequence file 'child' AND 'parent sequence file.  Is this correct?

    To create a process model in general you open a movie file and go to Edition > properties file in sequence.  Then on the Advanced tab, change the model Type.  So that it becomes a secondary/child process template, you'd call a sequence on the primary process model.  For example, the SequentialModel.seq at one point makes a call to ProcessOTFStepResult in one of the encores engine in there.  Then, the ProcessOTFStepResult sequence makes a call to PutOneResultInReport (if you use the reportgen_txt.seq).  Then the sequence PutOneResultInReport makes a call to ModifyReportEntry (which is a reminder).  However, if I have a file of the client's sequence I intercept this result and make some changes.  So I would cancel this reminder.  But since ProcessOTFStepResult and PutOneResultInReport are not in the process template must have a mechanism for me to replace it with the customer.  It's because reportgen_txt.seq has a different behavior than reportgen_html.seq or reportgen_xml.seq.  So, it is not sensible to put everything in the process template.  Otherwise, your PM would be ridiculously high.  But you also have to make a copy of the reminder in the MP, so that the customer can see.

    2. the parent sequence file callback simply acts as a pointer toward the kid movie file recall?  Yes and no Cela depends on if it is called in the secondary particles or primary particles.

    3. how many levels of "models of child process" can create?  Is it possible to create a 'third-party process model? I just tested this out, and it seems that you can.  But you don't have to set the reminder in a high school.  Just the third layer and primary particles.

  • process model: include PreUUT and PostUUT step translates report

    Hello everyone,

    Little background:

    My test team has 4 writing code developer for 4 different components. The endurance test, we have common requirements as variable input voltage and of the temperature. Instead of using the common installation model, we prefer to use PreUUT of TestStand process model element. This helps each of follow us strict coding style.

    Problem:

    There are many examples to record the results of PreUUT and PostUUT in the report. However, all of these examples require change in file client sequence. How to implement this feature in the process template itself? So that developers do not have to ModelCallback process or use patterns in their code and still the tension updated the and temperature in ProcessModel could be connected to the report.

    Ah yes, I use TestStand 2013 (4.1)

    Concerning

    Benjamin

    Thank you, Julian.

    Some of your other posts has helped me solve the problem of the PreUUT. I don't know if this is the correct method, but it works very well for me.

    Did the following:

    1. in the ProcessModel activated sequence result record for any stage in PreUUT sous-séquence.

    2. in PreUUT sous-suite added after declaration-

    "" 'RunState.ProcessModelClient.Data.Seq ["MainSequence']." Locals.ResultList = Locals.ResultList

    And voila, I PreUUT step results in my report. I would like to have feedback on your part. Is this a good method? do you see any risk?

    The next challenge online is now to log PostUUT results in the report.

    Kind regards

    Benjamin

  • Why additional results stage does not meet the test report

    I have a file of sequence with several subsequences and I can't using step of additional results. I use the step of additional results in a subsequence and the specified results are added to the report test, but when I use the additional results stage on the main sequence, that nothing is added to the test report.

    There that something is off on the main sequence, which prevents additional results to add to the test report? I use the sequential model.

    The problem seems to be that the Locals.ResultList variable has been removed from your sequence. No results can be entered only if this variable exists.

  • prevent the 2 instances of process model

    Hello

    We have several testers in operation.  There is a particular test that we run, which has some downtime involved on the object to be measured, and it seems that there is no test running.  Then a person can come and try to run another instance of a sequence, so re - run model of process, trying to initialize the hardware that is already in use and causing a cascade of errors, screwing as the test that was running.

    Is there a property, I can verify from the outset in the process template, I can program into a command prompt to warn the person "there is already another ongoing test here, an abortion?" and "cleanly"?  Or better yet, is there an option somewhere in teststand as "to prevent simultaneous execution of process model" or such?

    Thank you

    David Jenkinson

    Try this one.

  • Remove additional results of the previous step

    Hello world

    I have a step of the 'statement' (step 1) inside a while loop that creates an additional result to the stage (using Step.AdditionalResults.CustomResults.Insert).  For each row in the While loop this 'statement' step will create a new additional result.  After step 1, I want to delete the additional result created in step 1.  If I don't delete it, after each loop my report file will include all previous results additional loop.

    Is there a way to remove the additional result created in step 1?

    Thank you very much!

    Review the attached file in sequence.  Why don't you just use the same result?  Why do you need to insert and remove every time?

    Can you send me this sequence you sent the screenshot?  This way I can get a better feel what you are doing.

  • Logging of additional results of step before reminder

    In my sequence, the recall of SequenceFilePreStep checks if a step is a test step (e.g. NumericLimitTest). If this is the case, a value of temperature of an overall picture must be kept at additional step results. Let's say the array of temperature index is just zero here. I use the following statement then.

    RunState.CallingStep.AdditionalResults.CustomResults.Insert("FileGlobals.Temperature[0]",FileGlobals.Temperature[0],"",PropFlags_IncludeInReport,-1)

    The problem is that the name of the variable is evaluated as a number, which is the same as the value of the temperature. (See the image attached) But it's not even me to use an arbitrary name as "Temp". [He forces me to use the "FileGlobals.Temperature [0 '] under the name of the variable. Otherwise, I get an error. How can I assign a variable name in the additional results I want?

    Is another question, is it possible to check if there is a variable with a name to additional results lag, using expressions? Basically, I want to replace an old value of temperature in complementary with a new value results whenever a loop iterates.

    Any input will be appreciated.

    pomirobotics,

    In fact, the result name is an expression rather than just a string (you can see in the section additional results of stage settings and looking at the Visual editor for additional results entries). Therefore, you must include a different set of quotes in your expression to name. Here is an example:

    RunState.Step.AdditionalResults.CustomResults.Insert("\"ResultName\"","Locals.MyNumber","",PropFlags_IncludeInReport,-1)

    Backslashes are outside the game internal citations so that they are interpreted correctly when the expression is executed.

    I hope that helps!

  • Condition of additional results work does not correctly for the parameters

    TestStand 2014

    Trying to connect a parameter only if the status of the step is "failure" will not save the setting when the step will actually fail.  On the other hand, variables with the same State will record very well.

    The sequence attached illustrates this.  Basically I have a sous-suite that returns a random number and a string as parameters.  I use the random number to evaluate against my limits for the test call.  I want to save the parameter of string only if the step fails.  So I put as an additional result, then assign the condition

    Step.Result.Status == "failed".

    The data never show on the report.

    But when I put a result additional explicit with the same local variable and put the same exact condition it appears on the report when the step fails.

    I'm puzzled as to why settings will not open a session to this condition, but additional explicit results work fine with the same State.

    Any thoughts?

    Thank you

    Condition for additional result of the parameter is evaluated before the State sequence is set to failure. The 'out' parameter additional results are evaluated probably just after the code module, so if the status of the step is not changed by the call of code module, then it will always be "Running".

    I can see how it would be nice if it worked the way you ask, but keep in mind for input/output parameters it is usually the same expression/variable to both the 'in' and 'out' additional result, so it is important to the time at which the result is recorded. It must be done before calling code module for 'in' settings and after the call of code module to 'out' parameters to reflect the State of the variables to these points in time. I think that the intention is that the additional result for settings must reflect the State of the variables at the point in time immediately right before the call for 'in' settings and immediately after the call to 'out' parameters So if you want to connect under certain conditions a value based on the status (where the State is not changed directly by the code module), with the help of a result extra ordinary as you discovered is probably the best way to go.

    Maybe for the parameters we might delay logging to the end, but which may result in a change of behavior if the variable state changes again once before that. If you want us to consider or have another idea for how to handle this better please let us know or maybe post something to the exchange of ideas.

    Another possibility is that we could temporarily connect the results before and after the code module, but then not assess the condition to the end and throw the recorded result if the condition is false. Who can still cause a change in behavior although if "Value of Log" expressions have side effects.

    Hope this helps clarify things.

    -Doug

  • Property to tell whether the process model has been run?

    Hello

    Is there a property to look at a sequence context, where I can tell whether or not the process model has been run?  I need to edit programmatically initialization step vi, depending on whether the process model has been run.

    Thanks for any idea,

    David Jenkinson

    RunState.Root! = RunState.Main

    or

    PropertyExists ("RunState.ProcessModelClient")

  • batch processing model loop

    How to set the model of batch TestUUT loop once? You need to use TestUUT and not only passage require the dialog box of the UUT.

    In process model so step ' Goto next batch "is modified to create a branch to"- end of batch loop -", discussions do not stop.

    Please advice.

    The simplest thing for you to do is in the verification of sequence/reminder pre-batch Parameters.ModelData.BatchLoopIndex if it is > 0 or > 1 (forget if it is 1 or 0 according to), then set Parameters.ContinueTesting = false rather than perform the steps that are normally performed in this order. That is it really. That should do it.

    Hope this helps,

    -Doug

  • Additional results fail step?

    So I get to use the latest versions of TestStand and I play with the additional results for a test step.  What I was asking is; additional results reach the status of success or failure of a step?  For example, if I have a numerical limit step that also returns a Boolean value, can I use an additional result to not respect the condition based on the value of the Boolean value?  Or are, additional results just for reporting?

    Additional results affect the content of the report. If you need one step regarding its outcome depends on two different parameters (for example limit indicator and digital Boolean), you must create a custom step type.

    hope this helps,

    Norbert

  • How to read the additional results of each step of the sequence of my main in LabVIEW?

    I'm working on the creation of stylesheets for TestStand reports. I do this by allowing the user to select additional results in every step she wants to see in the report in a LabVIEW edit stage. I can read the names of each stage, like in the picture as an attachment, but I can't access their (children?), additional results.

    I think that I thought about it, I guess that I had tried everything. The solution is something like the joint. Thanks for the suggestion!

  • Additional results - vs Value reference Bug

    I just wanted to find it there. When you try to open a session of additional results of a step, you can specify if you want to connect the value [In] or the [Out] all the variables passed by reference. If you have a variable that is passed by value, you can only connect [] that the value does not change. Makes sense.

    However, if you have a variable passed by value and then change to make reference to, it will not refresh to enable a value [Out] until step is reloaded.

    Thank you for reporting this bug. You experience this problem with a sequence step call? If so, there is a bug existing on this issue report. The ID is 142282. This problem should be corrected in a future version of TestStand. For now, you can work around this problem by clicking on the check box 'Use Prototype of Sequence' twice for change and then restore its value. When you do this the parameters in the update of the additional results panel.

  • Not present additional results in real estate to TestStand 4.0

    Hello

    I want to use a multimeter to save the current values in my TestStand 4.0
    test sequence. I was using TestStand 4.1 and recorded the results
    end of my report. I had checked the option additional results, but this
    option is not present in 4.0. Where can I find this option to save the
    value in my report?

    I used TestStand 4.1 but had to return to TestStand 4.0

    because some modules, I want to use only are not supported in TestStand 4.1 yet.

    Thank you

    If you proceed as numerical limit to evaluate the measured value, the result will be the part of the report unless you deselected the "include measures" in the report options.

    This is in any case recommended to include the measurement values in your report.

    You can add additional results using the 'ReportText' variable in the container - Step.Result. Just use a postexpression to convert your value to a string and put it on the ReportText (something like: "Result.ReportText = str (locals.mymeasurement)" "").

    hope this helps,

    Norbert

Maybe you are looking for