Programmatically determine step count with nested sequences

I have a program that uses the count of steps in a sequence to determine progress. I currently use a sequence pointer to call GetNumSteps for each group. What would be the best way to expand this to handle subsequences? In other words, if I have a top level sequence with 5 main steps, 0 setup and 0 cleanup but one of the steps is a sequence call and that sequence has 10 main steps, 0 setup and 0 cleanup steps, I want the count to be 15 and not 5. Thanks.
-G-
-G-

Steve is correct, you would have to set this up using recursion where you count steps and also go into sequence calls to count their steps as well. There is no native way to do this in TestStand, you would have to program this with your language of choice and call that recursive function.
Brandon Vasquez
Applications Engineer
National Instruments
Brandon Vasquez | Software Engineer | Integration Services | National Instruments

Similar Messages

  • How to run SequenceFilePostStepFailure model callback after step failing with nested sequence calls

    Hi,
    I would like to pop up a message box immediately on any test failures.  I had thought I could use the SequenceFilePostStepFailure model callback to achieve this,but when I modify the process model callback to achieve this, I've found that the callback code is executed only for step failures of the top level sequence file.
    My test code has mutiple sequence files being called before getting down to the granularity of the basic numeric limit test that will pass or fail, so I'd like to execute the SequenceFilePostStepFailure callback immediately at that level.  I can achieve this by adding a SequenceFilePostStepFailure callback override in the sequence file in question, but I'd prefer to use the default model callback implementation so I don't have to find all the places where numeric limit tests are executed and cause the DUT to pass/fail.
    I've attached some example sequences that I hope illustrate the problem.
    Thanks for the help,
    Daniel
    Solved!
    Go to Solution.
    Attachments:
    TestCode.zip ‏55 KB

    My fault, I see now that the model callback I should have modified is the ProcessModelPostStepFailure.  Problem solved.

  • Count(*) with nested query

    Hi,
    I have a question about the count(*) with nested query.
    I have a table T1 with these columns:
    C1 number
    C2 number
    C3 number
    C4 number
    C5 number
    (The type of each column is not relevant for the example.)
    This query:
    select C1, C2, C3, C4
    from T1
    group by C1, C2
    it's not correct becausa C3 and C4 are not columns specified in the GROUP BY expression.
    If if run this query:
    select count(*)
    from (select C1, C2, C3, C4
    from T1
    group by C1, C2)
    I haven't an error message (the result is correctly the number of records).
    Why?
    Thanks.
    Best regards,
    Luca

    Because you are just selecting count(*) and none of the columns from the subquery, Oracle is optimising it by ignoring the selected columns and just running the sub query with the group by columns. I know it seems odd, but if you take a basic example:
    SQL> ed
    Wrote file afiedt.buf
      1  select count(*)
      2  from (select empno, sal, mgr, deptno
      3  from emp
      4* group by deptno)
    SQL> /
      COUNT(*)
             3... all columns but deptno are ignored
    ... but if you include one of the other columns, even if you group by that column...
    SQL> ed
    Wrote file afiedt.buf
      1  select count(*), empno
      2  from (select empno, sal, mgr, deptno
      3  from emp
      4  group by deptno)
      5* group by empno
    SQL> /
    group by empno
    ERROR at line 5:
    ORA-00979: not a GROUP BY expression
    SQL>... the error returns, because you're forcing oracle to include the column in the subquery.

  • Programmatically determine steps referenced in an expression

    Is there an elegant way to programmatically determine any steps that are reference in an expression using API. 
    Such that
     AllOf(RunState.Sequence.Main["ID#:AzvyVD4OcUiZz2vk3ZHknA"].Result.Status == "Passed", RunState.Sequence.Main["ID#:0RT7Ih2QQkimHpGGh30sIA"].Result.Status == "Passed")  Would return ID#:AzvyVD4OcUiZz2vk3ZHknA and ID#:0RT7Ih2QQkimHpGGh30sIA in an array of strings or something along those lines.
    Herrlin
    Just trying to spread the LabVIEW love.

    John B
      Thanks for the reply.
      I actually did implement a similar solution to what you described.  I originally didn’t share the entire scope of what I was trying to accomplish.  I wanted an entry point that would run selected steps and actively look for any steps referenced in the preconditions of the selected steps.  If a step was reference the entry point would know that it also had to run this step.   This will be a useful tool for debugging, since it will record results as well as run steps that the selected test is dependent on, in a sense.
      My team made a decision that we would only be using unique ids to reference steps in expressions felt this was a better programming practice.  Also we only needed this function for the MainSequence of a sequence file.  In addition we always wanted Setup and Cleanup groups to remain the same.  So we only needed to search each precondition for the unique step id of steps that where in the Main group of the MainSequence.
      I have attached the new sequence file I made with a Custom entry point.  The entry point is almost an exact copy of the single pass entry point with a couple of modifications.
    1 It calls Configure Temp Sequence
    2 It references a temp sequence file what during the MainSequence Callback instead of the Client file
    3 In the Cleanup it closes the reference to the temp sequence.
      Also there are two new sequences:
    Configure Temp Sequence
    Get Steps to Exe
      Any way just thought you might be interested and this was no easy task for me so I was excited to share.
      Thanks
    Dan H
    Herrlin
    Just trying to spread the LabVIEW love.
    Attachments:
    ModSequentialModel.seq ‏42 KB

  • Time remapping / slow motion extremely jumpy with nested sequence!

    I have just finished the rough-cut of a ceremony when I went back to add effects-- slow motion, color correct, etc. only to find that ANY time-change is jittery-- extremely jittery, like it's skipping frames.
    For trial purposes I created a new timeline with only one video clip placed multiple times. I reduced one to 50% with frame-blending, the other 50% with NO frame-blending and the final using time re-mapping with frame-blending. At 50% I don't expect fluid movement, but they are all acceptable... Until I put a different timeline in the timeline (I think it's a "nested sequence").
    When speed is slowed on ANY nested sequence it is jittery. Whether it is a single nested sequence or a multi-camera sequence, it jumps.
    Has anyone else had this problem?! Is this a bug? I never noticed it until this wedding. I am using CS3 and I cannot afford the time to re-edit this ceremony with 2.0.... Unless I have no choice.

    Hi Wil,
    I have tried using both. Time remapping on the clip (not nested) works fine, so does 'speed change.' But both time remapping and speed change result in jumpy frames when applied to a nested sequenced clip.
    I tried this on another (much lower system) and have found the same results. I am begining to think it is the footage but it seems odd that it is perfect when applied to a clip in the timeline but NOT to a timeline in the timeline (nested).
    I am on vacation and do not have access to a faster machine until next late next week but for now I will try the export again to be sure Encore sees the same thing.
    I am dumbfounded because I had been using 1.5, then 2.0 and now CS3 for weddings for years and have never noticed this. I have noticed it on the both the last project and now this current one.
    I thought it could have been the original footage (or a camera problem except that the problems are not there until a nested sequence comes along. I will try moving the footage to my internal drive now and see what happens...
    Thank you so far for giving me ideas.

  • Working with Nested Sequences

    I'm working with a 1 hour, 20 minute multi-cam (2 cameras) Sequence of a concert, with many edits. One of the music pieces was complicated, so I separated it out into a separate Sequence, and did the editing. Later, my occasional fcp tutor created a new nested Sequence, into which he transferred the separated piece. The nested Sequence is exactly the same length as the original Sequence.
    Since the two cameras required different kinds of Color Correction, we did this in the nested Sequence. Then we exported the nested Sequence as a self-contained QT file. O.K. so far.
    But then later, after my tutor has gone, I realize that I don't understand nested Sequences. When I double click on the nested Sequence in the timeline, I'm taken back to the whole concert Sequence in the timeline, out of which the nested Sequence was created. So, Question #1: I can't adjust the audio in a nested Sequence? Question #2: Now, I realize I need chapter markers and I create them in the original whole Sequence, but too bad, they don't appear in the nested Sequence (which has the color correction that I want). How can I transfer my newly created chapter markers in the nested Sequence so that I can now re-export it with the chapter markers?
    Thanks, Robert

    1. Duplicate the 'whole' sequence (The one with the chapter markers)
    Give the duplicate an obvious name. Like "FinaL WITH CHAPTER MARKERS".
    2. Delete all clips in this duplicate sequence. (Command-A, then Backspace)
    The chapter markers will remain. Don't alter the original sequence in any way!
    3. Go to the nested sequence. Copy Everything (Command A, then Command C)
    4. Go to the (now empty) Duplicate sequence. Paste (Command V)
    Rienk

  • EDL and OMF from a timeline with nested sequences

    I have a short film which I want to send for a conform and as OMF for a sound mix.
    Only thing is, I'm making use of the neat way you can edit sequences separately and then place those sequences on a timeline. The problem is, when I output an OMF or EDL from this assembly, all I get is references to the sequences themselves (I.E. only 6 clips)!
    What could possibly be the use of this? Surely this is just a dumb oversight by the makers of the program? Does anyone know any way around it apart from just sticking everything on one timeline?
    If there is no other way, then surely nesting sequences is just a big waste of time?

    OK...I am imagining I am editing a feature film using an Avid. And in this imagining I notice that Avid too has a nesting feature called COLLAPSE. And in sequences that have been collapsed, EDLs and Cut Lists don't reference the clips inside the collapsed area. I now imagine I am working on a network TV series (cop drama, on for 13+ years), also on an Avid, and there too, collapsed sequences don't spit out proper EDLs.
    I find this funny since Avid has the best media management in the world...but.
    Now I am imagining me or my assistant (when I get to be the big editor I'll have the assistant do it...but now I am the assistant so it is ME doing it) going thru the sequences and EXPANDING THEM to show all the clips so that a proper online can occur.
    I imagine you have to do the same with FCP. But I am new to the program, so I am not sure. Wait...wait...wait. I did a test. Yes, my imagination is VERY good. I have to do what was suggested...open the nest and copy/paste that onto the main timeline.
    Mom always said I had a wild imagination.
    Nesting or collapsing your sequences are done to add filters to multiple clips, like letterboxing or color correction. When you output an EDL, you don't need that, so the nest is MOOT.
    Reflect...take note. Do it manually.
    Tom.

  • Trouble with nesting sequences

    Hello.
    The "transparent" elements of my sequences are not preserved when I bring them into another sequence/timeline and apply an effect or motion to it. Is this typical? They appear to be fine, at first, but when they are rendered or exported, the nested sequence has a black background instead of a transparent one. I'm working targa files with transparent elements, which work just fine in their source sequence.
    I apologize if my wording is awkward or if this has been answered elsewhere.

    This is not my experience.
    When I add transparent elements to a sequence and I nest this sequence into another one, transparency is preserved, even after rendering (I can superimpose the sequence with transparent elements to another clip in the timeline, and this appears in the transparent areas).
    Exporting is a different issue. FCE can Export/Quicktime Movie only using DV or HDV codecs that do not preserve transparency. There is a possibility however: you may Export/Using Quicktime Conversion and select the Animation codec which preserves transparency. But before exporting you must make sure that the sequence is not rendered, otherwise the non transparent rendered files will be used (to do that you can make the tracks not Visible and then Visible again, in order to delete the render files; or you can disable and enable again the transparent clips).
    Piero

  • Errors with nested sequences

    I have been working on a large project in which I have been nesting sequences and placing them into one master timeline.
    When I update my nested sequences, the master sequence does not reflect the new changes. For example, I deleted an audio track in one of the nested sequences, but the audio track still plays in the master sequence.
    My master sequence used to update when I made changes to the nested sequences, but this problem has only occurred recently.
    Any help would be greatly appreciated.
    Thanks,
    Paul

    If your audio is mixed down it's likely playing the mixdown back in the rendered sequence. Is that what is happening? However I've not tried it to see if it's a bug. I don't nest audio tracks myself.
    Audio mixdowns are transparent in the timeline too unfortunately.
    Do video changes also not show up?
    Jerry
    Message was edited by: Jerry Hofmann

  • No Audio in Master Sequence with nested sequences

    I have tried searching for a solution but cant find anything the same as this.
    I have several sequences with multi track edits in them (not multi camera but on diffeent video and audio tracks)
    I have dropped these sequences into a master sequence, they line up perfectly, but when I play them, the video is fin, but there is no audio.  the individual sequences have audio without any probelm.
    I have not done any audio editing in the sequences yet, just assembled the visual edit with the orignial audio tracks attached.
    I klnow I must be missing a step or doing something wrong, but can't figure it out!
    thanks
    A

    Not muted. All plays well in Source Monitor but dragging from Source to Timeline only brings video. Same for dragging from Project to Timeline.
    This morning I tried "New sequence From Clip" on a sequence from the Project Window. This works but then requires an extra step of copying from the newly generated Sequence to my "Master" sequence. Intuitively it seems like the other methods should work. I should be able to Import project files containing all the required sequences and then from the Project window drag each of those sequences to a master timeline. Am I incorrect in my assumption on this workflow?

  • Determine line count with wordwrap without Textcomponent visible

    Hi,
    I read a lot of post here that contains code that return number of line occupied by a wrapped text in JTextArea/JTextPane.
    However, the code only work if the text component is visible and already on screen.
    What I want is calculate the number of line count of wrapped text in those component even before the component is visible.
    Currenly, the line count always return 0 because component yet to display on screen.
    Can someone tell me how to do this ? thanx.

    I've been struggling with this for JTextArea. This seems to work. tp is the JTextArea and I get width from the preferred size.
            public int getLines(float width) {
                View view = tp.getUI().getRootView(tp).getView(0);
                view.setSize(width, (float)Short.MAX_VALUE);
                int preferredHeight = (int)view.getPreferredSpan(View.Y_AXIS);
                int lineHeight = tp.getFontMetrics( tp.getFont() ).getHeight();
                return preferredHeight / lineHeight;
            }

  • Massive problems with nested multi-cam sequences

    Hey all,
    I'm absolutely pulling my hair out over some issues I'm having and hope somebody out there might have an answer.  I'm creating a short interview project, including interviews of two people individually, with two separate cameras and external sound capture.  My goal is to cut between their separate answers to each question.  For each interview I created a multi-cam sequence within its own timeline.  Then, in my master sequence, I used the source monitor to pull out the specific clips from each interview sequence which I wanted to include, and assembled them into the master timeline.
    I'm having two difficulties.  First, for whatever reason, I'm experiencing audio glitching when the cuts between sequence clips occur.  The glitch is like an audio "scramble," lasts about a half second, plenty of time to be distracting and detract from the whole of the project.  There are no such audio glitches present when viewing the interview sequences specifically.  I had applied effects to the audio tracks both within the interview sequences and the master sequence.  I've since disabled every effect but the problem persists, and it is still present upon rendering the master timeline.  I have absolutely no idea what to do about this.
    The second issue is more general.  I've got my media cache on an internal SSD, and I'm pulling my media from an internal HDD, with Premiere Installed on a different SSD with my operating system.  The two interview sequences play back wonderfully, no delays whatsoever.  The master timeline, however, with all the clips extracted from the interview sequences, plays slow as molasses.  It takes 10-15 seconds for the play head to even start moving once I click 'play', which has made this entire process excruciatingly difficult.  Is this a known issue?  Why would my performance be so completely degraded working with nested sequences?  Isn't everything referencing the exact same files?
    Ugh, long night working on this.  Thank you for any help.

    Well, I've come up with a terrible, but comical solution for the second issue which doesn't involve reworking anything.  It turns out that, upon launching premiere, I can play the master sequence with nested multi-cam sequences a grand total of ONCE with minimal delay.  If I stop the play through, then it will take 3-4 minutes to get the sequence playing again.  Of course, the Premiere decides to hang when I try to close it after playing this master timeline, so I'm finding that I can inch my way through this project by (1) launching premiere, (2) playing the master sequence, (3) make the edits I need, (4) forcibly crash Premiere, and (5) relaunch Premiere and repeat.  It's a terrible way to work, but the project is so close to completion that I'm willing to suffer through it.
    As to issue 1, I've taken each offending clip, extending the audio track one or two frames in the beginning of each clip, and then use those frames to ramp the volume up from silent to 0db.  This seems to avoid the brief moment of distortion at the beginning.  Notably I did try your suggestion by going back to the original, source audio, but I was still getting the same issue.  My work-around is the only solution I've been able to come up with.

  • Media Encoder CC 2014 using cached versions of Precomps in AE and Nested Sequences in Premiere?

    I'm seeing this weird thing where Media Encoder is using older versions of certain assets when exporting a Premiere Pro CC 2014 sequence.  I'm seeing issues with nested sequences...Media Encoder uses an old version of a linked AE comp or it doesn't render a certain video track. With linked AE comps...I'm seeing Media Encoder use an earlier version of a precomp within the main comp.
    When I look at the video in the Export Settings dialogue in Media Encoder, the old version of the AE comp shows .
    If I look at the Export Settings dialogue in Premiere, it's up to date and looks right.
    Anyone dealing with this or found a workaround?  Thanks!
    Calvin

    I don't think I'd call this issue expected behavior...at best it's anticipated behavior that's going wrong.  The only reason I wouldn't call it expected behavior is because what I'm seeing is AME reverting to a cached state on a FRESH LOAD of a sequence to render directly from Premiere.  Basically, AME isn't open...sequence looks fine in PPro...load into AME via PPro export...look at export settings dialog in AME and note that the sequence is the old/cached version.  So, it's not like the export was already in AME and THEN I made changes in PPro.  It appears AME might be incorrectly identifying the newly imported sequence for export as an older, cached version.
    However, I didn't get a chance to test your original solution so I'll try that the next time I see it happen.  I also fixed the issue by clearing out the media cache and databases.  NOT an elegant solution at all and TOTAL overkill...but it did work.
    Thanks for the links!

  • Nested Sequence issue: keyframe scale setting changes after rendering?

    Hi,
    I'm using PremierePro CS5.5, and have been having this same issue since CS4. After nesting a group of clips, I make the timeline effects entries to animate the nested sequence. For this example, let's say I start at 00.00 with the scale set at 150%, and end the sequence with the scale set to 300%. Just zooming in. Looks OK, so I hit return and render the nested sequence. It plays back, all is good, but after it stops the 00.00 setting magically changes to 100% or some other percentage.  I've tried everything I can think of, from selecting Hold or Linear for the keyframe, to deleting all the keyframes and redoing the settings. It only happens with nested sequences and it seems to only be the scale setting that goes flukey. Anybody else have this happen and could you tell me what I am doing wrong?
    Thanks,
    Christy

    Thanks for checking it out Jim. It doesnt happen every time, you know how that goes... just often enough to drive me batty. I'm doing animated whiteboard videos. Lots of short bits of video layered with graphics and stills, some effects, then all that is nested and sometimes the rate compressed. Then I zoom in a bit and that seems to be the last straw. Maybe I am just doing too much? It's a simple, uncomplicated look to the finished piece, but it takes a lot of cuts and tweaks to get it that way.

  • Flash frame in nested sequence won't go away

    When I open up the sequence to play it, it's fine. When the sequence itself is played, It flashes over the first part of her sentence, then cuts in as she's saying a particular word.
    I dont show that there's anything to be rendered. I've done everything i can think of, including exporting and hoping that would fix it, closing out fcp and reloading the project, etc.
    Anyone ever run into this?

    Are you saying that your nested sequence is starting at a later point than the inpoint of the first clip contained within it? A nested sequence can be trimmed just like a regular clip, so you may just need to drag its in-point to the left (or perform a slip-edit).
    If this is not the problem, you could certainly have a phantom render file (this happens most often with nested sequences). You can usually kill it by forcing FCP to re-render that section of the timeline. There are a billion ways to do this–my favorite is selecting a clip (or range of clips) located on the section of your timeline where the phantom is hanging out, then hit Ctrl-B twice to toggle their visibility on and off. A fresh re-render of that timeline section should confirm that your phantom has finally been released to render file heaven.
    Zap
    Dual 2 GHz PowerPC G5 Mac OS X (10.3.6)

Maybe you are looking for

  • Cfolder questions

    Hi Experts, I have couple of question related to CFolder which a test system configured and running on a SAP sandbox WAS. 1) Can CF be extended to outside suppliers without  a need of an sap UI and password? If yes, do they just need any special  typ

  • ITunes LP does not work

    I recently purchased Imagine Dragons' Night Visions Deluxe Edition. All songs play correctly, but when I click the button that says "Play iTunes LP," it opens up Adobe Reader with an error message reading "Adobe Reader could not open 'Digital Booklet

  • How to align diff. search region items where one region is HideShow region

    Hi, I have split my 1 search region into 3 regions, because I want to use a hideShow region for a number of parameters. This is a manual search. The structure is as follows: PageLayoutRN --SearchHdr --Properties: Style: header ----SearchRN01 ----Prop

  • How can i tell if i pre-ordered a movie

    my daughter thinks she pre-ordered hunger games movie and says the $14.99 was taken off her gift card, but we cannot seem to be able to confirm the preorder. she wants to cancel the pre-order and manage pre-orders does not appear on my account page.

  • Adobe CC installed but I can't select my pictures fro iphoto on the Mac as it is greyed out.

    Help please.  I have subscribed to Adobe CC but cannot access my RAW files from iphoto on the Mac.  I have tried going from iphoto to Export - Original but it says it cannot do it.  I have tried accessing from photoshop and selecting apps. iphoto but