Change teststand post actions from labview

Hi,
Is there a way to change the post action of a test in teststand from Labview.
At the moment, if one of the tests fail out of limits then the post action is set to 'ON FAIL - GO TO NEXT STEP' but if the unit does not run then a diagnostics labview routine runs and at the end of that I would like to change the teststand post actions to 'ON FAIL - GO TO CLEANUP'
Can you tell me if this is possible
Thanks
Chris

Hi
Yes it should possible.
 Step step = m_SequenceContext.Step; if(nValue == 0) {
step.FailAction = "Next";step.FailActionTarget = ""; }
else{step.FailAction = "Goto"; step.FailActionTarget = "<End>";
Regards
Juergen
EDIT: This example Goto Endgroup --Sorry!
Message Edited by j_dodek on 04-21-2010 01:51 PM
=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=
Attachments:
DotNet.zip ‏17 KB

Similar Messages

  • Retrieving teststand step type from labview

    Hi
    I am looking for help/advice about being able to read the type of step that has just been executed from labview. I am current using "Runstate.Step.StepType" and saving the result to a local variable that is being read from labview. The issue I have is the function does not return meaningful data. The function always returns "StepType, IID = {39B81800-2FE4-11D3-AFAC-006097B79EF5}" regardless of the type of step.
    Does anyone know of another command that will return the type of step i.e. Numeric, multi Numeric, string or Boolean.
    Many Thanks
    Dave

    See if this helps: http://zone.ni.com/devzone/cda/epd/p/id/2738
    It uses TypeOf() function and then stores the step type in local varaible.
    CLD,CTD

  • Modify TestStand Step parameters from LabVIEW in runtime

    Hi all,
    I try to change parameter values of a TestStand step in LabVIEW. When I return from the modifying vi (Learn Barcode Template), the following happens:
    1. I watch RunState.SequenceFile.Data..., I see the changed parameter
    2. I watch RunState.Sequence.Main..., which is basically the same target as mentioned above, but here the parameters are unchanged.
    3. I need the changed parameters in the Read Barcode.vi. This vi returns an error, because the parameters are unchanged.
    4. When I restart the sequence, and halt at the first step, and watch again both parameters (the sam parameters but different path), the changed values appear.
    Is there a method, which enables to refresh the changed parameters immediately? I tried for example IncChangeCount, but it just marks the sequence as changed. In the learn Barcode Template.vi I open and close the references properly.
    regards
    MB
    Attachments:
    screenshot_01.JPG ‏140 KB

    Hi,
    the parameters will be tranfered when the code module execution is finished. I don't understand what exactly you're changing inside your VI, possibly you can post the VI for getting some more information.
    When you change your parameters inside the file you're calling in the first step, it's normal that the parameter in TestStand first will be refreshed when you execute the sequence once again in my understanding.
    When you use the ActiveX API inside the LV VI and want to change values in TestStand, you can use variables. Parameters will be transfered when calling the code module or returning from the code module.
    Another point is the interactive execution, is there a special reason why you execute without a process model? Possibly there could be changes in the runstate property object also...
    regards,
    Nikolai

  • Calling Teststand from labview

    Hi,
    I am trying to open teststand(3.0) from labview(7.1). When run the VI In highlight mode it works fine and opens the Teststand login panel.When try to run the VI in normal mode the VI Hangs and it doesn't open the Teststand also i have to terminate the application using taskmanger. I have attached the VI and the snap shot in highlight mode for your reference.Any suggestion will be appreciated.
    Thanks & regards,
    sathyendra N
    Attachments:
    VIANDSNAP.zip ‏90 KB

    Hi,
    Thanks for your Response. I am trying to use customize the Opertor Interface developed in labview.
    Regarding the complete Application Back ground.
    The complete Application was developed previously using labview 6.1 and Teststand 3.1 and it was working fine. Now i am trying to port the application to Labview 7.1 and Teststand 3.1 at that time it is not all opening the Teststand login so i thought tried only the basic part out of my code and that given the inconsistent problem so i am trying to slove that part first so i have made a simple vi which i included in my last mail.I want to maintain the same functionality previously developed in Labview 6.1 without any major changes so i am trying the same way in labview 7.1.can you please suggest some examples or suggestion.Waiting For Your Response.
    Regards,
    sathyendra N

  • Passing teststand sequence context to labview

    hi,
    i want to access teststand sequence context from labview , can i know how to do that ?
    -giri

    Hi,
    This is cross posted here: http://forums.ni.com/t5/LabVIEW/mapping-labview-variables-to-teststand-sequence-context/td-p/1928835
    There is another method:
    Rodéric L
    Certified LabVIEW Architect

  • How do I return a Boolean array from LabView to TestStand?

    I am trying to return a Boolean array from Labview to TestStand and have TS evaluate the results. I can do this for arrays of integers or reals but booleans do not work. I tried copying the PassFailTest step type and adding an array of Bool but I couldn't get it to evaluate the array. It simply always passed. How can this be done?
    Bob A.

    I have thought about evaluating the Boolean data in TestStand but, as you say, this is a lot of work. What I have been doing is to map the boolean data to integers in LV (very easy) and then use the multiple numeric step type to evaluate the integer array automatically. This feels kludgy and I have tried a couple of times to create a "multiple boolean" step type with little success. I'm surprised TS hasn't anticipated a test returning multiple pass/fail results. I do this all the time for production code.
    What I have tried is to copy MultipleNumericLimitsTest data type to a custom type and add a BooleanArray with a data type Array of Boolean[0..empty]. Then when I specify module, I select Step.BooleanArray as the value. The last step (that I know of) is to select Step.BooleanArray as the data source in the edit limits window. At this point if I run the test, I get the error "expect numeric, found boolean" (or something similar). When I look at the properties of my custom step type, the Substeps has DoMultiNumericMeasEvaluation as the Post-Step. I believe this is the root of my problem but I can't figure out how to change this to "DoMultiBooleanMeasEvaluation" or similar. Any Ideas?

  • I would like to build I data base in teststand which collect data from labview , if you have example (sequence) that give me some way to build sequence

    I would like to build a data base in teststand which collect data from labview program , if you have example (sequence) that give me some way to build sequence that have step of action for labview and step
    data base

    There is an example in the \TestStand\Examples\Database directory. Basically there are two ways to connect to your database.
    1. You can use the TestStand database step types. There are steps for opening/closing a database connection, opening/closing an SQL statement, and a step for performing a data operation.
    2. The other way is to use the TestStand database logging capability to write your results to the database. This is the way I would recommend. With database logging, you use the step results container to record all your results as the sequence runs. (This is done automatically by TestStand). When the sequence is complete, the process model calls a "Log to Database" sequence that will write the results to the database. You must define your datab
    ase schema using Configure->Database Options. There are some default (or example) schema definitions already defined. Refer to chapter 18 of your TestStand manual.
    Another way to log the data as the sequence is running is shown in the \TestStand\Examples\OnTheFlyReports. This has the advantage of recording data as it is obtained, but it is not as efficient in terms of using a database connection. I don't recommend using this method.
    Please post again if you have any more questions. If you are using stored procedures with your database, I can probably give you some tips.
    Mark

  • Change numeric format type under edit limits from Labview

    Hello,
    is it possible to change under Edit Limits the numeric format type (Hex, Decimal, Real...) from LabView? 
    Is there any way to change this types from Labview. Because i can't found an variable like step.result.numeric or what ever.
    I hope somebody know what i mean.
    thank you and best reguards

    Hi Tumbler,
    Within the TestStand Sequence Editor for a step which has limits, then on the Edit Limits dialog should be a control which will allow you to change the format which is set to <default>. I think you might have to click on another button which will bring up another dialog which will allow you to change the format. ( I haven't got testStand to hand at the moment, so I am working from memory).
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to Pass Container in a queue from LabVIEW to TestStand?

    I was succussful to pass simple type(string, number) using queue from LabVIEW to TestStand base on the example: Use TestStand Queue.seq.
    I want to pass a container variable from LabVIEW to TestStand. But there are some errors happen.
    Anyone who can help on this issue?
    Thanks in advance.
    Attachments:
    Sequnce and VI.zip ‏28 KB
    VI Error.jpg ‏61 KB
    Run_time Error -17001.jpg ‏41 KB

    You ought to have a listener somewhere that calls a function
    to then set up the loaded swf. In that function you can do this
    kind of thing:
    var ldrmc:MovieClip;
    function swfloaded (e:Event) {
    ldrmc = null;
    if (e.target.content is MovieClip) {
    ldrmc = e.target.content as MovieClip;
    If the swf was published for AS3, then ldrmc will end up
    being a pointer to the root of the swf, and you can call functions
    or set variables however you like. If it was an AS2 swf, ldrmc
    would be null.
    Inside the loaded swf you could try trace statements, to make
    sure you're looking up the hierarchy far enough. Like this:
    trace(MovieClip(parent.parent));
    If that doesn't trace MainTimeLine, then maybe you're not
    looking up far enough. Don't forget that the swf itself is in a
    loader, and so may be one level down from where you thought it was.

  • Change element type of an array of containers (from LabVIEW)

    Hi,
    I have an empty Array of Container type and need to insert an element of a custom data type definition. If I already have an element of the type definition, it is simple to copy that element and insert it as a new element. But inserting a new element to a empty array I need to specify that the element should be of this data type.
    Getting the type definition with the Method "GetTypeDefinition" and inserting this as a new value simply "moves" my type definition to the inserted element (which is not suppose to happen). Can't find a method to change data type and seems that none of the property options does the trick to.
    I just need to do the same as "change type" in the TestStand editor, just inside LabVIEW.
    What did I miss??
    Thanks
    Note: Use edit of the step in the attached sequence file. Collapse and expand "Locals" after running the Edit function to see the result.
    Attachments:
    InsertElementInArrayOfContainersOfTypeDef.seq ‏5 KB
    InsertArrayElement.vi ‏35 KB

    Hi,
    When i am writing my stuff i was not able to open your SequenceFile. Now i was.
    My upper example is only working for arrays of Types. It is also working on empty Arrays, too.
    Please tell me why you do not use an array of types ?
    Regards
    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=

  • Opening TestStand Ref from LabView sometimes fails

    I'm having an intermitten problem when opening a TestStand reference from LabView.  The error explaination just says, "LabVIEW:  (Hex 0x80004005) Unspecified error."  Attached is a little vi that can reproduce the problem when set to run continuously. 
    Any idea on how to fix this?  Thanks a lot.
    Note that because of compatibility requirements I have to use TestStand 2.0 with LabView 7.1.
    Attachments:
    TS_Ex.vi ‏24 KB

    Attached is a screen shot of the error message.  This is one of at least 2 error messages.  I will get the other one when I can get time on the equipment.  Right now, I would like to get the error log (mentioned in the screen shot), but I can't find it.  Where should it be?
    Unfortunately, the equipment is being shared and I haven't received time to debug it more.  But this is what I have seen. 
    Trying to Highlight Execution with breakpoints seemed to point the vi closing the reference to TestStand as the source of the error message.  Using the Simplified TestStand Operator Interface vi that came with TestStand, and some fake tests, we did not have this error.  Only when we use our customized OI with dynamic test sequence generation do we get the error.  This error doesn't occur with LabView 6.1.  So I think it may be another incompatibility between LV 7.1 and TS 2.0.
    Thanks for your help.
    Attachments:
    Exit-Crash-1.doc ‏24 KB

  • Write teststand globals from labview

    Hi all,
    i just started using teststand and i am not too familiar with the program up to now.
    What I want to do is, writing teststand station globals from a vi that i started asynchronously. What steps do i need to execute in teststand before starting the vi? A small example would also be great.
    thanks for your help.
    Walter

    When using instruments in LV code modules, the code module itself presents a lock (default execution setting of LV VIs when not changed to reentrant execution).
    So if the instrument is used in a single code module (which is used several times in your TS sequence(s)), there is nothing you have to worry about.
    If the instrument is used in multiple (different) LV code modules (by passing its handle from module to module), you might require to include some locking.
    I recommend you to provide the lock in TestStand. Use the Lock steptype in the synchronization palette to do so.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Display "About NI TestStand..." from LabVIEW

    I'm creating a LabVIEW UI that calls TestStand to run sequence files and I want to include a menu Item to display the "About NI TestStand..." window, but I can seem to figure out to tell TestStand to launch the window from LabVIEW. 
    Can anyone direct me to the appropriate API call or example?
    Ryan Podsim, CLA
    BEI Precision Systems and Space Company
    www.beiprecision.com
    Solved!
    Go to Solution.

    The Example you mentioned was informative, but I see can't seem to find a way to display the "About NI TestStand..." dialog. The list of commands to bind to menu itemsm via Insert Command into Menu.vi, has just about every item in the TestStand help except the About item.
    This is the dialog I'm looking for.
    Ryan Podsim, CLA
    BEI Precision Systems and Space Company
    www.beiprecision.com

  • While Posting IDOC  from XI to R/3 Message Type needs to be changed

    We are doing mapping IN XI. For one condition we want Message Type to be ORDERS and for one condition we want Message Type to be ORDERSCHG
    when posting IDOC from XI to R/3.
    Pls revert anybody asap.
    Regards

    Hi,
    >>>>It means I need to create two Interface Mappings for the same message mapping and then I can use the Interface Determination . Am I right.
    no, you need two message mapping
    and two interface mappings
    file - orders.orders05
    file - ordrchg.order05
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Pass parameters with Step-Post Actions-'C​all Sequence' option

    I have a sub-sequence which accepts a single parameter.
    Ideally I would like to call this sub-sequence from several Steps, using their Post Actions property , using a Custom Condition Expression and the On Condition False: Call Sequence option.
    The Call Sequence option, when selected, offers a list of sub-sequences including the one which I wish to execute, if the conditions are correct, but I see no way of passing an argument to the sub-sequence's parameter.
    Is there a simple way of passing the parameter ?
    Is there a syntax I could apply to the sub-sequence selected string ? 

    From the TestStand Help:
    Call sequence—TestStand calls a sequence before continuing to the next step. You can select any sequence in the sequence file. TestStand does not pass any arguments to the sequence. If the sequence has parameters, TestStand uses their default values.
    So I don't think this particular method is going to work for you.  However, there are lots of ways to do this, here are a few I can think of off the top of my head (I'm sure there are more, and possibly better ones):
    1.  Just insert a sequence call after every applicable step with an apropriate pre-condition.  This is the easiest method, but kind of messy and requires repeating the call everywhere.
    2.  Change the parameter to a sequence file global... ylch, I hate globals... Terrible programming practice, but it's easy .
    3.  Override the SequenceFilePostStep Engine Callback and put a sequence call with an appropriate pre-condition in there.  This keeps you from having to repeat the code, but it will check the condition after every step executes, not just the ones you are interested in, so you may need some additional conditions.
    4.  Define a custom step type for these steps and use a substep to call the sequence.
    Hope that helps,
    Ryan K.

Maybe you are looking for