How do I distribute my station globals to a target machine?

I am using the deployment tool to distribute my sequences to a target PC. When I ran the sequence on the target machine, it couldn't find the StationGlobals that the sequence uses. How do I include my globals in the StationGlobals.ini on the taget machine so that whenever the sequence gets deployed to any other machine the sequence can read and write to those globals. I realize I could copy the StationGlobals.ini from my development machine to my target machine, but I want it to be done automatically when I deploy the sequence. I also don't want to overwrite a StationGlobals.ini that may be used by some other sequence on that target machine. So, basically I guess I would like to be able to add new station globals to any target machine as part of my deployment.
ThanksMessage Edited by tman on 03-04-2005 03:23 PM

The most straightforward way to accomplish this is to include StationGlobals.ini in the workspace file that you are deploying. Of course, this too would overwrite the existing StationGlobals.ini on the target machine.
From what you have described, it sounds like Sequence File Globals may be sufficient for your needs. Sequence File Globals are global to all of the sequences in a sequence file. StationGlobals are variables that can be accessed by any sequence file run on a station. If you used File Globals, you would not have to be concerned about deploying an INI. The File Globals are included in the SEQ file.
If your system does require StationGlobals, the ideal way to handle this would be to have the StationGlobals.ini on your development machine have all of the StationGlobals needed by the sequence files on your deployment machine.
Now, to answer your question, you could use a sequence of ActiveX steps to have your additional StationGlobals programmatically added to the StationGlobals on the target computer. For example, you can have one step check if a particular StationGlobal exists. Then, if it does not exist, you can have a second step run that adds the StationGlobal and sets its value.
Attached you will find ProgStnGbls.seq that has two ActiveX Action steps. The first step checks for the StationGlobal. A boolean Local is returned by this step. The second step is the step that will, if needed, add the StationGlobal. This second step has a Precondition that checks the boolean Local. If the Boolean is false, a new StationGlobal is added. Then, a Post-Expression sets the value of the new StationGlobal. You would want to Run Main Sequence of this sequence file as a last step after deploying the test system.
Also, ProgStnGbls.seq is currently saved as version 2.0.1 of TestStand. It has been tested with version 3.1 as well.
Regards,
Eric M
Attachments:
ProgStnGbls.seq ‏14 KB

