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

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

  • Need to access TestStand Sequence Step Parameters from Excel Macro

    Trying to create an EXCEL spreadsheet containing a list of all steps in a TestStand Sequence including Parameter names and types. How can I access the parameter names and types from EXCEL Visual Basic? It seems the API provides access to sequence parameters, but not step parameters.

    mmghost,
    Unfortunately, in TestStand 2.0, it is not possible to access the step parameter information.
    In TestStand 3.0, there are a few more APIs exposed that give you access to the step parameters. In TestStand 3.0, these are the steps you would take to get that information:
    1) Get a hold of the step object of interest. There are many ways to do this. For instance, starting with the Sequence Context you can get the Sequence object, and then get a step object from the sequence.
    2) From the Step object, get the Module object.
    3) At this point, you need to cast the Module object to the specific adapater type module you are using. For this example, we will assume that we are using the CVI adapter, so we would cast the Module object to a CVIModule o
    bject.
    4) The CVIModule object contains a Parameters collection of type CVIParameters, which contains the type information.
    For different adapter types you would just cast the Module object to a different specific module (LabVIEWModule, ActiveXModule, etc).
    Matt P.
    NI

  • 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

  • Passing parameters from LabVIEW vi to TestStand

    Hallo,
    I'm struggling with retrieving the value of a vi OUT Parameter of type ASCII string from the basic_serial_write_and_read.vi (http://zone.ni.com/devzone/cda/epd/p/id/2669)
    I've assigned a Local Variable type string and assigned this expression to the vi OUT parameter "read string".
    When running the sequence however, the Local Variable value is not updated! (?)
    I can see the ASCII string being returned from the UUT on the NI I/O Trace tool.
    The basic_serial_write_and_read.vi works OK in LabVIEW.
    I'm just getting started but can't figure this out. I'd be appreciative of any hints.
    Cheers
    Kech
    Solved!
    Go to Solution.

    Attached are the basci_erial_write _and_read.vi and my play.seq TestStand sequence.
    When using the ASCII char "@" as string to write value - i get no reply value to the Locals.Local_read Variable, although i see that the UUT replies with a 22 byte long message on the NI I7O Trace tool.
    How do i convert the vi - so that the string to write and read string parameter type can be used with hex data i.e. 0x40?
    Attachments:
    basic_serial_write_and_read.vi ‏23 KB
    play.seq ‏9 KB

  • Passing Parameters From LabVIEW to TS Execution

    I have a simple question: I am using a LV OI to launch a TS Sequence via the API.
    (OK, actually I want to have 10 different OI screens that are each launching unique executions of the same Sequence)
    I want to pass some relevant data to the new execution.
    (as in, "Which OI created me?")
    What is the simplest/best way to do this?
    Currently, the way that I see to do it is to tell it to pause on first step, get the SeqContext from the Execution, and either write to Station Globals or write to Client Sequence Locals or something.
    It seems like it should be easier. Like I should be able to access the StationGlobals before I launch the new execution. Or pass the parameter(s) directly during the New Execution method
    I see "SequenceArgsParam" as an input to the New Execution method, but this is what the help says: "Pass a PropertyObject object that contains the arguments to the sequence you want to execute. Each subproperty of the PropertyObject object represents a parameter to the sequence. The subproperties must appear in the same order as the sequence parameters." That doesn't sound simple. Plus, most of the references to it in the documentation tell you not to use it.
    I'm a LabVIEW guy. I want to push a cluster into a variant and have it work. Kindof like getting data into/out of a step module.
    There's probably a way to do it that I am missing, but I am pretty rusty, on the new version learning curve, and honestly I am having problems finding anything helpful in the documentation. Can anyone help me out here? Thanks.

    10Things wrote:
    I'll be looking forward to seeing it; I like the concept.
    The questions that immediately jump to mind:
    * Where are the messages from TS handled and how does TS know WHICH data to request (i.e., which cell's data?)
    * How do you "place the correct variable inside of TS"?
    * If TS is executing, then it's paused bacuase it's waiting for the UI message to be handled, right?
    Thanks. Looking forward to seeing how you're doing it.
    Message Edited by 10Things on 09-29-2008 09:22 PM
    Here is a document about UI messages.  There is also some good
    This is the path to a good example for accessing variables.  TestStand 4.0\Examples\AccessingPropertiesUsingAPI\UsingLabVIEW.
    I will try to throw together a short example for using UI messages in LV. Got to go to a meeting now so it will be a couple of hours. this should keep you busy until then.
    Joe.
    "NOTHING IS EVER EASY"

  • Using LabView to Programatically Specify the Module of a TestStand Step Problems

    I am writing a LabView App that generates TestStand Sequences.
    When programatically 'specifying the module' of a TestStand Step calling a LabView VI, is it possible to set the values of the parameters passed to the VI by Name?  I am currently creating steps fine, but the only way I can set parameter values is by using the parameters index. 
    It would be really nice if I could reference the parameters by the name specified in the VI rather than the index derived when the VI is created.
    Any ideas?
    Steve
    There are 10 types of people in the world that understand binary, those that do and those that don't.

    Hi Steve,
      you've also posted this on the TestStand forum and it's been answered there.
    For anyone else looking for the approach :
    http://forums.ni.com/ni/board/message?board.id=330&message.id=9585
    Thanks
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer

  • 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

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • Output on LabVIEW the TestStand step results

    Hi,
    I'm building on LabVIEW 8.5 a simple TestStand User Interface.
    My sequences return some values but I don't know how to output them on LabVIEW.
    I was thinking of a table to store the results.
    Any hints on how I'm able to do so?
    I apreciate all the help.
    Thanks in advance.
    Regards,
    Daniel Coelho
    Daniel Coelho
    VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
    Controlar - Electronica Industrial e Sistemas, Lda

    Use the TesStand ExecutionView Manager available in the TestStand tool pallet of LabVIEW and the Execution View. Then when you call our test code (dll, LabVIEW, CVI or what ever) and the return values are returned to the step.Result container based on the type of step. The ExecutionView Manager will automatically display the return value in the Execution View indicator on front panel, if it is a string, a number or a Boolean or etc.
    Look at "C:\Program Files\National Instruments\TestStand 4.1\UserInterfaces\Simple\LabVIEW" as a starting point.
    Notice that there is not any code that reads the return value from the test steps and displays it. The TestStand Engine automatically does it for you. Using the ExecutionView Manager and the Execution View, your LabVIEW user interface will not know when a test step is run or what the return values are without setting up events to trap UI messages from the TestStand Engine.
    If all you need is to see the return value and results this is the way to go.
    Omar 

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

  • Creating LabVIEW module adapter TestStand Steps using the API without loading module prototype???

    Is it possible to programatically create a TestStand step (using the API), that calls a LabVIEW module, without loading the prototype of the module to get a reference to the Module Parameters.
    I want to specify a VI Pathname, but I dont want to use that pathname to load the prototype.  I want to programatically specify the name, type, representation etc. of each of the controls and indicators.
    My reason for attempting this is that I only want the VIs called by the steps to exist on the target hardware not on the numerous development machines running my application.
    Any thoughts greatly appreciated.
    Steve  
    https://decibel.ni.com/content/blogs/DailyCLAD

    Hi Steve,
    Unfortunatly it is not possible to do what you want within Test Stand but I am not sure why it is necessary, I think I am understanding your application incorrectly.  The only time you will need to load the prototype is if you are creating the step but if you are creating the step you will need the VI that the step calls so that VI will need to be present on the system.  If you are not calling the step then you shouldn't need to load the VI prototype.  If this is how you program funtions it may be a problem with your architecture but if not please could you correct my misunderstanding so that I can go about finding a suitable solution.
    Regards,
    Tom
    Applications Engineer
    National Instruments UK & Ireland

  • How can I programatically modify a teststand sequence global in Labview ?

    Hello,
    I am automating some tasks using Labiew to modify data in a Teststand sequence file. How can I programatically modify the value of a Sequence Global from labview ?
    Thanks,
    Sam

    You have to pass in the TestStand variable RunState.ThisContext to the vi through the connector pane.  I'm not sure about the exact variable name because I don't have TestStand loaded at this time.  But  there is a variable for the sequence context in TestStand and this has to be passed to the vi.  Note that you cannot run the vi stand alone.  You must run it from TestStand in order to get the proper sequence context.
    - tbob
    Inventor of the WORM Global

  • 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

Maybe you are looking for

  • Game center muti account

    I have an apple id (obviously) and can set up game center on my iphone4. Both my kids have ipod touches and can't have apple id's as they are minors. Hence the three of us seem to have to share the same identity on game center. Is there a way around

  • Multiple Airport Extremes and Expresses......die at same time.

    Greetings all. I am a networking newbie, and we're having some issues here at the shop. We've got a T1 coming into a Netopia router, which is going to a switch. From the switch, it's going to one of the Extremes (spaceship). I have setup the other Ex

  • Live Migration failed using virtual HBA's and Guest Clustering

    Hi, We have a Guest Cluster Configuration on top of an Hyper-V Cluster. We are using Windows 2012 and Fiber Channel shared storage. The problem is regarding Live Migration. Some times when we move a virtual machine from node A to node B everything go

  • Driven to Distraction

    Hi, I appreciate that everyone has a problem here, and we're all equally desperate for help, but I'm seriously in need of it!!!! I've read through days worth of posts and nothing seems to fit my problem. I've spent a lot of time adding my music libra

  • IBook G4 won't boot after 10.5 software update?

    Hi, I have a iBook G4 14" 1.42GHZ 768mb of ram which was running fine under 10.4.11. I updated to OS X 10.5.4 via a retail discs and it installed and re-started perfectly. All seemed ok so i ran software update and the installation seemed to go fine.