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

Similar Messages

  • 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

  • How to strongly protect the step types from being modified by others?

    how to strongly protect the step types from being modified by others?

    Hi Jacky,
    You can make a property of a step uneditable by changing the property
    flags for the step.  First, you want to be able to view the hidden
    properties so that you can change the flags for these properties as
    well.  You do this by going to Configure>>Station Options
    and selecting the Preferences tab.  Check the box for Show Hidden
    Properties.  Once you have done this you can select the step type
    from the types palette.  In the window to the left, you can expand
    the tree for the type to see all the properties of that step. 
    Right click on the property that you do not want users to be able to
    edit, select Properties.  Then click the Advanced button. 
    Here you will see a list of the setable flags.  Check the box for
    PropFlag_NonEditable.  You can then do this for all the properties
    of the step that you do not want users to edit.
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • 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

  • Custom TestStand Step Type (C# Example)

    I'm searching for a C# custom Step Type example.  I found a basic 'C' example here, but it would be helpfull if I could find a simular C# example.
    I'm using Teststand 3.5, and Visual Studio 2005. 
    Any help would be greatly appreciated!

    Hi,
    I have seen that this is your first post at NI. So Welcome :-)
    Just a few questions before. Assuming that you are new in Teststand please tell me something about your Teststand experience and the reason why you want to use a UserStep-Type. After many years of doing Teststand sequnces I am of the opinon that most of the steps can be done with the code modules because they are simple to handle and the possiblity of getting ugly type conflicts is very low. But there are some tasks where it is reasonable to use a step-type. That you see i am not writing nonsense, visit my NI presentation ftp://ftp.ni.com/pub/branches/germany/vip_days_ses​sions/teststand_step_type-mtu-dodek.pdf
    Greetings from the lake of Constance, Germany
    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=

  • TestStand'​s container type from LabVIEW

    Hi,
    With a LabVIEW's VI, I'd would like to set a TestStand cointainer as a TDMS file properties.
    So i tried to get all the elements of my container using PropertyObject Class (ThisContext.AsPropertyObject)
    with this method :PropertyObject.GetValVariant
    ( lookupString, options)
    But i get an error because of Set TDMSproperty method doesn't accept the variant type i got.
    So I'd like to get the type (string, number....) of each elements of this container to setting them as TDMS properties one by one through a for loop.
    How can i do that?
    Alex

    I have a TestStand sequence. In this sequence i have defined a container (filesGlobals) who contains some results of the current Sequence execution. At the end of the sequence execution (in the cleanup) i want to get all the container's values to set them in a TDMS file.
    So i have made a VI who gets all these datas using ActiveX properties. This VI will be called as a TS step.
    But i don't know what are the types (string, number, boolean, array of...) of the varaibles of my container, so i use a method to get Variant. When i want to set my TDMS with this variant an error appears because the variant type is not allowed for TDMS files. So i need to make a VI who could get the type of each variable of my container to convert it in this type and so send it in my TDMS.
    TestStand  FileGlobals                                                                             LabVIEW
    MyContainer{}                                     ​                  TabName                  TabValue                        TabType
        Name (string)                                          ​              (0) Name                  (0) AlexString                  String
        Reference (Number)                     ==>>                  (1) Reference            (1) 1003214                     Number
        ResultOfTest (Boolean)                                          (2) ResultOfTest        (2) True                           Boolean
        Errors (Arrays of string)                                          (3) Errors                  (3)                                  String
        ....                                              ​                               [0]                            ErrorA
                                                      ​                                   [1]                            ErrorB
    With this 3 tabs i could send each varaibles of my TS container elements by elements usisng a for loop as define here:
    for (i=0, i++, i<sizeof(TabName))
         if (Tabtype(i) == String)
              {TabValue(i) = getStringVal}
         if (Tabtype(i) == Number)
              {TabValue(i) = getStringVal}
         if (Tabtype(i) == Boolean)
              {TabValue(i) = getStringVal}
         Set TDMSNameProperty
         Set TDMSValue
    So i need to get the type of all my container's varaibles.
    Like that i will not obliged to get only Variant and could get the correct type to send to the TMDS...
    Alex

  • Retrieving Image Data Type from SQL Server 2000

    I'm trying to retrieve an Image using getBinaryStream() like descripbed in below code and encounter an error :
    java.lang.ClassCastException: com.microsoft.jdbc.base.BaseInputStreamWrapper
    What've I done wrong? Please help
    if(rs.next()){
                        fisAssyChart = (FileInputStream)rs.getBinaryStream("file_assembly_chat");
                        fisPPO = (FileInputStream)rs.getBinaryStream("file_ppo");
                        filePPO = new File(rs.getString("nama_file_ppo"));                    
                        fileAssyChart = new File(rs.getString("nama_file_assembly_chat"));                                                            
                   }Thx in advance
    David

    Oracle Migration Workbench:
    http://www.oracle.com/technology/tech/migration/workbench/index.html
    Cheers, OTN

  • Retrieve System.Exception type from Server.GetLastError()

    I added Global.asax  in my web project to capture uncaught exceptions by try-catch. I need to get the exception type, so I can show a friendly message. Is this possible?
    Thank you
    Maher

    "I need to get the exception type"
    Server.GetLastError().GetType()?
    You may want to check for a null exception before calling GetType.
    "so I can show a friendly message."
    Why do you need the type for that, you have the Message property of the exception object, that's the closest to "friendly" as you can get.
    But for web apps displaying exception details is debatable, you may end up leaking information that's not supposed to be seen by the user. Simply displaying "An unexpected error occurred." is safer, exception details need to go to logs.

  • 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

  • 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

  • Error retrieving BOM type from sales order line matrix

    Hi All
    I have a problem with an add-on which works in SBO version 2007 but now fails in version 8.8. The fault occurs when the code attempts to retrieve the BOM type from the sales order line matix as follows:
    objCombo = mtxOrder.Columns.Item("39").Cells.Item(intCount).Specific
    strBomType = objCombo.Selected.Value
    Where mtxOrder represents the sales order line marix extracted from form type 139
    Under version 8.8 this code generates an error "unable to cast COM object ... to interface type SAPbouiCOM.ComboBox ....". If the code is replaced by the following, the error does not occur.
    objEditBox = mtxOrder.Columns.Item("39").Cells.Item(intCount).Specific
    strBomType = objEditBox.Value
    Any assistance or explanation would be greatly appreciated.
    Thanks
    David

    It just looks to me like it was a combo box in the 2007 version and has been changed to just be an edit text in 8.8... from what you have explained anyways, that seems to be what is happening. Sometimes there are small changes like this - it's better to directly access the datasource so you can avoid being hit with these sort of changes
    so for example
    strBomType = oForm.Datasources.DbDataSources.Item("RDR1").GetValue(TreeType, i);
    //where i is the linenumber-1 in the matrix

  • 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

  • How do I modify custom step type that is part of a sequence?

    I have an example sequence that has a custom step type called "LabView Reentrant Action". My interest is to modify this step type to my needs. Because this custom step type is part of the sequence there is no definition in global type palette. I was told that I could copy this step into global type palette. But, I don't think I could.
    I can copy the step from the sequence space but I do not have an option to paste it in the palette.
    In sequence space I have options to choose LabView Reentrant Dialog Steps under Insert Step pull-down menu. When I open Step Type Menu Editor in the palette space, all types are listed except LabView Reentrant Dialog Steps. I think these are not showing in the palette because they are custom types built into the sequence.
    How can I extract the custom step type into global palette so that I could modify to my needs?

    Hello,
    If you already have the customer step type "LabView Reentrant Action" then to modify it all you need is to go in "Type Palette" (Ctrl-T) and make modifications in the step type.
    In case you are not able to see the step type in type palette then you need to add the step type in a custom ini file. You can add that ini file by clicking on customize in "Palettes" drop down menu. The you can copy paste a step in the step type and make modifications to the step.
    I would recommend going through Tutorial: How Do I Make a Custom Step Type? for more reference.
    I hope it helps..
    Rajiv

  • Bug fix for NI Do-While step type?

    I'm using a group of add-on flow control step types from NI that implement common looping structures. However, the Do-While step results in an error -13 when you try to edit/configure an existing step.
    Has anyone else seen this, and more importantly, is there a fix for this?

    Hi Darin,
    I'm not sure if I have the exact same version of the Flow Control steptypes as you, but when I tried editing/configuring the Do-While step type several times over and over again I could not cause it to throw any error. Go to the following link and download what we have on our website and replace the steptypes that you have with these (I just downloaded the ones listed on this webpage and tested your scenario with them):
    http://sine.ni.com/apps/we/niepd_web_display.displ​ay_epd4?p_guid=B45EACE3E9AF56A4E034080020E74861&p_​node=DZ52236&p_submitted=&p_rank=&p_answer=&p_sour​ce=External
    Let us know if reinstalling the steptypes fixes the problem or not. If not, perhaps you could post a small example sequence that utilizes the steptypes you have so that we
    can check to see if they are the same version and try to reproduce the error with a sequence you generated. Thanks!
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • 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

Maybe you are looking for

  • Need help installing my graphics driver in windows vista via boot camp

    New to mac so first time on forum as well. Love the Mac but i also want to get on some old games. C&C The First Decade mainly. I am currently using below. Mac mini Mid 2011 processor 2.5 GHz Intel Core it Memory 4 GB 1333 Mhz DDR3 Graphics AMD Radeon

  • CS4 error message: Could not read the file because the plug-in could not understand the file

    I get the error message in the subject line of this thread when I try to open a AI file in CS4. The file in question is a master plan for a river parkway. It includes a TIF of an aerial image of the project site (created from a SID file) with Illustr

  • How to download the files, that are located in server, from the client?

    Hello folks, My program is like that, the files are located in the server and stored in file system. I can only know the server name and the directory listing, so that I can show the file names from that directory on the browser. The user might downl

  • Virus in MBP

    Is it possible to get a computer virus on MacBook Pro while using other operating system (eg Windows)? Is so will it harm the 'Mac' side of the hard disk?

  • How to execute bapi programm

    hai       i have a BAPI programme to delete the orders.because i need to delete more than 600 orders, can any one tell me how to execute that programme.but we can use lsmw and bdc also. my abaper has given me that programme BAPI_SALESORDER_CHANGE TO