Main Sequence Result

I need know the main sequence result (pass, fail, error) in the postuut sequence to control my test handler. How can I determine the main sequence result in the postuut sequence? 

Hey Jimbo50,
I assume when you are talking about the MainSequence result, you are referring to whether the MainSequence passed, failed, terminated, etc.  The PostUUT callback in the default NI Sequential Process Model already tests for these different results.  They can be accessed from RunState.Sequence.Main["MainSequence Callback"].Result.Status.
Again I would highly recommend looking at the default PostUUT callback because I believe it is testing exactly what you are looking for.  Hope this helps!
Message Edited by Patrick P. on 04-05-2007 10:14 AM
Pat P.
Software Engineer
National Instruments

Similar Messages

  • How can I include results of a subsequenc​e, which runs in a new thread, in the main sequence test report

    Hi!
    I', m working with TestStand Version 4.2.1. I have a main sequence, which calkls different subsequences. All these steps are properly reported. One of subsequences runs as "new thread". How can I include its results in common test report of the main sequence?
    I have markes variables of the subsequence as it is requred for test report (it works OK if it is not a new thread). If the the numerical test, which is executed in this subsequence is correct, I get no results at all. If the numeric test failed I get somewhere in the main sequence report a "red message", that test failed whithout any reference to the step or values of vaiables which were not correct.
    I tried an option "On the fly" in the Report Configuration , but haven' got any useful results. What shall I do?
    Best regards
    Solved!
    Go to Solution.

    Hi,
    I tried it but without success:
    1) I got a reference to the Thread as "Locals.Step1=RunState.Thread" for every of 2 steps which start a thread
    2) I put both "Waits" after steps with (and without) threads, at the same place, where they were before
    3) The sequence run OK, but when it came to Wait for Thread 1 it waited for ever, I had to terminate sequence
    Does it mean, that I got a false reference (suppose No - please, have a look at attached pic)?
    Or does it mean, that Waits are badly placed in the sequence (threads are already terminated)? Here is a pic of sequeces calls with Wait after them.
    Regards
    Attachments:
    Thread.JPG ‏34 KB
    SequenceCall.JPG ‏32 KB

  • How can I include the results are coming from a new thread, in the main sequence report?

    Hi,
    I have a main sequence which calls other sequence running in a new thread.
    I cannot see the results (limit test etc.) comming from that sequence.
    Is there any trick to it?
    Andras

    Hi again Andras.
    I got a reply from the technical support. I hope this help you.
    To include in main report the results of your test in another thread you must follow these steps:
    1.- Right click on the sequence call where you create the new thread. In "Specify Module" panel, just right "Run sequence in a new thread" press "Settings" button and disable "Automatically wait for the thread to complete..."
    2.- At the end of your main sequence add a new "synchronization - wait" step. Configure your wait, selecting in the upper ring tab "wait for thread".
    3.- Then select below "specify by sequence call" and pick over your thread name.
    With these changes your main sequence will add the results from your thread to your main sequence report.
    I hope it works for you. (but sadly it doesn't work for me)

  • Where the string "failed" is created in steps in the main sequence to fill into Parameter.Result PostUUT in the NI teststand II courese example 4-1 Modifying callback.seq

    For PostUUT in  the NI teststand II  courese example 4-1 Modifying callback.seq, there are two steps, one is Test Passed,
    the other is Test Failed, both set each preconditions, for example, Parameters.Result.Status == "Failed"  in the test failed step, if the step failed in the main sequence,the string "failed " is filled into Parameters.Result.Status
     but I can't find where the string "failed" is created in steps in the main sequence. 
     Because I can't find any expression in any steps  to fill into Parameters.Result of  the test failed step in the PostUUT. 
    In fact, when running if step fails, the string "failed " is filled into Parameters.Result.Status 
     Would you please  explain for it ? 
    thanks,

    Hi,
    Look at the Sequential Model Sequence File, and either the sequence SinglePass of Test UUTs for the step that invokes the step Post UUT.
    Then look at the Parameter List for the SequenceCall for that step. you will find your answer.
    Regards
    Ray Farmer

  • What is property that contains the pass/fail status(UUT Result) of my main sequence ?

    Test Engineering
    Empower RF Systems Inc.

    Hi Mal,
    In general, in TestStand you use a step type that can use the Sequence Adapter in order to call a sequence (named subsequence in this context). The MainSequence is called from within the ProcessModel execution entry-points ('Test UUTs' and 'Single Pass' sequences in the TestStandModel.seq) when you launch the execution from "Execute->Test UUTs" or "Execute->Single Pass" menu or directly by the engine when you start an Interactive execution by selecting "Execute->Run MainSequence" menu option.
    In the first case, after the sequence call step executes, the Sequence Adapter can set the step status. So, finally the property that contains the status of Main Sequence is a subproperty of the SequenceCall step that in the ProcessModel execution entry-points is named "MainSeque
    nce Callback". The lookup string for this property depends from where you want to access it. For example :
    a) if it's from a step you add as part of the Execution entry-points customization, then the lookup string for the property should be "RunState.Sequence.Main["MainSequence Callback"].Result.Status"
    b) if it's from a step in the MainSequence, then the lookup string for the property should be "RunState.Caller.RunState.Sequence.Main["MainSequence Callback"].Result.Status" but special consideration should be taken if the MainSequence is run in Interactive mode, since the "RunState.Caller" property doesn't exist in this case.
    In the second case the sequence status isn't available (see above).
    Regards,
    Silvius
    Silvius Iancu

  • HOW DO I BUILD A MAIN SEQUENCE

    HOW DO I BUILD A MAIN SEQUENCE, WHICH HAS 2 CALL BUTTON (FROM POPUP STEP) CALLING THE SAME SUB-SEQUENCE? THE SUB-SEQUENCE WILL HAVE ALTERNATIVE STEPS DEPENDING ON WHICH BUTTON IS PRESSED IN MAIN SEQUENCE.

    Create a parameter variable (number) in main sequence, call it ButtonHit. Create the popup step. In post expression of popup step, make Parameters.ButtonHit = Step.Result.ButtonHit. Create the sequence call step in which you call your sub-sequence. In your subsequence, create the a parameter variable, ButtonHit (number). Pass the Parameters.ButtonHit from main to subsequence Parameters.ButtonHit. Use this variable in your subsequence to decide what you want to do. Button one will be of value 1, button two will be of value 2.
    - tbob
    Inventor of the WORM Global

  • How do I get a text file from Photoshop  to work in the main sequence in pp?

    How do I get a text file to work properly in the master sequence. I moved it from Photoshop, which I learned to do from a tutorial, but when I move the animated text sequence to the master, it either isnt running, or it is scaled way too big. How do I get it to run in the main sequence?

    "Wont Work Here" !  Does not mean much.
    Are you having an audio or a video issue? 
    Looks like no video clip on the video layer above that section of audio.
    I am teaching myself this stuff completely on the fly
    I suggest you do the Basic Tutorials ( Adobe TV for example) in both Premiere Pro and PhotoShop.
    You need to be competent in the basics and fundamentals of these apps and that will also help you describe and discuss the issues.   Check the 'Products on this site....
    Adobe TV

  • Using TestStand 2.0, what is the best way to run a smaller sequence, in parallel to the main sequence, and access the main sequence's FileGlobals?

    I did ask this a while back and appreciate your responses. We did upgrade to TestStand 2.0. The basic problem is that I have written and TestStand sequence to test Avionics black boxes. We use Excel to specify the signal names and input data and expected output data for thousands of test cases. My LabVIEW VI's are small generic modules that refer back to TestStand to determine how to set or get the signals. This way, on other projects, we simple change a few signal names, instruments, and were good to go. We use Analog, Digital, Pulse Trains, Synchro Resolvers, LVDT/RVDT, power supplies, logic analyzers, ... to perf
    orm these test. The TestStand sequence can run different black boxes on difference test benches based on the data contained with the TestStand FileGlobals. Now I have come across a special situation where in a couple of input signals are set based on a couple of output signals. I developed a short sequence to read the output signals, compute the values of the inputs signals, and set the instrument to send that data to the UUT for those couple of signals. Anyway, I have to reference the FileGlobals to determine what the instruments are and how to access them are used for the signals involved. Since I have a lot of FileGlobal data, I can not pass it as parameters to the parallel sequence.
    What I would like to be able to do is just reference the main sequence's FileGlobals as if they were the parallel sequence's FileGlobals.
    I am willing to send a copy of the sequence being used to whomever thinks they know a good way to accomplish this if it would help them to determine what I am t
    rying to do. I will need to know who you are since we do not want this being published, as is, since it contains some signals names which the company that I am consulting at may consider proprietary. You can
    email me directly at my company
    [email protected]

    a) If the parallel sequence is in the same file and...
    a1) ...you launch the parallel sequence as a thread in the execution of main sequence, you do not need to do anything. The sequences share the same file globals
    a2) ...you launch the parallel sequence as a separate execution, you must mark the file globals as shared by all executions. You specify this in the Sequence File Global control on the sequence file properties dialog box.
    b) If the parallel sequence is in a different file (or even the same file), you can pass the entire set of file globals as a single sequence parameter to the parallel sequence when you launch it. Make a Container parameter and right click on it to turn off type checking. Pass FileGlobals to the parameter. When you edit the subsequenc
    e, you won't be able to see specific file globals under the parameter but they will appear at runtime.

  • Is there a way to pass or access the FileGlobal​s of the main sequence from an ActiveX subsequenc​e that runs in parallel?

    I developed an elborate avionics Test Bench using the data types and FileGlobals to define all of my instruments and signals. The instruments have some minor changes between Test Bench's and the signals change between projects. The actual LabVIEW VI's were written so that they would be generic, in nature, and rely on spreadsheets to determine what inputs and expected outputs are to be tested and use the FileGlobals to determine how to process each signal from this extensive data structure. This methodology has worked well so far. Now I have the need to read some of the signals being output by the black box and compute a signal as input. The black box it very particular about the timing related to how fast this input changes in response to the outputs.
    Anyway, I was able to develop another sub-sequence within the main sequence and have it run as a parallel process. The problem that I have is that this extensive FileGlobals data structure is shown in the sub-sequence, but all of the data is zero or blank. What I really need is the FileGlobal data in the sub-sequence to be equal to the FileGlobals data of the main sequence at the time the ActiveX sequence is started OR have some way to access the main sequence FileGlobals from the ActiveX sub-sequence. I was able to use the when doing a Action of "call method" and a moethod of "NewExecution" to start the sub-sequence. The problem is that the data passed was only the first element in the FilGlobals structure and not the entire FileGlobals.
    I have TestStand version 1.0.3 . I know, the answer is usually to upgrade, but I have my own company and am sub-contracting at this company. It took me a month to convince this company that TestStand was the way to go rather than use the old LabVIEW Test Executive that they still have. The point is that it may be difficult to get them to get a later version and at this point I do not have time to wait for a upgrade. So I need to determine an easy way to impliment this with the existing version of TestStand.
    Any pointers on how you might solve this problem would be appreciated. You can email me directly at [email protected] .
    Thank you for your help!

    William,
    As you alluded, TestStand 2.0 has better solutions to this problem than TestStand 1.0.x. These include
    1) Executing the subsequence on a different thread but under the same execution. The file globals are then common to the calling and called sequence. The improved Sequence Call step type gives you this option.
    2) There is a new sequence file property that provides that "All Executions Share the Same File Globals".
    The reason that the file globals are not shared between your 2 sequences is that they are each executed as separate executions. That is, they are each executed using the NewExecution method. With each new execution a run-time copy of the sequence is made, including the file globals.
    I am assuming that you want to execute the subsequence asynchronously (i.e. in parallel) to the MainSequence and therefore must use the NewExecution method to do so. Since you must use TestStand 1.0.3 then the best option is to pass the file globals to the new execution as sequence parameters. It sounds like you tried this but had difficulties. The steps to do this are:
    A) Create parameters in your called sequence that mirror the file globals that you want to pass from your MainSequence.
    B) Create a new data type that is a container. The subproperties of this container must mirror the parameters in your called sequence. It is important that they are in the same order as the parameters.
    C) Create an instance of this container data type as variable.
    D) Pass this variable as the parameter of the NewExecution method.
    I have attached an example of how to do this. I have 2 file globals that I want passed, Number and String. I have another file global that is an instance of the parameter container that I pass with the NewExecution method (could also have made as local variable). Any time I update the values of the container�s subproperty, the changes are available in the executing "subsequence". Therefore, I must update the value of these container subproperties every time I want to have access to new file global values. There is clearly some redundancy here in that my MainSequence must copy the Number and String values to the container subproperties. If fact, it may be better to simply delete the Number and String file globals and simply use the subproperties of the container directly.
    You probably have to play around with the example to synchronize the change of the file globals with the message popups in the subsequence. In TS 2.0 I would have synchronized them with the new synchronization step types.
    Attachments:
    passfileglobals.seq ‏37 KB

  • How To Access Variables In Process Model For Use In Main Sequence

    Hi everyone, in my sequence file I callback the PreUUT sequence file.  I want to be able to use one of the local variables I assign in this callback sequence in my main sequence.  In my main sequence this variable will trigger if I should run some tests or not in my main sequence.  Is this possible?  How would I do this?
    Thanks so much!

    U need to make a parameter in your Callback, parameters are seen outside of sequences, then in PreUUT u will make statement to update parameter, or use the parameter in your callback  directly
    Parameters.MyPara=Locals.MyLoc
    etc

  • Is it possible to enter a serial number in the main sequence, instead of in the "Pre UUT"?

    Hello!
    Is it possible to enter a serial number in the main sequence, instead of in the "Pre UUT"?
    I still want the serial number in the Report.
    I also want the serial number as file name of the report.

    You can enter the serial number in the main sequence instead ot the "Pre UUT" but there is no reason to do that.
    if you still like to input serial number in your sequence You will need to make sure that you update the variable in the process model which stores the serial number ie. RunState.Caller.Locals.UUT.SerialNumber
    This is used to generate the report.
    the report can also contain the serial number of the uut if you select "New file for Each UUT" under Configure-Report options and in the "Report File name path"
    The format of the name of the report will be
    [123].txt
    "123" was the serial number which I entered.
    If you are not happy about the name of the file you can replace Locals.ReportFilePath to contain the right name using a statement step in the process mode
    l. If you using the default process model please make sure that you add the statement step after "Determine Report File Path" step in the Process Model.

  • How to transfer a string from sub sequence to main sequence

    Hi,
    How to transfer a string from sub sequence to main sequence, My main sequence has included a sub sequence, the sub sequence is return a string value after running done, I need to get this string value from sub sequence to main sequence, I check the defined that look like seem the two
    sequence have themself local variable,but I don't know how to defined a globe variable to cover main sequence and sub sequence like VC++'s Main App ,Please kindly help me,thanks in advance...

    Hi,
    I hope this small example will help you.
    Regards
    Ray Farmer
    Regards
    Ray Farmer
    Attachments:
    Sequence File1.seq ‏36 KB

  • Can I use property loader in a main sequence to load properties in subsequence?

    Hi, I have been trying to use the property loader to load test limits and local variabels into subsequences from the main sequence.
    I can export all the properties for my main sequence and all the subsequences contained within by selecing <all sequences> in the export function.
    When I try to load the exported file back in using the property loader I get differant errors depending on the format I exported/imported it with.
    For text or csv files iget error -17100
    "The file format is incorrect near the section 'StationGlobals'.  Make sure that you are using start and end markers correctly."
    For an xl format I get error -18 
    "Property loader step failed to import or export properties.
    310 property value(s) were found.
    43 property value(s) were imported from 920 row(s) of data"
    There is no where near 920 rows of data or 320 properties in the exported file.
    If i use the property loader to load properties in just main it works fine, is there extra formating I need to do to the file before importing it or is it not possible to load properties into a subsequence from a property loader in main?
    Solved!
    Go to Solution.

    Hi,
    I have tried several sequences and building the propertyloader file using the export tool,
    Moving the End_Mainsequence to the bottem did not help.
    I can load values into a single sequence with no problem it is only when I try to load properties into a sub sequence from the main sequence that I have issues.
    Attached is a more simple example of what I am trying to acheive. 
    Kind regards,
    Hugo
    Attachments:
    Sequence File 2.seq ‏9 KB
    Test.csv ‏2 KB

  • Photoshop sequences not sized appropriately when dragging to main sequence

    I am working with photoshop layers in a sequence, which I am bringing into the main sequence. When I size them in the viewer and apply wireframe motion to them, they play just fine (and look fine) in that sub-sequence.
    When I move that sequence from the viewer into the main sequence, they are totally oversized. I have configured each window (viewed and canvas) "fit to window". They move off the window in the main sequence but in the photoshop sequence, they are sized properly.
    I have tried resizing them in the main sequence but it doesn't seem to work unless you resize in the sub-sequence first.
    Please help....I have been pulling out my hair on this and even set up a ProCare with the local Apple FCE expert. They couldn't help.
    Thanks!

    You didn't say but I'm assuming you're working in DV NTSC.
    Your PSD sequence is much larger, and the wrong aspect ratio, compared to your video. It bears no resemblance to it. You're make a very large sequences, making your animation in it, and placing in inside a much smaller sequence. The two don't match at all. Fit to window is not relevant. The PSD window is based on an image 1150x1718, and that's the Canvas the PSD sequence uses. Your edited sequence is 720X480 and that's its Canvas size. Fit to window just means make the Canvas display fit the size of the window you've create for it in the application. It doe not scale the images to fit the Canvas.
    I don't know exactly what you're doing, but it would be easier for you if you made the images the right size in Photoshop to start with. Or you could copy and paste from inside the PSD sequence into the edited sequence, which will automatically scale the material to fit the window, and you can animate the layers in the edited sequence. This may or may not work for you depending on your material.

  • How to get sequence result using httpservice

    I send 2 httpservice requests to server: requestA and
    requestB in sequence, but sometime I get the response of responseB
    first. How can I get the sequence result, response from A and then
    response from B.

    use AsyncToken - assign it to your HTTPService like so....
    var tok:AsyncToken = myservice.send(params)
    tok.requestName = "myRequest"
    Then in your resultHandler test for the token
    if(event.token['requestName']=='myRequest'){
    do something with the event.result
    }

