RT sequences in parallel in sync?

It is a follow-up on this post.

I create several calls sequence on a given sequence, each with specific parameters:

so I start them all in parallel:

All sequences beginning in sync, or one after the other?

THX.

L.

All sequences have started together in a session running on the same target will start at the same time. They are synchronized.

Tags: NI Products

Similar Questions

  • Process vs asynchronous sequence in parallel model

    I've been studying the TestStand features and learn how to use it for about a month, so still very new for the environment (although I have been using Labview and Veristand quite strongly for about a year).  I wanted to get some clarification on the use of different process models, because I think I can be lack of understanding of certain terms.

    Here's a little history of my project:

    I have a Labview VI that I created to interface with a remote target (emulator).  Previously, I used the VI to run the tests manually, and I would like to use it as a code module in TestStand so that I can run automated tests.  I intend to use the same VI several times throughout the test sequence.  The functionality of the system is dependent on maintaining constant communication with the emulator, so I can't be opening and closure of the code module several times.  Once opened, it should stay open and communicate continuously (I hope I won't have to create modules of code to be through with my current VI 'wrapper').  Break the communication would result in most of the results of the tests to become invalid.  For these reasons, I chose to call the VI as a module of code into a sequence of void so that it can be run asynchronously, outside the main sequence.

    Now, as I learn more about the details of TestStand, I introduced the notion of "process models.  I was initially using the default sequential process template, but I would like to know if I should come parallel process model.  From what I can tell, the parallel process model is used when multiple Test DUT tests or running in parallel.  Is this correct?  To clarify my situation, I'll test only 1 USE, I use only 1 code module and I run several test with this module of 1 code steps.  I continually have to pass data back and forth with the code module as it runs parallel to the main sequence and there are probably several sequences of void called during the process, so that I can maintain the modularity with my tests.

    So the question is, can I take the parallel process model, or should I continue with the sequential process model and asynchronous sequence for my code module run in parallel?  Thank you very much.

    GSinMN

    I would definitely recommend using the sequential model with a sequence of asynchronous way running for the special code module, in this case. Let us know if you have any other questions on how to architect the system! It is certainly a good idea to plan these kinds of things before we get too deep in development.

  • Get the name of the current stage of MainSequence in parallel sequence

    Hello

    I starts a sequence in parallel of the MainSequence by "use new run." This parallel sequence is constantly in querying CPU performance data for my USE and records 'on the fly' an Excel file while the MainSequence turns the test scenario.

    To get a clear reference of the performance of the CPU DUT to test steps, I need to somehow get the name of the step of the test step currently performed in the MainSequence for saving it and the CPU performance data.

    Is it possible to identify the current stage of the main sequence in the parallel sequence (for example, property)?

    Thanks in advance,

    MRet

    Rette01 wrote:

    Hi Doug,.

    Finally, we have updated to TestStand 2013 and try to use your example.

    We have some problems to get the referral of wire, which is replaced by "threadToMonitor" in the expression you have posted, as far as I understand.

    The thread to monitor is the MainSequence. So, how can I get a reference to the MainSequence?

    Kind regards

    Rette01

    Pass RunState.Thread as a parameter to the call of the sequence. The parameter must be specified as an object reference variable.

    -Doug

  • out of sync sequence value

    Hi all

    I just did a refresh of a schema of prod dev. Which seems to work very well. I did a schema import/export level (we are on 9.2.0.5). My question is. It seems that the sequences are out of sync.

    In Drop lets say seqA a nextval 120 in dev seqA even has a nextval of 80. I know I can run the nextval of double 40 times to get the sync. But how can we synchronize these values for all other sequences. There are about 800 + of these sequences. Any ideas on how to synchronize these prod dev?

    Any ideas on how to synchronize these prod dev?

    Option 1:
    stop the application code that increments the sequence in prod and then export - import

    Option 2:
    write a plsql procedure to loop through all the footage and increment the

    Option 3:
    For each sequence with a mismatch: DROP SEQUENCE and CREATE SEQUENCE STARTING WITH the current / desired / Prod target values

    Hemant K Collette

  • Change the color of the frame of the socket in parallel Mode

    Hello, good day everyone!

    I'm runnning my sequences in parallel Mode.

    When I run a sequence, its color of frame socket continue in blue.

    When I finish a sequence, its color of frame socket turns green momentarily.

    I would like to change that color by program from my TestStand sequence. I don't know if it is possible.

    Example: If the sequence is waiting for something, the color should change to Orange.

    ---

    When I wanted to change the text that appears in the large textbox of the socket, I had to add the code to my paralleluutdlg.c, the PostParallelUUTDialogStatusMessage function.

    http://forums.NI.com/T5/NI-TestStand/parallel-model/m-p/345847/highlight/true#M10401

    I think maybe I need to add something like this once again to change the color, but I've found nothing related.

    Thanks in advance!

    Hello

    I did recently added this feature to my system. I did it by modifying the example in this article in the knowledge base of NOR. I don't know if it's the best way to handle this, but it worked fine for me. I have modified the function as shown below. You simply pass your message and the hexadecimal color you want to use.

    Hope this helps, maybe someone more knowledgeable can ring in to see if my work practice seems ok.

    _stdcall DLLEXPORT int PostParallelUUTDialogStatusMessage (int dlgHandle, int testSocketIndex, int myColor, char * statusMsg)
    { Int error = 0;}
    ERRORINFO errorInfo.

    int panelId = dlgHandle;
    int childPanel = - 1;

    PUUT_PanelData * panelData = NULL;
    TestSocketData * testSocketData = NULL;

    errChk (GetPanelAttribute (panelId, ATTR_FIRST_CHILD, & childPanel));
    errChk (GetPanelAttribute (panelId, ATTR_CALLBACK_DATA, & panelData));

    testSocketData = & (panelData-> testSocketDataArray [testSocketIndex]);
    SetCtrlAttribute (childPanel, testSocketData-> tonalite [kTSCtrl_Bg], ATTR_FRAME_COLOR, myColor);

    SetCtrlAttribute (childPanel, testSocketData-> tonalite [kTSCtrl_TestSocketIndex], ATTR_TEXT_BGCOLOR, myColor);

    errChk (ResetTextBox (childPanel, testSocketData-> [kTSCtrl_Status] tonalite, statusMsg));

    Error:

    error return;
    }

  • How can I use 2 sequences simultaneously?

    Hello

    I recently installed TestStand 4.2.1 I try to understand, I use 2 sequences simultaneously?

    Kobi.

    Kobi,

    What do you mean by "use sequences?

    If you talk about "the execution of two sequences in parallel", then the answer is Yes.

    In order to understand the parallelism in TestStand, I suggest you learn more about:

    - Knowledge General TestStand

    - Process templates

    - Parallel execution

    hope this helps,

    Norbert

    PS: You should think to participate in a course TestStand

  • How can I run two sequences simultaneously on the same object to measure

    I'm turning two sequences in parallel on even the UUT (own USE) so that I can put a piece of equipment to a certain State while starting a timer at the same time.  How can I do this in the sequencer teststand?

    You can run a sequence (or a subsequence if you just need a timer) in a new thread (just choose "use new thread" in the call of the sequence)

  • Audio kills razor after Mid-sequence cut tool.

    Hello

    I use the first Pro CC 9.2 to modify a nested sequence of 2 x video and 2 x Audio tracks. I have already edited two hours or equipment in any 30 minutes and all of a sudden my next haircut with the razor tool removes completely the audio during the rest of the nested sequence. I can double click on the nested sequence and see the original 2 x audio video and 2 x titles all works well (before and after cutting with the razor tool). I can even copy and paste these audio tracks (post-a cut) No nested in the nested sequence and listen to them fine?! Someone can explain why or how is what is happening. I already got half a dozen videos the same method without any problem.  Thanks for your time and any help you can offer.

    TL; Dr

    Razor tool inexplicably kills all the audio of a nested sequence of mounting medium.

    Found a work around. Select the rest of the track of nested problem (which had no sound after the edict) and a clutch of replacement. It has transformed into a new sequence (but always in sync). I even did some retouching tool razor to see if the problem occurs again, but well.

  • Synchronization of a display multi-cam with no common point of sync (several clips that start before and after others)

    Hi all

    I recently recorded a production of theatre and because of some limitations of record on some camera, I've seen camera that is non-stop, and three others who cut inside and out for the big musical numbers or great moments, etc. Is it possible to create a view of multi-camera with multiple views, I, because none of them share a common point of synchronization? Is it possible to set multiple synchronization points and label all so that they can synchronize correctly? I'm sorry if it's very confusing! Thank you very much.

    Kyle

    multicamera Create Sequence of Source, with Sync Point, choose Audio

  • Copy of BatchModel.seq 4.1

    Is there a repository where I can find a copy blank Batch sequence models, parallel and Sequencial?

    Thank you

    This must be \Components\Models\TestStandModels except if of course this has been changed. In this case, you need to get from your CD of TestStand.

    You could try to remove the modified files and then do a repair.

  • State of Transitions Bug

    Need help.  I played with transitions recently.  Specifically the transition from one State to another.  So far, I have concluded that bland is on the only effect which is not buggy.  I can't travel more than any other effect.  For some reason any movement works the first time, but if you were to return to the location of what you were the movement gets completely become misaligned.  I've included an example below.

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                   xmlns:s="library://ns.adobe.com/flex/spark" 
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="800" minHeight="800">
         
         <s:states>
              <s:State name="state1"/>
              <s:State name="state2"/>
         </s:states>
         
         <s:transitions>
              <s:Transition fromState="state1" toState="state2">
                   <s:Sequence>
                        <s:Parallel target="{panel1}">
                             <s:AddAction/>
                             <s:Fade/>
                             <s:Move xTo="800" xFrom="262.5"/>
                        </s:Parallel>
                        <s:RemoveAction target="{panel1}"/>
                        <s:Parallel target="{panel2}">
                             <s:AddAction/>
                             <s:Fade/>
                             <s:Move xTo="262.5" xFrom="800"/>
                        </s:Parallel>
                        
                   </s:Sequence>
              </s:Transition>
              <s:Transition fromState="state2" toState="state1">
                   <s:Sequence>
                        <s:Parallel target="{panel2}">
                             <s:AddAction/>
                             <s:Fade/>
                             <s:Move xFrom="262.5" xTo="800"/>
                        </s:Parallel>
                        <s:RemoveAction target="{panel2}"/>
                        <s:Parallel target="{panel1}">
                             <s:AddAction/>
                             <s:Fade/>
                             <s:Move xFrom="800" xTo="262.5"/>
                        </s:Parallel>
                   </s:Sequence>
              </s:Transition>
         </s:transitions>
         
         <s:Panel id="panel1" 
                  title="Panel 1" textAlign="center"
                  width="275" height="170" includeIn="state1" cornerRadius="10" x="262.5" y="315">
              <s:Button id="next1" label="Next"
                        horizontalCenter="0" bottom="5" click="currentState='state2'"/>
         </s:Panel>
         
         <s:Panel id="panel2"
                  title="Panel 2" textAlign="center"
                  width="275" height="170" includeIn="state2" cornerRadius="10" x="262.5" y="315">
              <s:Button id="next2" label="Next"
                        horizontalCenter="0" bottom="5" click="currentState='state1'"/>
         </s:Panel>
         
    </s:Application>
    

    If you run the above code, you will see that the original animation works perfectly.  However, when you click on the next button to return to the State 1 the animation ends and then moves the Panel 1 off the screen.  No idea why this is happening.  Any ideas?  I use the bad transition?

    I think that you run into a situation where States and the transitions are fighting for the position should be, here is an example of reduction:

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark" >
       
       
           
           
       

       
       
           
               
           

       

       
       
           
           
       

       
       
       

    This is because the effect moves the Panel to 800 as his, but the transition ends and x is then defined on its state2 value (which is 262.5).

    In general when you set transitions you should not define all the properties on the effects (like xFrom/xTo etc.) because they can conflict with the values that are specified in the States.  In the following code snippet, you shouldn't do this:


           
               
           

       

    ...
       

    But on the contrary must define the position of every State and does not give the move effect any additional information:


           
               
           

       

    ...
       

    As a solution for your original example, you can get the behavior you want by making a very subtle change is to set x.state1, x.state2 of the values for the two components:

    http://ns.Adobe.com/MXML/2009.
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "800" minHeight = "800" >
       
       
           
           
       

       
       
           
               
                   
                       
                       
                       
                   


                   
                   
                       

                       
                       
                   
                   
               
           
           
               
                   
                       
                       
                       
                   

                   
                   
                       
                       
                       
                   

               

           

       
       
       
    title = "Group 1" textAlign = "center".
    "width ="275"height ="170"includeIn ="state1"cornerRadius ="10"x.state1 ="262.5"x.state2 =" 800 "y ="315">
           
    horizontalCenter = "0" low = click on '5' = "currentState = 'state2'" / > "
       
       
       
    title = "Group 2" textAlign = "center".
    "width ="275"height ="170"includeIn ="state2"cornerRadius ="10"x.state1 ="800"x.state2 =" 262.5 "y ="315">
           
    horizontalCenter = "0" low = click on '5' = "currentState ="state1"" / > "
       
       

  • Transition

    I have this code:

    <s:transitions>
         <s:Transition fromState="otherState" toState="normal">
                   <s:Sequence>
                   <s:Parallel target="{otherStateNav}" duration="1000">
                        <s:Fade alphaFrom="1" alphaTo="0"/> 
                        </s:Parallel>
                        <s:Parallel target="{normalStateNav}" duration="1000">
                             <s:Fade alphaFrom="0" alphaTo="1"/>
                             <s:Move xFrom="0" yFrom="-850" xTo="0" yTo="0"/>
                        </s:Parallel>
              </s:Sequence>
         </s:Transition>
    </s:transitions>
    

    What is happening is that the normalStateNav is displayed, then the otherStateNav fades. The normalState NAV then fades and fact that it is supposed to do.

    I don't want the normalStateNav that appear until otherStateNav has disappeared.

    When you use effects in a transition you should not define properties such as xTo/alphaTo etc on them directly, but rather to set all these values in the States and give way to understand what to change.

    If your transition should look more to:


       
           
               
                   
               

               
                   
                   
               

           

       

    Then your components would be to define the position and the alpha:

  • Run pubs "in the clause.

    Hello world

    I try to use Execute pubs with "en" clasue in there. Here is the code that I have
    create or replace PROCEDURE test (COLUMN_NAME VARCHAR2) is
    
    VAR_VALUE NUMBER;
    
    lv_sql  varchar2(4000);
    
    begin
    --DBMS_OUTPUT.PUT_LINE()
    lv_sql := 'SELECT MAX('||':column_name'||') FROM AUTHORIZATION_X';
    DBMS_OUTPUT.PUT_LINE (lv_sql);
    execute immediate lv_sql into var_value
    using column_name;
    DBMS_OUTPUT.PUT_LINE (to_char(VAR_VALUE));
    
    end; 
    This is the simplest code that I use. I need to pass a 'name cloumn' in a table and I try to get the max value in this table and display.
    I'm getting some 'not a sql valid' error when I use the code above.

    Please correct my code is there is nothing wrong in.

    and in some documents I've seen: 1: 2:3 ratings where we need to pass parameters to the dynamic sql statements. Should it be in any order?

    Thank you
    Phani

    Marella Phani wrote:
    Hi blushadow and sean.

    Thanks for the reply...

    In fact, we do periodic refersh of the prod database for test, development environment. In this update of the test, dev environments sequences become out of sync (I think).

    Sean... Yesterday I read somewhere that "we must delete and recreate sequences if we start the sequence with the new value' '

    I'll try this coomand rather 'ALTER SEQUENCE your_seq INCREMENT BY x"and get back to you if I have a problem...

    Here is an example of reset sequences...

    {code}
    SQL > select test.nextval from double;

    NEXTVAL
    ----------
    125

    SQL > v_inc var number;
    SQL > v_resetno var number;
    SQL > exec: v_resetno: = 50;

    PL/SQL procedure successfully completed.

    SQL > exec 'select-(test.nextval-:x)-1 of the double' immediate execution in: using v_inc: v_resetno;

    PL/SQL procedure successfully completed.

    SQL > exec immediately executes ' change increment test sequence of '. : v_inc;

    PL/SQL procedure successfully completed.

    SQL > select test.nextval from double;

    NEXTVAL
    ----------
    49

    SQL > alter the test sequence increment by 1.

    Modified sequence.

    SQL > select test.nextval from double;

    NEXTVAL
    ----------
    50

    SQL > select test.nextval from double;

    NEXTVAL
    ----------
    51

    SQL >
    {code}

    Sean and blushadow... I saw using: 1: 2:3 in dynamic sql. How do I use this syntax? who should be in a particular order?
    can we use other names?

    Yes, you can as in my sample code above. The bind variable are just placeholders, so you can call it what you like. What you should remember, is that you can only bind in values, not the column names or table names.

  • How to put the lock in parallel sequences?

    Hi all

    I'm writing a testseq, which has two parallel sequences. In the two sequences (threads) a same LabVIEW program (Vi) as an Action step will be called. Since the Vi uses an IP address, so it cannot be run more than once at the same time. So I want to make a setting (Lock) like to Teststand.

    is it possible to use the setting lock (How) to allow the as step Vi, which runs once at a time.

    Any response will be appreciated!

    The easiest way, if you want to lock on a per stage basis, is to use the lock on stage settings. See the sync section of the settings on the step step settings panel. You can use the same name of locking with several steps in to do use the same lock. If you want to lock around several steps, use the type of synchronization lock step.

    Hope this helps,

    -Doug

  • parallel and sequential in the same sequence

    Hello

    To expedite the duration of the test, I would like to make some of my steps in parallel with others.

    However, some of the previous steps and the following must be executed sequentially.

    How to combine these 2 behaviors run inside the same sequence?

    Put the digital multimeter read in a sous-suite. Then call three times, with the option to purchase New Thread subsequence. You can use the three steps in sequence call, or to execute a loop on a single call.

    After the call, use a step of waiting with the wait for the option of Thread for each call. You can use the three steps of waiting to match your three calls, or if your calls were in a loop, you can use an expectation not in a loop.

Maybe you are looking for