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

Similar Messages

  • How do I return to Main Sequence cleanup using Post Actions?

    Since I am quite new to this I have a question that I hope you can help me with. When a subsequence fails I want to return to Main Sequence cleanup immediately and not continue to the next step. Do you know of a way to do this using Post Actions?

    Set the On Fail post action of the subsequence to Goto destination and set the destination to Cleanup.

  • 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

  • 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

  • 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

  • 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 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

  • 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)

  • How to append the dynamically created sequence in to the main sequence

    i have created a sequence dynamically using c# with myEngine.NewSequence(). I  am loading this sequence into a sequence file created using myEngine.NewSequenceFile(). every sequence file has a main sequence by default. Now I need to append the created sequence in to the main sequence. can you please help me to solve this issue?

    1. Sequence seqMain = seqFile.GetSequenceByName("MainSequence");  2. Your stuff that creates a SequenceStuff e.g. "Hello"3. Step stepSeqCall = engine.NewStep(AdapterKeyNames.SequenceAdapterKeyName, "SequenceCall"); 4.stepSeqCall.Name = "HELLO" or sequenceStuff.Name;5. objModule.UseCurrentFile = true;
    6.objModule.SequenceName = stepSeqCall.Name ;
    7.seqMain.InsertStep(stepSeqCall, nSeq, StepGroups.StepGroup_Main);
    Greetings from Germany
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • 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

  • 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

  • Dynamic calling of subsequence and wants to stop main sequence

    HI All
    I want to load a LabVIEW VI through TestS tand dynamically. 
    For that I am calling a code module in one sequence and calling this sequence in the sequence call in the Main sequence.
    What I want to do is , when this VI gets launched through code module( which is used in sequence) this should run in background and my main sequence should complete its execution after executing all steps.
    The VI which I have launched through sequence call should run continuously.
    However the issue which i am facing is my main sequence is not completing its execution until and unless I stop the VI. I have tried launching the sequence in new thread and new execution. But still it waits for the execution to get complete.
    How to stop the main sequence and keep the VI running in background??
    Thanks in advance

    OHHHHH I missed that part.  You mean like this example.
    You need to do it in a new execution.  Otherwise the execution of your test won't complete because one of its threads is still out there.  Also, you need to set the execution settings like this:
    Hope this helps.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    OriginalAutomation.seq ‏6 KB
    AsynchVI.vi ‏8 KB

  • Add Label (and other things like SequenceCall, Statement etc) in Main Sequence ?

    Hi all,
    I try to add Label in Main sequence, but problem is how to refer there. Successfully were done subsequences and their content, but now want to add content in main sequence (labels, SequenceCall, Statement etc). Can you someone help me with this code ? (CVI/LabWidows). This code in intended to add Label (szName) into Main sequence.
    Before entering Label, need to refered to Main in Sequence file. This part missing.
    tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path, TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle));
    tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "","Label",&labelStep));
    tsErrChkMsgPopup( TS_StepSetName (labelStep, &errorInfo, szName));
    error = TS_SequenceInsertStep (SequenceFileHandle, &errorInfo, labelStep, indexL, TS_StepGroup_Main);
     I've tryed with TS_SeqContextGetMain(), but does not work.
    Best regards,
    branar
    Solved!
    Go to Solution.

    Hi Ray,
    Still does not work. I've tried first to add Sequence, but it was add subsequence (not is MainSequence)
    tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path,
    TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle));
    // tsErrChkMsgPopup( TS_EngineNewSequence (EngineHandle, &errorInfo, &newSequence));
    // tsErrChkMsgPopup(TS_SequenceSetName (newSequence, NULL, "Main"));
    // tsErrChkMsgPopup( TS_SeqFileInsertSequence (SequenceFileHandle, &errorInfo, newSequence));
    tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "","Label",&labelStep));
    tsErrChkMsgPopup( TS_StepSetName (labelStep, &errorInfo, szName));
    error = TS_SequenceInsertStep (SequenceFileHandle, &errorInfo, labelStep, indexL, TS_StepGroup_Main);
     After that, I was tried with:
    tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path,
    TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle));
    tsErrChkMsgPopup( TS_SeqFileGetSequence (SequenceFileHandle, &errorInfo, 0, &Sequence));
    tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "","Label",&labelStep));
    tsErrChkMsgPopup( TS_StepSetName (labelStep, &errorInfo, szName));
    error = TS_SequenceInsertStep (SequenceFileHandle, &errorInfo, labelStep, indexL, TS_StepGroup_Main);
     Problem is probably in defining seq. file's MainSequence. So, I use two files (one default where i get normal subsequencies, and second (target), created with new formed subsequencies and default file. New subsequencies are copied into a target file. Adding context in MainSequence seems to be problematically, at least for me. I want first to "fulfill" mainSequence (trying to get code for this) and after that rest of subsequences and default context. My code currently create subsequences and their context succesfully.
    best regards,
    branara

  • How do you build a web page to display queued messages ?

    How do you build a web page to display queued messages in all states?
    Thanks,
    Reeta
    Reeta Joseph Benoy
    EDS@XEROX
    Database Administration
    1350 Jefferson Rd
    Rochester, NY 14623

    You can build a form to a procedure in oracle portal that explores the queue with the option browse and prints de type message with htp package. I made it in this way and my applicattion works right. The procedure must loop the select count(msgid) from aq$[queuetable_name] times.

Maybe you are looking for

  • Proxy & business Services creation using XML

    Hi, can we create a proxy service & business service in OSB using an xml? usually we use to create using a WSDL defined by a webservice. can we create it using XML ? If so can anyone provide the doc or link for that. thanks

  • WLS 8.1 SP5 Message bridge doesn't refresh connection after idle time out

    Hi, I am seeing in the log after enabling the debug flags that message bridge intermittently stops refreshing the connection without logging further info and causing a production failure.Bridge is forwarding the message from WLS 8.1..5 DQ to the remo

  • Asked to insert my password, from a keychain I don't have?

    I'm trying to log in to my Microsoft Lync account, but I get a notification asking for my password from a keychain I don't have. So how am I suppose to know the password? The problem is that I can't even find that specific keychain (or Lync in my key

  • Satellite A105-S4547 boots itself using battery

    Hi I am new to this forum. Since having the 'password ' problem and resetting the bios I have two things wrong. 1 Touchpad dosent work, but I'am not really bothered about that as I use a mouse anyway. The bigger problem is that after shutting down, i

  • What is this technology on this site?

    http://experience.mtvnhd.com there is a technology at this link. it places the loaded picture onto a face in the video. What is this technology? how can this made? can you give some links if you have knowledge? thanks....