Determining Sequence Call information

When handling TS_UIMsg_Trace message in operator interface and executing step in subsequence, how to obtain handle of step, which call this subsequence.
For example:
MainSequence:
Step1
Step2(Call Sequence2)
Step3(Call Sequence1)
Step4(Call Sequence2)
Sequence1:
Step1_1
Step1_2(Call Sequence2)
Sequence2:
Step2_1
Step2_2
During handling TS_UIMsg_Trace event from Step2_2 of Sequence2, how to know that Sequence2 itself was called by Step2 of MainSequence(for example), and neither by Step4 of MainSequence nor by Step1_2 of Sequence1, and so on?

You will need to use the TestStand API to get the SequenceContext of the Execution that generated the trace UIMsg, and then you can simply obtain things like the "CallStackName" of the calling sequence to the subsequence, or the Sequence name and Step name of the calling sequence. More specifically once you have the SequenceContext that generate the UIMsg, you can use the TS API to retrieve the CallStackName of the calling sequence through the "RunState.Caller.CallStackName" property path. The same is true for the calling sequence's sequence name and step name with the "RunState.Caller.RunState.Sequence" and "RunState.Caller.Step" property paths respectively.
I have included an example sequence file that illustrates the scenario you posed, so that you can
see the API objects and methods to manipulate to obtain this information. Note though that you will need to adapt this to code in your UI that starts with the UIMsg object you receive in a trace event, to obtain the Execution the event occurred in and then the SequenceContext belonging to that Execution. For more information on using the TestStand API, reference the TestStand Programmer Help (Sequence Editor Help >> TestStand Programmer Help).
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
Attachments:
FindCaller.seq ‏30 KB

