Can I programati​cally list teststand variables at runtime?

Hi
I am working with TestStand 2.0.1 and creating sequences calling Labview (6.1) VIs.
Does anyone know if / how I can programatically list all the Local or FileGlobal variables available in the executing sequence?
(The aim is to create a VI that doesn't require hard coded lookup strings)
I am trying various properties and methods of the the sequence context property object but without success so far.
Is this the right approach or can someone suggest another way of doing this?
Thanks,
Dan

Dan,
You must use the GetTypeDisplayString or GetTypes method. The former method gives a string that you can use for display. I suppose you could also parse the string for certain information. However, if you are trying to make programmatic changes based on types you will probably want to use GetTypes instead of GetTypeDisplayString. GetType returns a numeric value representing the type. However, if the type is an array GetType returns zero. In this case you must check the IsArray parameter value. If it is true, meaning the type is an array, then you then use the GetDimensions method to determine what type the array elements are.
The attached example just uses GetTypeDisplayString. If you have problems with implement
ation let me know.
Attachments:
GetTypes.zip ‏22 KB

Similar Messages

  • Where can I find a list of variables which can be used in Firefox preferences?

    Where can I find a list of variables (e.g. %LOCALE%, %VERSION%, %SUBSCRIPTION%) and their definitions which can be used in Firefox preferences?

    %LOCALE% comes from his pref: general.useragent.locale
    Fore some others see:
    * https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIXULAppInfo
    *https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIXULRuntime
    An example can be seen here in getUpdateURL()
    *resource:///components/nsUpdateService.js

  • 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

  • How can I programatically get the TestStand version?

    I want to programatically get my Teststand version.  Can I get this from inside a LabVIEW VI? I'm writing a VI that produces a Software Description Document and one of the things I want in there is my TestStand version.

    You can use the Engine.Version to get a string of the version number.  This is useful for a string for display information.
    For more detailed information, you can use the following properties:
    Engine.MajorVersion
    Engine.MinorVersion
    Engine.RevisionVersion
    Allen P.
    NI

  • Programati​cally create local variable in TestStand

    Can somebody please explain the process of creating a local variable programatically?  I have searched the forums but haven't found what I am looking for yet.
    I have an array of unknown size.  I use a foreach loop to step through the array and grab the data that I need.  I need to put that string in a Local String Variable that I can use later.
    Any help is much appreciated.
    Matt
    Solved!
    Go to Solution.

    That did exactly what I wanted it to do thank you.  Now I want to take it one step further...
    I have a local variable array called RI_Equipment that is of an unknown size.  The array contains a container data.  I want to create a variable of name ri_nameField+"_ID" and then set the value of that variable to what is contained in RI_Equipment[x].ri_IDField.  Hope that all makes sense.  Below is the statement I have in TestStand however TS tells me that this will cause a run-time error.  What am I doing wrong?
    Locals.NewSubProperty(Locals.RI_Equipment[Locals.l​oopcounter].ri_nameField+"_ID",PropValType_String,​False,"",0) = Locals.RI_Equipment[Locals.loopcounter].ri_IDField
    Matt

  • Where can I find the list subscripted variables valid?

    I have to do those but I don't know which one is valid and invalid...could someone
    tell me where can i look for?
    Thanks,
    Flower
    Part I) List the errors in the following statements, and make corrections to it.
    int intArray[ ] = new double[10];
    double doubleArray = new double[-10];
    the correction are: int Array[] = new Array[10]
    double Array = new Array[10]
    Could someone check for me? Am I doing right?
    Part II) Assume the following declarations:
    int a[] = {1, 4, 6, 8, 9, 3, 7, 10, 2, 9};
    char b[] = {�H�, �E�, �L�, �L�, �O�};
    int x = 7, y = 2;
    double z = 0.0;
    Then, indicate the value of the following subscripted variables. Indicate the ones that are not valid.
    a) a[0]-----------valid
    b) b[x]-----------valid
    c) a[x+y]-------valid
    d) b[x%y]-------valid
    e) a[b[2]]--------not valid
    f) b[y-a[5]]-----not valid
    g) a[Math.sqrt(2)]---valid
    h) b[b[a[0]]-48]------valid
    Also could someone check for me to....Am I doing right?
    Thanks,
    Flower

    I have to do those but I don't know which one is valid
    and invalid...could someone
    tell me where can i look for?
    Thanks,
    Flower
    Part I) List the errors in the following statements,
    and make corrections to it.
    int intArray[ ] = new double[10];
    double doubleArray = new double[-10];
    the correction are: int Array[] = new Array[10]
    double Array = new
    double Array = new Array[10]
    Could someone check for me? Am I doing right?
    No, I'm affraid not. The error in the first (int intArray[ ] = new double[10];) is that you declare intArray as an array of ints, but initialise it as an array of doubles. The correction would be
    int intArray[] = new int[10];
    The second one is almost correct, except its being initialised with a negative size. The size needs to be positive, so the corrected version would be
    double doubleArray = new double[10];
    As far as I can see, thats all thats wrong with them. Unfortunately, your guesses were way off.
    >
    Part II) Assume the following declarations:
    int a[] = {1, 4, 6, 8, 9, 3, 7, 10, 2, 9};
    char b[] = {�H�, �E�, �L�, �L�, �O�};
    int x = 7, y = 2;
    double z = 0.0;
    Then, indicate the value of the following subscripted
    variables. Indicate the ones that are not valid.
    a) a[0]-----------valid
    b) b[x]-----------valid
    c) a[x+y]-------valid
    d) b[x%y]-------valid
    e) a[b[2]]--------not valid
    f) b[y-a[5]]-----not valid
    g) a[Math.sqrt(2)]---valid
    h) b[b[a[0]]-48]------valid
    Also could someone check for me to....Am I doing
    right?
    Thanks,
    FlowerNope, again, wrong I'm affraid, heres the right version.
    a) a[0]-----------valid, value = 1
    b) b[x]-----------invalid (array index out of bounds)
    c) a[x+y]-------invalid (array index out of bounds)
    d) b[x%y]-------valid, value = 'E'
    e) a[b[2]]--------not sure (I haven't got enough time to look, sorry)
    f) b[y-a[5]]-----not valid
    g) a[Math.sqrt(2)]---invalid (non integer array index)
    h) b[b[a[0]]-48]------not sure (I haven't got enough time to look, sorry)
    Hope that helps, feel free to ask anything else about it if you don't understand
    Alan

  • How can I programati​cally add items to an Expression​Edit ComboBox?

    Items can be statically added using the ActiveX Properities/ComboBoxItems.  How can this be done programatically from C#?  I am using C# 2008 and TestStand 4.1.
    Solved!
    Go to Solution.

    Doug-
    That was the answer.  I was missing an assembly reference which was why I wasn't able to use the ExpressionEdit.ComboBoxItems methods.  I had "NationalInstruments.TestStand.Interop.UI.AxContro​ls" reference in my project but also needed to have "NationalInstruments.TestStand.Interop.UI" and "NationalInstruments.TestStand.Interop.Ui.Support" assemblies.  ExpressionEdit.ComboBoxItems.Insert() is working fine now.
    Without your input, I wouldn't have gone back to examine my references.  Thanks.

  • How can I programati​cally control the names of files output from Labview into .pdf format (ie with Adobe PDF Writer or Distiller)​?

    I would like to save some data forms for a standard test controlled with labview in a pdf format. Due to the large number of forms and test reports, I would like to have Labview automatically assign the .pdf file name based on test number already contained in the labview code. How can I do this.
    Note: This question is very similar to:
    "Labview and Adobe Acrobat output" posted by John Balone on 1/26/2000. The reponses offered good suggestions but it is not clear to me how to implement them.

    This information is essential if you plan to use the Acrobat Distiller printer driver and any of the examples listed here:
    http://zone.ni.com/devzone/devzone.nsf/webcategori​es/EADE78F29101E8DB862567AC0058596B?opendocument&n​ode=DZ52095_US
    -Graeme, rayodyne.com
    Attachments:
    1_-_Printer_Configuration_with_Acrobat_Distiller.jpg ‏64 KB
    2_-_Printer_Configuration_with_Acrobat_Distiller.jpg ‏33 KB

  • List of variables for included video player?

    I wanted to use the included video player from Flash media server but can't find a list of variables and values to pass to the player. Is there a list and could anyone point me in the right direction? I'm specifically looking to pass a stream name for a live stream to the video player.
    Thank you,
    Dan

    Thanks for the reply Honglei!
    Still I believe you've misunderstood the question. What I seek is documentation on the features of the player and info on it's parameters/variables.
    I've included the FMS startpage object code and here you see a bunch of them. Take the parameters:
    dsControl=manual (quess this is dynamic stream control)
    dsSensitivity=100 (quess this dynamic stream sensitivity)
    DS_Status=true (quess this dynamic stream status)
    streamType=vod
    ....etc
    These are just some of the parameters and I'm looking for an overview and explanation of them all.
    <object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ><param name='movie' value='swfs/videoPlayer.swf' /> <param name='quality' value='high' /> <param name='bgcolor' value='#000000' /> <param name='allowfullscreen' value='true' /> <param name='flashvars' value= '&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&DS_Status=true&streamType =vod&autoStart=true&serverURL=rtmp:/vod/mp4:sample2_1000kbps.f4v'/><embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer'   flashvars='&videoWidth=0&videoHeight=0&dsControl=manual&dsSensitivity=100&DS_Status=true& streamType=vod&autoStart=true&serverURL=rtmp:/vod/mp4:sample2_1000kbps.f4v' type='application/x-shockwave-flash'> </embed></object>
    Thanks

  • Can anybody give me the list of variables can pass in the requestPlatform

    hi all,
    I am very curious about knowing the list of variables that can be passed to requestPlatform().
    as i know we can pass tel,url and fax.Is there any variables that can be passed.
    I want to know the Operating System variables...
    My objective was to get the location name..
    thanks in advance

    hi ,
    thanks for your help,
    I want to get the location name (which will display on your mobile when you moving from one region to another region),is there is any way to capture that information...
    one more question is this possible to get the information in the mobile device with the help of the requestPlatform(),like we have initiatng the phone call something like that
    thanks in advance
    lakshman

  • How can I programatically identify PDF files with embedded images?

    Our company has 27,266,949 .PDF files that we're planning to compress in order to save server space.
    We don't want to compress any of the .PDF files that have embedded images as to not alter the image's state.
    How can we programatically create a list to exclude from the compression process?

    Ah, see told you we were new to this and no, my taxs already have enough digits to the balance.
    Ok, so based on that, we should be able to use the preflighting tool to identify the PDF’s with images, factor them out, and then continue with lossless compression on the remaining balance.
    That will give us the compression we need to save space, but also allow us to stand in the court of law (if the scenario was to ever occur) and proclaim that none of our medical images have ever been altered by compression.
    Sound like a reasonable plan?

  • Storing carriage return and other special characters in a TestStand variable and passing to LabVIEW

    I am using TestStand step to call a LabVIEW VI that writes commands to a serial device.  The device expects a carriage return at the end of the command.  I can create a constant string in TestStand with the carriage return, e.g., "ATA\x0D" and pass that to a LabVIEW string control which shows ATA\r and the VI works properly.
    To provide consistency and flexibility in my code, I want to store the terminator character(s) in a TestStand variable.  However, when I try to use an expression to create the command string, i.e. "ATA" + "Locals.Terminator", where Locals.Terminator is set to "\x0D", my LabVIEW VI string control shows "ATA\\x0D" which doesn't work.  And when I try Locals.Terminator set to "\r", the LabVIEW string control shows "ATA\\r" which doesn't work either.
    Is there a way to store special characters in a TestStand variable and pass them to LabVIEW as special characters?  I saw in another post that if you edit the TestStand variable by pressing Cntl-Enter, it will store  the newline \n properly and it can be sent to LabVIEW - that works for me as well for \n.  But  I need to send a carriage return.
    I've attached my test sequence and the corresponding LabVIEW VI with a string control.
    Hans
    Attachments:
    Special Chars.seq ‏27 KB
    String Passing.vi ‏13 KB

    Hi Hans, 
    Thanks for your detailed explanation and examples.  In TestStand, change the String parameter's String Type to Binary String instead of ASCII.  Then it will pass the desired value.
    Cheers,
    David Goldberg
    National Instruments
    Software R&D

  • List of Variables in SAP BI BEx

    Dear ALL,
    Can any one provide me list of variables with processing type SAP EXIT
    I know that we can get it from Business content.But i also need some Description i.e it Pusrpose or Scenario of usage.
    For 0calmont,0fiscperiod....
    Some docu's or pdf  or  in help.sap.com..also beacuase i don't find any documentation in this
    Regards
    Laxman

    Hi ram
    I guess there are aournd 77 sap exit variables.
    Follow the below steps to get the list of SAP EXIT variables in the system.
    se11/16 -->RSZGLOBV
    in the selection screen enter the
    Version - A
    Processing type - 4(SAP exit)
    execute it will display the Sap exit variables.
    The other way to get the list is goto SE37 --> type "RSVAREXIT_*" ->F4 it will display all the SAP Exit variable function module.here if u want you can check the Codes used for SAP Exit variables as well.
    for example
    Check in Se37 --> enter "RSVAREXIT_0P_KEYDT2" and click on display it will display the code.
    here u can get what exactly the sap exit variable does.
    Regards
    KP

  • List of variables available for use in email templates

    Hello,
    I would like to replace the $(resourceAccountId) variable with the AccountID (or
    Name) variable in the Password Synchronization Notice email template.
    If anyone can tell me where I can found the list of variables (or tell me the
    variables themselves) which are available for use in the email templates I
    would be grateful.
    Thanks,
    Bert

    Bert,
    The workflow that uses the notification template can pass any value that you want. All you need to do is modify the workflow to pass the value and then have reference to that value in your template.
    Other than that you can use the attributes that are available to you in IDM.
    ~Suvesh

  • Where can I get a list of available selection for certain dict type?

    Where can I get a list of available selection for certain dict type in code?  For instance, when I use SE16 to view VBFA table, I am presented with many filter criteria.  One of them would be "VBTYP_N".  When I click on the square next to the option, I am presented with a list of possible values to select from.  Where can I get the list of this possible values for any given dict type in code?

    Hi Frank,
    The list of possible selection you see can be from diferent sources
    1) Search helps defined either programatically or search helps defined at table level.
    If it is a Z Selection screen check the program, then the data declaration of the parameter
    2)Check tables provided at field level. They can be through use of foreign keys. The proposal generated could be simple compund ..
    3) Fixed values at Domain level ()
    Please refer to this link as well for detailed explanation
    [http://help.sap.com/saphelp_470/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm]

Maybe you are looking for

  • Invoke_message.state

    Hi, I've spent quite some time trying to find out the meanings of the various integers stored in the invoke_message.state and dlv_message.state columns on the ORABPEL schema, does anyone out there know? Any help would be appriciated. Thanks.

  • HELP WITH 4GB ZUNE PLEASE!!!!!!

    Okay, so my boyfriend bought me an early Christmas gift (he give it to me early because I was there when he bought it. lol.) Anywhooo, it is a 4GB pink Zune. I have been wanting one for a while now because I am Anti-Apple and I figured that an mp3 pl

  • Oxygen in tiling WM

    in the last few days I have been playing around with i3 and I have come to appreciate the joys of a tiling WM. Coming from KDE I do find it it a bit hard to accept the default look of both Gtk and Qt though, so I feel I had to add a large chunk of KD

  • Apple TV home sharing through external hard drive.

    Is it possible to take my movies that are on an external hard drive and hook it to a router so that my computer does not have to be on to home share?

  • I am not getting updates of my friends in fb app

    Hi  I am using Blackberry 9360. In my fb app I am getting updates of my liked pages but not getting updates of my friends. What is the soiution?