Maybe you are looking for

  • Problem installing OBIEE 11.1.1.6 on Linux 64-bit

    Hi, I am trying to install OBIEE 11.1.1.6 on OEL5.8 64-bit virtual machine. The Software Only install (the recommended option when I have other WebLogic apps running) gives me a message "an application server must already be installed" when I give it

  • Payment Document no with date

    Dear Experts, I am Fresher to SAP. I need to give Functional specifications for payment  document no payment document date to ABAPers. where can i get these information. i know how to get technical info, the thing is; in which T-Code can i get both t

  • Why can't safari display pdf files?

    I recently updated Safari to 5.1 and Adobe Reader to 10.1.1. on OS X10.6.8. Now Safari just shows me a flat gray screen when I browse to a location that's a pdf file. Can't say which of the two updates actually broke the function. Used to work, altho

  • Lets Add a Little Humor To The Forum!

    Turn off your laptop, unplug all wires, remove the battery, and hold the power button for thirty sec... Just click the first link after  Google's it for you!! I'm the clown here and there is just room for one of us This forum is to help Toshiba owner

  • SOAP Response conatins no quots, no opening or closing tags.

    Hello All, I have developed WebService and I have deployed it on a server, and I have developed client that speak with the WebService via the JDeveloper generated EmbeddedIntegrationWebServiceStub and everything goes greatly when the WebService and t