Multiple TestStand limited digital test next tep

I am a multiple test limits digital step stype of coding and I have a fundamental question/problem that I don't see a simple solution to.  If I'm measuring and comparing 4 differnet settings, I have 4 different steps to guide out of depending on the result.  How you code this optimal in Teststand?

It is excellent.  Thank you very much.

Tags: NI Software

Similar Questions

  • Export multiple property of a digital test limits as an expression

    I am able to import and export the limits of the digital with expressions and several digital tests with expressions.

    What about using the charger of property for expressions within limits for multiple digital tests?

    Step.Result.Measurement [0]. Limits.LowExpr doesn't seem to work (unless I need to get one for each of the 9 several tests in my sous-suite).

    Stephen

    HM, works now.

    I had 5 multi-stage limit (0-4). Adding entries for all 5 seems to have done the trick.

    The entries are of the form: Result.Measurement [x]. Limits. [Low |] Expr-top]

    Header row:

    Result.Measurement [0]. COMP, result. Measurement [0]. Limits.Low, Result.Measurement [1]. COMP, result. Measurement [1]. Limits.Low, Result.Measurement [2]. COMP, result. Measurement [3]. COMP, result. Measurement [3]. Limits.High, Result.Measurement [3]. Limits.Low, Result.Measurement [4]. COMP, result. Measurement [4]. Limits.High, Result.Measurement [4]. Limits.Low, Result.Measurement [2]. Limits.LowExpr, Result.Measurement [2]. Limits.HighExpr, Result.Measurement [1]. Limits.High, Result.Measurement [2]. Limits.High, Result.Measurement [2]. Limits.Low, Comp, Limits.High, Limits.Low

  • To a result NULL of Labview TestStand to a type of digital test limit.

    Hello:

    I am looking for a way to pass a null value as a result in a limit test multiple digital test type.  My tests are written in Labview.

    The tests now pass a value of '-' 999 to TestStand to signify that this measure has not been made, but this requires additional processing and code in our data analysis tools.  Passing a value zero would simplify the tool and reduce the workload.

    Thank you

    Mike

    You can switch NaN instead.  At least, I think you can.  TestStand supports NaN, but I never spent through Labview adapter, so I'm not 100% sure if it will work.  NaN is treated in tests limits labview as follows (hat tip to James Grey here):

    (NAN > x) == false
    (NAN == x) == false
    (NAN< x)="=">
    (NAN == NAN) == true

    I don't know how it would be dealt with when writing a good database.  I guess it depends on the data base and values of what digital special supports.  A quick search shows that NAN (not sure if he would lift an error or that) does not support Sybase, MySQL stores NAN as NULL in numeric fields, SQLite stores NAN as a special string code, Access stores in the form of NAN.

    So you should always write a step for translate NAN for NULL values, but I think it would be easier to write and maintain than an arbitrary number.

  • How to store the results in several digital Test

    My VI returns two double individual (not in a table), output power and frequency

    I am configuring a multiple digital test in TestStand but struggling to store readings.

    Using the following, I get an error.

    Output power of VI: Step.Result.Measurement ["Measurement 0"]. Data

    VI output frequency: Step.Result.Measurement ["Measurement 1"]. Data

    Would appreciate some advice.

    Thank you

    Got, it works

    Results were to be stored in Step.NumericArray [0], Step.NumericArray [1] and not Step.Result.Measurement ["Measurement 0"] as I've had.

    Thank you

  • Combining results of the previous steps in digital test

    I am relatively new to TestStand. Here's what I'm trying to do.

    1. Call VI A with numerical limits, make measurement, store the value in the local order.

    2. Call VI B without numerical limits, measure, store the value in the local order.

    3. Calculate: A - measure B. difference the result with numeric limits.

    I need to create a very simple VI with two entrances, a subtraction function and an exit in a time limited digital LabVIEW to implement step 3, or is there a more recommended way to do it?

    Thank you.

    Stephen

    Here's what I'd do:

    Call VI as a step in the action.  The measure in a local store

    Call VI B as a step in the action.  The measure in a local store

    Use the None adapter to create a numerical limit step.  Set the Data Source to Locals.AValue - Locals.BValue

  • Digital Test on VAL("") failure

    The following will show how to cause a failure on a digital Test that contains a number not valid.

    In the post to your message box Expression:

    Val(Parameters.EnteredData,Locals.ValidNumber),
    Parameters.EnteredData=(Local.ValidNumber?Parameters.EnteredData:"NAN")
    

    The digital test that follows has the usual Data Source code:

    Step.Result.Numeric=Val(Parameters.EnteredData)
    

    However, this will replace any entry is entered for "NAN" reporting of results achieved. String "NAN" by VAL() converts it to 'not a number '.

    This example uses parameters, but would be better as a Local.

    Solution in the first Post.

  • TestStand 4.2 test continuous issue - same time for every USE

    Hello

    I have this problem on my TestStand 4.2, whenever I do continuous testing (run > Test DUT), each USE both in the reports.

    What I need is to know how to change the model of process, so that each USE should have a different time in the reports.

    Please see picture below for reference.

    Thank you

    val87

    Hi val87,

    It is a known issue with TestStand 4.2. The below knowledge base article explains how to fix this behavior.

    Why the time of the DUT report header field remains Constant for multiple DUT during the generation of the XML reports in 4.2 TestStand and TestStand 4.2.1?

    http://digital.NI.com/public.nsf/allkb/8EE51C3635751A808625774A0050C214?OpenDocument

    Let me know if it works for you!

  • When I close FF4 I not give me the ability to save multiple tabs open on my next session

    When I upgraded to FF4, I was sad to see one of my favorite features was no longer there. With a mile long bar address and the home button which is almost off the screen. I also noticed that there is no history button next to the front buttons and back why does. I like FF4 but I have about these features I'd seen on.

    One of the changes in Firefox 4: by default Firefox 4 does not display the warning "Save tabs and exit" then to the closure of several tabs, but it can be turned on again by changing some preferences.

    • Record of the tabs was not removed from Firefox 4, but it works a little differently.
    • By default, Firefox 4 will not ask to save tabs, but instead it will always save your tabs on the output unless you're in private browsing mode. You can restore the next time by:
      1. by clicking on the Firefox button > history > "restore previous Session ', or
      2. type of Subject: House in the URL bar and press the Enter key, then press the button "restore previous Session."
    • Note: This was a decision by the developers. On this forum, we are all volunteers without compensation here to help other users. Develop them and employees of Mozilla/Firefox rarely, if ever visit here.

    To display the message "save tabs and exit" when closing multiple tabs, you can do the following:

    1. Type of topic: config in the URL/address bar and press the Enter key
    2. Accept the warning message (promise to be careful)
    3. Open the preferences/list page
    4. Filter = browser.tabs.warnOnClose
    5. If its value is set to false, double-click top (in the lower panel) to toggle its value to true
    6. Repeat steps 4 and 5 for the 3 following preferences also:
      • browser.warnOnQuit
      • browser.warnOnRestart
      • browser.showQuitWarning
    7. See:

    Things to check if the tabs are not saved:

    1. Browsing history must be saved

      • Button Firefox: Firefox button > Options > Options > privacy > [X] Remember my browsing history
      • Menu bar: Tools > Options > privacy > [X] Remember my browsing history
    2. Also, make sure that you do not erase "Browsing history" when you use clear recent history or when Firefox is closed
      • Using clear recent history

        • Button Firefox: Firefox button > history > clear recent history
        • Menu bar: Tools > clear recent history
      • When Firefox is closed
    3. Make sure that you are not in private browsing mode or in private browsing mode permanent:
    4. If you have the Tab Mix Plusextension, and then clear the built-in session restore.

    You need to update the following. The Plugin version (s) below has / have been submitted with your question and is obsolete. You need to update in order to avoid the known security issues with the version (s) you have installed. Click on 'more system info... '. "to the right of your question to see what was included with your question.

    • Adobe PDF plugin for Firefox and Netscape "9.3.3.
    • Shockwave Flash 10.2 r152
    • Next-generation Java plug-in 1.6.0_22 for Mozilla browsers
    1. Check your plugin versions on one of the following links:

    2. Update of Adobe Reader (PDF plugin):
      • Within your existing Adobe (If you have already installed) drive:

        • Open the Adobe Reader program in your list of programs
        • Click Help > check for updates
        • Follow the instructions to update
        • If this method works for you, go to the section "download full installer ' below and go to"after the installation"below
      • Download the full installer (If you have NOT installed Adobe Reader):
        • SAVE the installer to your hard drive (save to your desktop so that you can find it after downloading). Exit/close Firefox
    . Run the Setup program that you have just downloaded.
  • Use one of the links below:
  • After installation, launch Firefox and recheck your version.
  • Update the Flash plugin to the latest version.
    • Download and SAVE to your desktop, so you can find the Setup program later
    • If you do not have the current version, click on the "Player Download Center" link on the 'download and information' or 'Download manual installers' below
    • Once the download is complete, exit Firefox
    • Click on the installer, you just download and install
      • Windows 7 and Vista: will need to right click on the installer and choose 'run as administrator '.
    • Launch Firefox and recheck your version or up to the download link below to test the installation
    • Download and information: http://www.adobe.com/software/flash/about/
      • Use Firefox to go to the site above to update the Firefox plugin (will also install the plugin for most other browsers, except IE)
      • Use IE to go to the site above to update the ActiveX to IE
    • Download manual installers.
  • Update the Java plugin to the latest version.
  • How can I retrieve the execution of TestStand 4.0 Test results in a c sharp Application?

    I am writing a c sharp application to launch a test sequence in TestStand 4.0.1 and then collect the results of the tests to update our own screens / report (s).  I'll need some sort of recursive routine to collect the following information (if available) for each stage: name, result, Min value, Max Value, measured value, units.

    My attempts have been to an event to end execution allows to collect data:

    void EndExecution (sender As object, EndExecutionEvent ev)
    {
    Results PropertyObject = ev.exec.ResultObject.GetPropertyObject ("ResultList", 0);

    int numContainers = Results.GetNumElements ();

    for (int i = 0; i)< numcontainers;="">
    {
    PropertyObject resultData = results. GetPropertyObjectByOffset (i, 0);
    String testResult = resultData.GetValString ("Status", 0). ToString();

    PropertyObject testStep = resultData.GetPropertyObject ("TS", 0);
    Dim testName = testStep.GetValString ("StepName", 0). ToString();

    MessageBox.Show (i.ToString () + "". "") testName + "=" + testResult);
    }
    }

    But this only gives me MainSequence data.

    How to cross the ResultsList tree to access the results of all the test steps?

    tlaford,

    There are a couple of big problems with what you are doing:

    (1) it is best to call the code from a test report of the result of your sequence treatment reminder (just use an action step) or change the process template to call your code rather than to call for EndExecutionEventHandler of the user interface, because if you use Test DUT and then there is a separate resultlist by USE not by execution, and it is generally processed at the end of each use not at the end of execution. If you use the EndExecutionEventHandler then you should NOT use the process templates provided with TestStand because they don't work that way. Instead, you just run your sequences without a process template. Although I really recommend the path of process model, even if you write your own a custom, because it is more flexible, and then hardcode your treatment result in the user interface as you do. A few reasons why a process model is that more flexible or better are that it will work in any user interface, including the sequence editor (no changes to the user interface is needed), and it can do everything you can do in a sequence, for example to call a code module in any language supported , asynchronous sequences, call sous-séquences, etc.

    2 recursion) through each property at such a low level is bad because the names of the properties are not guaranteed to be unique for what you expect them to be. Anyone can write their own types step custom with some result properties that they would like. You must make sure that the full path to the properties is what you expect it, and you can even check that the type of step is one you expect. You should rather loop through the result of higher level items ONLY and are looking for the complete data lookupstrings that you expect from these elements. For example, instead of WalkTree you might have the following instead:

    This must be called from a step in a test recall report or in a custom process template
    rather than from EndExecutionEventHandler of the user interface, because if you use Test DUT then
    There is a separate resultlist by USE, not by execution, and it is usually processed
    at the end of each use not at the end of execution.
    Sub ProcessResultList (PropertyObject resultList)
    {
    numElements int = resultList.GetNumElements ();
    < numelements;="">
    {
    Element PropertyObject = resultList.GetPropertyObjectByOffset (i, 0);
    String stepTypeName = string. Empty;

    If (point. There are ("TS. ((StepType', 0))
    stepTypeName = GetValString ("TS. (StepType", 0);

    If (stepTypeName is "NumericLimitTest")
    {
    If (point. Exists ("Limits.High", 0))
    {
    Double highLimit = item. GetValNumber ("Limits.High", 0);
    Do something with the value
    }
    }

    NOTE: The two step type SequenceCall and NI_Wait can have subresults like that. A stage of waiting waiting on an asynchronous thread or the execution will have this.
    If (point. There are ("TS. ((SequenceCall.ResultList', 0))
    {
    Recurse for results call sequence.
    PropertyObject sequenceCallResultList = item. GetPropertyObject ("TS. (SequenceCall.ResultList', 0);
    ProcessResultList (sequenceCallResultList);
    }
    }
    }

    Hope this helps to clear things up,

    -Doug

  • TestStand IVI read Test of numerical limit

    Hey all,.

    How to turn a DMM IVI reading in a test step pass / fail based on a test of numerical limit?

    I'm a novice TestStand so be gentle.  Search the Forum of TestStand IVI and success failure does not return anything useful.

    I can call the DMM through reading IVI that returns a Step.Result.Reading but I need to turn this into a past fails on a beach to limit.

    Any ideas would be very warmly.

    Thank you

    You can insert a step to limit digital none_adapter after she and assign the data source PreviousStep.Result.Reading.

    -Doug

  • Several digital test with labview cluster?

    Is it possible to make a numerical limit several test with the values of a cluster of a labview vi?

    So-called step "Multiple numerical limit", the data must be numeric. If the cluster already contains only numeric fields.

    Given that, I would throw the cluster within the module in a table (table Cluster). The downside of this is that all the fields of the table share the data type, so all are single or double or I32...

    Other solutions will not work with the default step type, but you can create your own type of step to accept a multiple similar to the digital cluster, which only accepts an array.

    Norbert

  • How to make a limit digital test with OR condition

    Is it possible to make a test step which is a comparison with a RC and NOT to condition?

    The code module returns a revision of PCB and the acceptable values are not States.map.

    For example, review of card must be 14, 15 or 17 but not 16.

    Stage of Custom Types are a type so they copied to any sequence file that contains one instance of them.  So when you deploy you will be fine without having to deploy all the ini files.

    You can actually just create the new stage in the movie only file and not worry do ini-files.

  • Limiting a test area enter on all pages of a PDF document.

    I created the following code to use the menu option

    for the creation of a date in which field the current date will be

    introduce the document is printed.  I'm confused as to how it is the addition of

    the field to all pages and not just the page that I am currently editing. Could someone help with this. I see the statement defining the variable p but confused on how it is added to each page, and not only the last page of this booklet PDF.

    app.addSubMenu ({cName: "Footer", cUser: "Date", cParent: "File", Nonprofits: 20});

    app.addMenuItem ({cName: "Set Date time (Filename) ', cParent: 'Footer', cExec:" SetFooter (1) "" ""});

    app.addMenuItem ({cName: "-", cParent: "Footer", cExec: "{}"});

    app.addMenuItem ({cName: "remove Date time (Filename) ', cParent: 'Footer', cExec:" RemoveFooter (1) "" ""});

    function SetFooter (ARG)
    {

    var inches = 72;
    for (variety p = 0; p < this.numPages; p ++)

    {

    If (ARG == 1) {}
    aRect var = this.getPageBox ({nPage: p});
    aRect [0] += 6.20 * inch; from the left edge
    aRect [2] = aRect [0] + 1.5 * inch; from the upper left corner of the page.
    aRect [1]-= 7.08 * inch; top edge of the paper
    aRect [3] = aRect [1] - 18; and height 24 points


    var fd = this.addField ("date", "text", p, aRect);
    fd.textFont = fonts. HelvB;
    fd.textSize = 10;

    }

    var myWillPrintScript = ' var fd = this.getField ("date"); \r'
    + ' fd.hidden = false; \r'
    + ' var d = new Date(); \r'
    + ' fd.value = (util.printd ("mmmm yyyy", d)); \r'

    var myDidPrintScript = ' var fd = this.getField ("date"); \r'
    + "fd.value =" ";" \r'
    + ' fd.hidden = false; \r'

    Now define scripts to run on the will / did print events.
    this.setAction ("WillPrint", myWillPrintScript);
    this.setAction ("DidPrint", myDidPrintScript);


    } }


    function RemoveFooter (ARG)
    {

    If (ARG == 1 |) ARG == 3) {var x = this.removeField (' date') ;}

    If (ARG == 2 |) ARG == 3) {for (var p = 0; p < this.numPages; p ++)}

    {

    var x = this.removeField (String ("xftPage" + p + 1)); }

    } }

    You must remove the loop for upstairs, including its opening and

    closing brackets and replace by:

    p = this.pageNum;

  • passed the test after the step failure

    Hello

    I have a stage with test of numerical limit.

    I checked in properties, under run Options, step failure causes the sequence

    But when I washed up on the market, the result of the test is passed.

    When I change the Actions Post - on is not going to the next step Goto cleanup

    then the result of the test is failed.

    I have two other stations where I limited digital test with the same properties, but here I don't have to go to cleanup for a failure result.

    I use TestStand 2013.

    Please help me, thanks

    / Magnus

    Magnus,

    Instead of setting RunState.SequenceFailed in your Expression after, try setting Step.Result.Status to this value instead. It worked on my machine.

    I hope that helps!

  • Digital loading data from text file for Test of numerical limit

    I am a new user of TestStand 2014.  Just downloaded the demo ran successfully the computer.dll tutorial & example "loading limits a File.seq text"; & is now trying to build my own sequence from scratch.  I want to load a number from a text file using the property Loader.  The file contains the following:

    GGbeg
    484
    GGend

    My hand sequence contains 2 markets (see attachment):

    Charger property (which reads the text file & must store the number 484 in the Step.Result.Numeric variable, right?)

    GG-digital-test (which should test the number 484 in Step.Result.Numeric as a Data Source, right?)

    But when I run it, the measure indicates "0" for the value instead of "484".  What I am doing wrong?  Thank you in advance for your help!

    George

    Hi George,.

    The text file must be in the format, includes no property magazine. Use the following in the text file to make it work:

    GGbeg
    Result.Numeric
    GG-digital-test 484

    Value of the variable

    Value of the variable

    Value of the variable
    GGend

    In the Tools menu of the sequence editor, there are some 'Properties Export/Import' tool, which helps to create text files to be used with charger property stage. I highly recommend to create the new file using the tool and then edit the file to change the values.

    -Shashidhar

Maybe you are looking for