Similar Messages

  • How do you get a station global or any variable to be read across UUTs executing in the parallel Sequence model?

    Dear  Support,
    I have two questions regarding the parallel sequence model:
    I am trying to find a global variable or any variable that can be universally read from any thread / step .   For instance:
    - Parallel sequence Model
    - 2 UUTs
    - The main sequence has 20  steps
    - I am looking for a variable that can be read universally across both UUTs in any step.  I have tried many, even the station global variable - as a Boolean - for "Abort" .  But that did not work either.
    Question TWO:   How can I bring out this universal variable to the UI ?  Can you point me to an example?    Do I use the "Lookup"  ,.  I could not get that to work.  Can I use the "Label"  ?  I could not get that to work neither.
    Thanks! Brad
    Brad Whaley
    LabVIEW Certified Engineer

    1. http://digital.ni.com/public.nsf/allkb/21368C716B06780A86256A5C007075DB
    2. Post UI Message http://zone.ni.com/reference/en-XX/help/370052K-01/tsapiref/reftopics/engine_postuimessage_m/
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How to create an array Station Globals programmatically in CVI?

    Hello all,
    I want to create an array Station Globals programmatically in CVI. Where can I find some examples?
    Thanks,
    Zhonghui Ning

    Zhonghui,
    There is a KnowledgeBase on our website that describes the methods needed to do this. You can find the KnowledgeBase at http://digital.ni.com/public.nsf/websearch/C7C81F4AE5A46BB686256CDA005FA4C6?OpenDocument.
    I found this by searching for "teststand create variable". You can find TestStand examples on our Developer Library by going to http://www.ni.com/devzone and clicking on the link for Developer Library. This page has example code as well as tutorials and application notes on many aspects of TestStand. There are quite a few examples there that already address this type of question: Creating Sequence File Global Variables Using the TestStand API with LabWindows/CVI
    and Creating and Inserting a New Data Type into a Sequence File using LabWindows/CVI
    We continually add examples to these web pages, so it is always a good place to look for examples. While they may not have the exact answer to your questions, the examples usually cover a topic that is close enough for you to be able to apply the example to your question.
    Hope that helps.
    Regards,
    Shannon R.
    Applications Engineer
    National Instruments

  • How to log strings stored in Station Globals and/or PreUUT values?

    Hi all,
    I have a Station Global that is persistent across all UUTs in a particular PC. I have also created a custom PreUUT dialog to obtain user input that applies to the upcoming UUT (I pass this user input to the UUT by storing it in a File Global). Both the Station Global and the File Global store a string.
    What is a good way to log these strings into the ATML report and SQL database?
    Currently, the best solution I can think of is:
    Create a LabVIEW VI that takes a string input and passes it straight through to the output
    Pass the Station Global (or the File Global) into the VI input
    Assign the VI output to Step.Result.ReportText
    This seems rather cumbersome though. Is there a simpler way to achieve this? (i.e. is there a built-in TestStand action that logs a variable directly into the report?)
    In case it's important, I'm using TestStand 2013 SP1 and I'm using the default report templates: tr5_horizontal.xsl for ATML, and C:\Program Files\National Instruments\TestStand 2013\Components\Models\TestStandModels\Database\SQL Server Create Generic Recordset Result Tables.sql for SQL.
    Thanks!
    Solved!
    Go to Solution.

    JKSH,
    You can handle this with the Additional Results functionality in TestStand, which can be configured in the settings for an existing step, or as a standalone step type. We have an example of this in the TestStand Fundamental Example series here: http://www.ni.com/product-documentation/52354/en/#toc3   (Look for section 3, "Adding Custom Data to a Report"
    I hope it helps, and let us know if we can do anything else to help!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • How to transfer Station Globals from 2.0 to 3.1

    I have a Teststand 2.0 sequence.  I notice that after I install
    3.1 it can not access the previously existing station globals.  I
    can enter them by hand but I need to deploy to other machines.  Is
    there a way to import station globals from 2.0 to 3.1. A collegue
    suggested copying the .ini file but I notice those files have teststand
    versioning entries.

    Hi,
    You should be able to do the same as Allen P had responded to the previous query. So did you try that.
    Also what's the point in posting your query here and in it's own post (here), it doesn't get your query answered any quicker.
    Regards
    Ray Farmer

  • Writing to TestStand Station Globals

    Hi,
    I've posted this in the LV board, but realise it may be better suited to the TestStand one...
    I want to write to a TestStand Station Global from within LabVIEW.  I can read from Stations Globals using the method given here: https://decibel.ni.com/content/docs/DOC-11447 but can't work out how to write to them.
    Is it possible? If so, how?
    Any help gratefully received,
    Dan
    Dan
    CLD

    There should be a TestStand palette in your LabVIEW.  In there is a TestStand - Set Property Value.vi.  There is also a TestStand - Get Property Value.vi.  Those will make your life a lot easier.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Teststand station global

    Hi,
    Can any body tell me what is the difference between TestStand Sequence file global variable / station global variables and LabView global variables.
    In TestStand, I want to pass one cluster from Setup to Main, which can't be passed using Local variable.
    Using LabView Global variable, I am able to pass cluster from Setup to Main.
    Using TestStand Sequence file global variable / station global variables, the cluster has not been passed from Setup to Main.
    Any help will be appreciated.
    Thanks
    Holy

    Holy,
    Local Variables:
    Each execution has its own copies of the local variables. So you can not use them to share data between executions.
    Use local variables to store data relevant to the execution of the sequence.
    Sequence File Global Variables:
    Any sequence in the file can access the global variables for the file. A subsequence can access the global variables in the sequence file that contains the calling sequence.
    Global Variables:
    Station global variables are persistent across different executions and even across different invocations of the sequence editor or operator interface. The TestStand Engine maintains the value of a station global variable in a file on the computer on which it is installed.
    LabView Global Variable.
    The LV global variables are used to access and pass data among several VIs.
    TestStand can not access LV global variables directly.
    You need to call it through a code module.
    I am not sure how are u handling the cluster.
    I assume that you are initializing it somehow in the setup group and after that you use it in the main group.
    1. If you get the cluster from a VI in the setup group and after that you want to use it in the main group you could use a local variable.
    2. If you need to share the cluster among several executions you need to use a global variable.
    Could you give more details about your use case?
    Hope it helps
    Antonio.
    Message Edited by Antonio Lie (NI) on 11-11-2005 10:16 AM

  • Station global array

    Hi,
    Using a sequence with active X calls to  create an intialise station globals is the solution to our problem.
    But,
    There doesnt seem to be a way to set or get an Array.
    Does anyone know how to do this ?
    i.e
    Using Active X steps:
    Programatically create an array in the station globals.
    Set values of this array.

    Hi,
    Use the SetValVariant  method.
    Your array must exist, as the option 0x01 (insert if missing) is not supported using the SetValVariant method.
    As an example, Call PropertyObject.SetValVariant("MyArray", 0, {1.2, 2.3, 3.4}) using "StationGlobals" as the reference will fill the array called StationGlobals.MyArray. If the array is already sized and has contains then that contents will be overwritten and the array will be resized, e.g for my example it will become a size of 3 elements.
    Check out the examples for accessing arrays with other languages in the examples folder of TestStand.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Station global object references

    Are station global object references stored in a file like other station globals? If so, how?
    Can the values of attributes of the object be recovered?
    Solved!
    Go to Solution.

    The values of references are not persisted to files. This is not technically feasible in the general case, since a reference can point to just about any ActiveX or .net object.
    Message Edited by James Grey on 08-06-2009 10:05 AM

  • Transer station globals from 2012 to 4.2

    I am working with TS2012, TS2010, and TS4.2.1.
    I need to copy my station globals from 2012 to 4.2.1 and am having issues.  I can not find out how to do this without retyping all of the globals.  The import/export only populates the entries.  Any have any idea on how to transfer my station globals from a newer version to an older version?

    Try this. Copy the station globals to the file globals of a new file. Save As --> select 4.2 format. Load the new file in TS 4.2, copy the file globals to station globals.

  • Station globals enum type

    Within TestStand (3.5), in the Station Globals, I have two questions
    1) Once you create a field (say you make it a string), can you later change its type - if so, how?
    2) Within one of my LabVIEW dialogs, I have an enum control that contains several options.  How do I map a LabVIEW enum into a TestStand station global type?

    Ok,
    Select a variable and then click left mouse button. you should see the Replace selection.
    see attachec PNG's.
    Regards
    Ray Farmer
    Message Edited by Ray Farmer on 06-07-2006 09:34 PM
    Regards
    Ray Farmer
    Attachments:
    field.PNG ‏13 KB
    global.PNG ‏12 KB

  • How to setup multiple base station under one network?

    How to setup multiple base station under one network? I have 6 rooms but one airport base station makes really difficult to get good signal from every rooms. I wonder if I can setup multiple airport base stations talking to each other under the same network to build up the signal strength will help solve this problem. But, is it possible? How?

    One route would be to utilize a "roaming" network. In a roaming network, you would connect multiple AirPort Extreme Base Stations (AEBS) to the same Ethernet. Of course, this would require that your home is already wired for Ethernet.

  • How to select Internet radio stations on iPad from Music app?

    My iPad is connected to the Internet. In the Music app I how to select Internet radio stations?
    (iPad and iTunes are up-to-date versions.)

    Having searched older posts it appers I am not the only one looking for Internet radio on iOS devices; the answer is this Mac OS X iTunes feature is not in the iOS 7 Radio app or elsewhere on iOS7.  People suggested downloading TuneIn Radio (free with over 50,000 stations).

  • How to add a radio station to the library

    just loaded itunes 6 (windows box) and can't find out how to add a radio station to the library

    If your current stations in WMP are .pls or .m3u URL's, they may work in iTunes also. Use the "Open Stream" command from the Advanced menu and put in the URL that includes .pls/.m3u. If the URL is a .mwv variety, those are Windows proprietary format and not supported by iTunes. Same with .ra streams (Real Audio).
    .pls & .m3u usually indicate MP3 based streams supported in iTunes. It's up to the original radio station/streaming site to select the format and make it available. Shoutcast.com & Live365.com are great resources for mp3 based streams.

  • Error while accessing station global in LabVIEW

    I am trying to access the teststand station global value in the LabVIEW using activex methods.
    If I am reading default station global (TS.LastUserName) i am able to read the value.
    However if i am trying to read the value of the string station global which i am updating through running sequence i am getting an error as follows:
    "Unknown variable or property name 'ExecutionTime'.
    Error accessing item 'ExecutionTime'. in GetGlobal.vi" where ExecutionTime is the name of my station global.
    Error code is -17306.
    What is going wrong?

    Couple of suggestions for you:
    If you are trying to read the execution time in your user interface, I suggest: http://zone.ni.com/reference/en-XX/help/370052K-01/tsapiref/reftopics/obsolete_thread_postuimessage_... method to pass data to UI
    Also, station globals are not dynamic like other variables (Locals / FileGlobals etc) which means that you wont get an updated value until the stationglobals.ini file is saved. So depending on what you are trying to read, this may or may not be your best choice.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

Maybe you are looking for

  • How to show Headers in ABAP report

    hii folks, plz try to solve my quesions: hw to show  two Headers in ABAP report output, like eg: for first two fields(vendor  A/C no. vendor name ) i have to shw header name like VENDOR  PR. DETAILS & for the nxt following fields(vendor city, state,

  • Pdf form generated by asp does not open in IE8 after installing Reader X

    started using Reader X last week and when opening a pdf generated by asp it does not work but when I kill the process iexplorer.exe for that window I get: "This tab has been recovered. A problem with this webpage caused IE to close and reopen the tab

  • Execute report in PDF format

    hello and hi me using form and report 6i with oracle 9i me issue is athat when me run my report from form , me want to see report in pdf formt not in rep ( in other world , me want to run my report in PRD format not want to save) regard mahr

  • Settings for the check crystal reports

    Hey all, I have created a custom check printing crystal report. Now i have to tell the process to pick my custom crystal report instead of APY2021-. Can anyone tell me what should i do to print the checks according to my custom crystal report. Can yo

  • Hi, where can I download the adobe media server setup file?

    same as above.