Similar Messages

  • How to eliminate an instance of "entering a sequence call" from the teststand report

    I am using TestStand 4.2 and I am using a long sequence with several sub-sequences.  In these subsequences I am getting test results that I would like to place in the TestStand report.  Currently, in order to do this I have to check the "Record Result" option in the "Run Options" of the sequence call properties which displays an "Entering sequence call" mark on the report.  Is there any way that I can get rid of this marker and still record information from the sub sequence?
    Solved!
    Go to Solution.

    Hello,
    You should have a look a these documents:
    http://digital.ni.com/manuals.nsf/websearch/2B14FB​1CD4FF25CA862577AE00554FC7
    http://zone.ni.com/devzone/cda/tut/p/id/7958
    Regards,
    Rodéric L
    Certified LabVIEW Architect

  • Getting Sequence object from pre-step substep of Sequence Call based step type

    How to obtain reference to Sequence object from within pre-step substep of Sequence Call based custom step type?
    Given: new custom step type which based on NI Sequence Call step type. There is Pre-Step substep exist for this step type.
    How to get reference to Sequence object representing Sequence which will run?
    Although there is possible to examine SequenceAdapter and SequenceCallModule properties, it seems redundant since module (Sequence) is already loaded by TestStand ("NI TestStand Reference Manual. Table 3-4. Order of Actions that a Step Performs"   Action #6, while my code is running as Action #13).
    Thanks.
    Misha

    Could you explain what you want to do ?
    Why do you want to get the sequence object within a pre-step substep ?
    I give you some informations but I don't know if it's the better way to do what you want (because I don't know what you want to do with the sequence object).
    If the substep uses the ActiveX adapter :
    You can get the sequence object but you should save the object reference in a StationGlobals variable.
    And you should release the object reference within your sequence when you don't need it any more.
    If the substep uses another module adapter: 
    Get the step module, then the sequence name (module property).
    Then get the sequence object by the sequence name from the sequence file.
    Here are the paths to use for both methods :
    Sequence Name property path : Step.Module.SeqName
    Sequence Object path : RunState.SequenceFile.GetSequenceByName (seqname)

  • 1.call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.

    Hi. please solve my problem.
    .call information such as call waiting,call forwarding, call holding is not working when caller the call me or im wait for my call i cant see any title by iphon , and also holding is the same.2. there is not any option for call baring.3.playback music is not hearing by second partner during the call.4.i cant select ringing ton from saving tons.
    thank you in advance.

    Hi Ersin,
    Exception 1 would seem to be FORMATTING_ERROR, which suggests something in the design of the Smartform.  However, that doesn't fit with the form being generated from a report, but only erroring when called from a function module.  I can think of no reason why the different calling method would be a factor.
    When FORMATTING_ERROR is raise it should also set a message ID and number, are you able to determine what they are?
    Regards,
    Nick

  • Record Results from sequence call inside of SequenceFilePostStepFailure Callback

    Test Stand 3.1
    When a step fails I use SequenceFilePostStepFailure Callback.
    In there I have prompt:
    1. Continue
    2. Terminate
    3. Terminate (thus calling a power down sequence file)
    Problem is that when Option 3 is used. There are no results recorded from that sequence call because it was invoked from the Callback.
    How do I force record results when that sequence file is called?
    Attachments:
    RecordResultsProblem1.zip ‏10 KB

    Hello Jaws8you,
    After looking into this issue further, it appears as if the link I posted has some great information but is not an exact fit for your particular situation.
    Because results from sequence callbacks will not populate in the report, we need to make sure and have any results we would like included in the main sequence.
    In your case we are just going to put the sequence call in the "Clean Up" tab, which will report the data, and is good programming practice.
    So to fix this problem, let's go ahead and try this:
    1.) Change the variable "Locals.ButtonPressed" to FileGlobals.ButtonPressed in the locations that you have it so far
    2.) "Cut" the "Call Main Power Down" sequence call from the "SequenceFilePostStepFailure" step, and copy it to the "CleanUp Tab" of "Main Sequence"
    Basically, that should be it. What this will do now is run the "Call Main Power Down" sequence when button 3 is pressed and skip this step whenever button 1 or 2 is pressed. The result is then published in the report.
    This should work out the best for you, thanks for posting and have an awesome day!
    With warm regards,
    David D.

  • Modify the Edit Sequence Call dialog

    In TestStand v3.5, and/or v4.x, is it possible to modify the Edit Sequence Call dialog that comes up when using the SequenceCall Step type? If so, where is the source for this?
    What we want to do is add help information to the Edit Sequence Call dialog by either adding a Help button and/or adding the Parameter comments from the selected sequence prototype, along with the Sequence comments, so that we can provide guidance on the sequence usage to the developer at edit time. I've looked everywhere I can think of in the Help and the folders in the TestStand (v3.5) directory (StepTypes).
    Any help here would be greatly appreciated.
    -Jack

    Hi Jack,
    Thats a really good question !
    In the new TS versions there are some "bulid-in" StepTypes. For example if you take a look at "Wait" in TS4.0 there is a buttton "Configure Wait" . In the new TS 4.1
    the hole configure stuff is implemeted in the tab controls view like in the sequence adapter and the code modules. In the old TS 2.0 the sources where available. But in the new versions of TS 4.x
    it looks different for me. Just take a look callexec. The shipped TS 4.0 uir looks completly different than in editor under the tab control.
    Last year did a user step type.  And to modify my stuff i had to click this stuip "Edit" button.  I would like to have the same feature than the "build-In" one. But one change !!
    After some reverse hacking of some TS ini and xml files. TS editor was always crashing with a .net exception. So in my mind all the "build-in" ones are .net components
    like the hole Editor.
    So i am very courius what our NI-Guys here are saying to your question.
    Greetings and waiting for some "blue" anwsers.
    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=

  • Detect "terminated" status of sequence call

    Hello,
    I am using TestStand 2012 and one of my sequences is a bunch of sequence calls to other sequences.
    Each call is being made using the "Use New Execution", and waiting for the execution to finish before the next step.
    I am using this option because I like having different reports for each sequence.
    However, I still would like to capture which call succeeded or failed in my main sequence.
    For this, after each call, I have a statement whose status expression is:
    ( Find( RunState.PreviousStep.ResultStatus, "Passed", 0, True, False ) >= 0 ) ) ? "Passed" : "Failed".
    The problem I'm finding is that when one of the sequences I'm calling is terminated in the middle due to an error in the UUT which doesn't allow me to continue testing, the main sequence gets the status as "Passed".
    So, when I see "Passed" in my main sequence report, I still have to open the individual reports to make sure it really passed.
    Would anyone know a way around this?
    I tried changing the status expression of the sequence call step but it's a read only field.
    Thank you in advance,
    Leandro
    Solved!
    Go to Solution.

    Hello,
    Sorry for the confusion... let me try to be more clear...
    So, my test campaign for a specific UUT is composed of about a dozen sequences, which can be run independently. But I created another sequence, to work as a "batch", calling all these dozen sequences.
    Pretty much what it does is:
    1) Call first sequence in new execution
    2) Wait for execution to finish
    3) Check results of execution
    4) Add results to report
    5) Wait 10 seconds
    6) Call second sequence in new execution
    7) So on...
    So, for each new execution, I have a dedicated report, which is exaclty what I want. But for my "batch" sequence, I would like to be able to get a report saying which executions passed or failed, so I don't have to open the reports for each execution individually.
    The way I'm doing this (in step 3 above) is with the following expression:
    ( Find( RunState.PreviousStep.ResultStatus, "Passed", 0, True, False ) >= 0 ) ) ? "Passed" : "Failed"
    This way, anything different than "Passed" would give me a "Failed" result for that execution, and that's fine. The problem is that when one of the executions is terminated before it's finished, the PreviousStep.ResultStatus is giving me "Passed".
    I didn't know about the GetStates() method... Looks promissing! I'll give it a try.

  • Set Sequence Call Trace Setting for a SequenceCall Step

    Hi there.  I need to edit a sequence file automatically with a LabVIEW program.  We have a program the is successful in editing and saving a sequence file automatically which goes in and does a few things.  However I also need to be able to go in and change a setting in Run Options for the top level SequenceCall steps in Main of MainSequence.  I want to be able to change the Sequence Call Trace Setting for the steps from Disable Tracing in Sequence to Enable Tracing in Sequence.  However I do not seem to be able to find this in the API call chin anywhere.  At this point I am certain that it IS in there somewhere, but probably hidden under an option mask for something.  Anyone know where I might find it?
    This is NOT something I want to do at execution time.  This is something I want to do by launching TestStand in edit mode from LabVIEW to automatically edit and save a new version of the sequence file.
    Thanks!
    Greg
    Gregory Osenbach, CLA
    Fluke
    Solved!
    Go to Solution.

    Not sure if this will work.  I'm kinda bummed the To More Specific Class function wouldn't work.
    The Automation Refnum going into the top of the TypeCast is using the NI TestStand Adapter API 4.1.1 Version 1.0 as the type library and SequenceCallModule as the Object.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Additional caller information

    Obviously the iPhone cannot be configured to display additional caller information (other than name) such as company (this is what i would really need!) in case of an incoming call of a phone number which is stored within in the iPhone contacts. Can anybody help me with this problem. I haven'd found any app to solve that problem.

    Correct, it cannot (unless you add that info to the name field in the contact). There is no app for that, because 3rd party apps cannot run in the background. Any 'solution' would need to come from Apple.
    You can submit feedback to Apple: http://www.apple.com/feedback/iphone.html.

  • Everytime iTunes starts with "Determining Gapless Playback Information"!?

    Hi,
    for 7 weeks now everytime I start iTunes (12.1.0.71) it keeps saying "Determining Gapless Playback Information" and does it with the last 189 mp3-files I imported. The files are always the same, it does not happen to any other, older mp3-files and it does not happen to new m4a-files. I found some ideas in forums but all of the suggestions are outdated because iTunes 12.1.0.71 does not have the options mentioned anymore....
    Any ideas?

    Welcome to AD!
    I'm not sure this will work, but it's what I would try on my PC.
    I would rename the folders containing those new music albums to something else. Then itunes will not be able to find them, so should skip the determining gapless info for them.
    Specifically, use Windows Explorer to rename the folder they are in from "Artist A" to "Artist A re-do"
    I would also check to see if another player such as WMP could play them. They might be damaged files.

  • ITunes determining gapless playback information then freezing computer

    I imported my music to itunes last night. My computer froze while it was trying to find the artwork then i rebooted it and now itunes keeps determining gapless playback information. It gets about three quarters of the way through and freezes in the same spot everytime. I don't know what to do.

    I have the same problem - and cannot use iTunes at this point. Have about 15,000 tracks, and it got through most of them crashing which seized up the whole machine. I removed the song it crashed on which didn't fix it.

  • ITunes Freezes when determining gapless playback information

    I have a library of about 10,000 songs stored on an external hard drive. I imported them all into iTunes, and then when it tries to determine gapless playback information, it always freezes. First it froze on one particular song that I removed. It went a little longer the next time but then froze on a different song. Is there anyway I can have it skip songs? Or is it freezing because of a different reason? I basically can't use iTunes because it freezes within 2 minutes of me opening it..

    Welcome to AD!
    I'm not sure this will work, but it's what I would try on my PC.
    I would rename the folders containing those new music albums to something else. Then itunes will not be able to find them, so should skip the determining gapless info for them.
    Specifically, use Windows Explorer to rename the folder they are in from "Artist A" to "Artist A re-do"
    I would also check to see if another player such as WMP could play them. They might be damaged files.

  • ITunes Freezes on determining gapless playback information

    I really would like some help, I start iTunes up it starts to check the gapless playback information, then stops and I can't do anything more, except close it out. I have tried repairing it, I have tried uninstalling then reinstalling it, nothing seems to work. Does anyone have anything else I should try?

    Wow..adding to this one and will post my own. I just bought an iPhone and discovered iTunes 9 now Locks up on "Determining Gapless Playback Information". iTunes 9 worked fine prior to this as was syncing with iTouch. While it locks up on one song "Analyzing 4 of 4: Boys Boys Boys" the screen for Welcome to Your new iPhone is up but it is already locked up. I don't want to have to un-install and possibly lose my iTouch sync info. Without the iPhone hooked up iTunes just seems to lock up right away and never gets tot he Determining Gapless Playback.

  • Retrieving old call information

    Hello all,
    I've a problem which involves needing to prove some call information so I need to access bills from up to two years ago. 
    I don't need copies, nor can I afford to pay exorbitant fees to get them - especially when I only need to track calls made to one number which may not appear on every bill. I need to check roughly between May and Nov 2012.
    I don't even know if the information I need would be on a copy bill (time, date and length of call).
    Any suggestions? It is very important
    Thanks

    Try Live Chat, they might be able to help or at least point you in the right direction.
    https://bt.custhelp.com/app/contact/c/2902/?s_intcid=con_intban_sanda_contact_us_chat_from_forums

  • How to add results to report from sequence call disabled in report options ?

    Hello,
    I need to add text to report from a sequence called by a sequence call. The record results option for the sequence call is disabled because the sequence call is normally done thousands of times. Therefore, I don't want to fill in useless text in the report. But, if a certain condition in called sequence fulfills, I would put a text into the report. (Yes, this is related to a sporadic communication problem with the instrument which I want to record into the report.) Which options I have ?
    I have attached an example which doesn't add the text from the sequence to the report.
    Regards,
    Petri
    Attachments:
    report test.seq ‏45 KB

    Hello Ray,
    I encounter same behaviour with NONE adapter action step with post-expression as with a statement step as in my first example. With other words, if record results in sequence call in mainsequence is disabled, I cannot get any records into the report.
    Attached a modified sequence using NONE adapter action.
    Regards,
    Petri
    Attachments:
    report test.seq ‏53 KB

Maybe you are looking for