Programmatically change station option in TestStand 2.0.1

Previously, I had an issue with changing the station model but that was overcome by the GetStationModelSequenceFile() function and StationModelSequenceFilePath variable.  What I need to do now is to get and change the Test Report type ( text or html ) and enable/disable database reporting.  I haven't found functions or variables to do so.  Does anyone out there know how to do that?  Thanks.
-G-

Ray,
I took a look at the link you posted and implemented the ReportOptions and DatabaseOptions callbacks.  Inside each I use the Thread.PostUIMessage ActiveX step type to send a user defined message id to my program.  The program has an event handler for the TestStand engine and receives the messages okay.  Inside the ReportOptions handler ( in the program ), I get the message execution pointer from which I get the report pointer from which I use the PutFormat function to set the report format.  By have 2 of the ActiveX steps in the sequence and adding some debug code in the ReportOptions handler ( in the program ) I can see that format changes as expected.  The format does not change overall, though.  With the station model ( which is modified for On the Fly Reporting and another change for my program ) open in TS I set the ReportOptions and DatabaseOptions using the dialog boxes from the menu.  Whatever they're set to there, regardless of what I set them to in the program handler, is what they behave as further down in the StationModel.  I tried setting the station model local variables ( the ones passed to the ReportOptions and DatabaseOptions sequences as parameters ) but that didn't have an effect either.  What I'm thinking is the variables get changed okay but they don't take hold unless they are saved and reran.  I want to change them at run-time and have them take effect.  Any more ideas?  Thanks.
-G-

Similar Messages

  • Changing Station Options with a Sequence File

    Hi,
    Is there a way to modify the "Debug options" located under "Preferences" tab in Station Options in TestStand by running a sequence file? I would like to disable the default "Report Object Leaks" option located under "Debug options"
    Also, can I disable Report Generation located under "Report Options" by running a sequence file?
    Response is appreciated. Thanks.

    Hi,
    Dont forget that the Report Options are set before the main process model loops.
    If you wanted to disable the report once you are into the Client sequence file, you might beable to affect the Local copy of the ReportOptions by using RunState.Caller.RunState.Locals.ReportOptions
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Changing station options programmatically

    Hi
    I am trying to change the Station Options programmatically (in a TestStand seq) rather than via the dialog. In particular, I want to change the "Immediately Goto Cleanup on Sequence Failure", although I will probably also want to change other options later. 
    I have succeeded in:
    Getting the ConfigFile (PropertyObjectFile) using the Runstate.Engine reference
    Getting the Data (PropertyObject) using the Configfile reference.
    Setting "StopOnSequenceFailure" using SetValBoolean with the Data reference.
    Saving the changes to TestExec.ini, using SaveFileIfModified with the ConfigFile reference.
    However, the change only takes effect when TestStand is restarted, and does not show up in the StationOptions dialog (until a restart). Using the dialog, I can change the setting while stepping through a sequence, and it takes effect immediately, so there must be a way to do this from within a sequence.
    How do I "refresh" TestStand's "copy" of the variable?
    Thanks
    (I am using TestStand 2.0.1.)
    Message Edited by Jan0 on 09-30-2005 02:50 AM

    Jan,
    What Version of TestStand are you using?
    I assume you are using the TestStand API.
    You can get a reference to the StaionOptions Object from the Engine.
    StationOptions Property (Read Only)
    Syntax
    Engine.StationOptions
    Data Type
    StationOptions
    Purpose
    Gets a reference to the StationOptions object.
    Remarks
    Use the StationOptions object to set preferences for your TestStand station. Station option settings affect all sequence editor and operator interface sessions that you run on your computer.
    See Also
    StationOptions
    Check TestStand Help.
    Usin this reference you can access most of the options present in the station options dialog.
    I hope this helps.

  • How to change Enumerator programmatically in LabVIEW called in Teststand

    How to change Enumerator programmatically in LabVIEW called in Teststand ?
    I know that Enumerator cannot be changed programmatically since the data type itself different from other controls like Ring and Combo box. 
    My application  involves in Property loader which will load the list of names to Enumerator during Initialization. And the same shall be used by operator to select in further steps for testing. I tried with Ring and combo box but it doesn't works because its not giving dropdown option in TestStand Steps to select the name.
    I need a drop down and also programmatically changing the value of the same variable. I had gone through all forum solutions regarding Enum, but I couldn't get any work around for this.
    Please suggest me a solution or best work around to do this.
    Thanks,
    Vijay
    L&T Limited
    Certified LabVIEW Developer
    India.

    Can you provide an example of how a ring control/combo box does not work?  This should be the way to do what you want unless I am misunderstanding exactly what you want to do.  In theory you could have a dynamic enumerator type, but there are lots of hoops to jump through using VI server and scripting and it is not worth the effort.  Aesthetically, you can make the ring control and enumerated data type look exactly the same.  I would be using a ring control.
    Please post an example of how it does not work.

  • Programmatically change the query used to generate Oracle Reports

    I have two queries. Depending on some parameter value, I would like to use one of these queries to generate my report. Is it possible to programmatically change the SQL query used to generate the Oracle Report.
    Thanks

    There are two options:
    - The easy way
    In the report paper layout create two frames, one for each query , and at runtime
    display only one based on your parameters. (using format triggers on the frames)
    - the not so easy way (but more elegant)
    create the query at runtime using xml customizations using the examples from
    the following documentation:
    http://download-
    uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_xml.htm#i1006734
    16.3 Creating XML Data Models
    16.4.1.3 Applying an XML Report Definition in PL/SQL
    16.4.1.3.2 Applying an XML Definition Stored in Memory
    Regards and Good Luck
    Ionut S

  • Where is the station options configuration stored

    Where is the station options configuration gets stored in TestStand 4.2.1?
    Solved!
    Go to Solution.

    The StationGlobals.ini file is in your TestStand Config directory, which is found at <TestStand Application Data>\Cfg.
    On Windows 7, this is C:\ProgramData\National Instruments\TestStand 4.2\Cfg. I don't remember off-hand what the exact path is on versions of Windows earlier than Vista... Somewhere under C:\Documents and Settings\<Username>\. You can just search for StationGlobals.ini if you need to.

  • Station options not copied to deployment

    In my .tsd file I checked Deploy files in TS public directories as I had been told this would cause station options to be copied. However my cfg directory preference does not come across. We use a custom location instead of the default for the cfg directory so we can place it with the rest of the version controlled software. The source directories on the development machine are different then the deployment directories but I don't think this has not been a problem in the past.
    Any ideas?
    Thanks,
    jh

    Hey Hoss,
    I am not sure that I am clear about your setup, but if you are developing a sequence file through SVN, you should do the following:
    Create a workspace with all dependent configuration files, sequence files and libraries (I have attached a screenshot of what this would look like). You should then upload this to SVN and allow users to make changes to files through the workspace. Once you are ready for deployment, you can download the workspace file and deploy using the workspace option. You should never replace altered configuration files with the original configuration files in your development environment, as this will affect all future development.
    Having said that, if you are considering changes on a test station that has already been deployed to, you can replace configuration files once they have been altered.
    Please let me know if I have thoroughly addressed your question and I hope you have a great day!
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments
    Attachments:
    TeststandWorkspaceFile.png ‏32 KB

  • Station Options - User Manager tab

    Within the Station Options, I see the User Manager tab.  If I use the default configure location, the Users.ini file will live in C:\Program Files\National Instruments\TestStand 3.5\Cfg\Users.ini.  Is this where BOTH the development and target Users.ini file will live, or is this only the development location?  If this location applies only to the development, where is the target location specified?

    That's correct.
    All of my deployments, locally and at our contract manufacturers, are connected to a network. For the CM's we provide an inexpensive server that is connected to the CM's network. The testers are connected to a network provided by the server. All test results go to the server. That makes it easy for both the CM and my company to get test results. Also, the sequence files, test steps, model files, etc. are all deployed to the server. This makes it simple to update all testers at once and I don't have to worry that one tester out of several and 3 thousand miles away missed getting updated. Servers are cheap.

  • Reading Configure- Station Options- Immediately Goto Cleanup on Sequence Failure Checkbox Setting

    In TestStand 3.5, how do you programatically read the status of the Configure->Station Options->Immediately Goto Cleanup on Sequence Failure checkbox?  How would you programatically set this value?
    Solved!
    Go to Solution.

    Thanks for the reply, but I tried your suggestion and it cannot resolve the reference.  When I typed in Engine. it was immediately replaced by RunState.Engine. so I used RunState.Engine.StationOptions.AlwaysGotoCleanupOn Failure.  When the step was executed, there was an error stating "Unknown variable or property name RunState.Engine.StationOptions".  When I go to the context tab, I see the Engine object, but I cannot expand to see what elements it contains.  Any further suggestions?   How does one find out what "Engine" contains anyway?

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • Can someone help me? How do I change the option to pick where or what program I want to open a file after I've downloaded it? I tried to look for an option for this and can't find it anywhere.

    For example I download a file and I click on it and there will sometimes be a window that opens saying what program I want to open the file with? And then it'll also have a check box saying if I want to use this program for all files I download. I can't change it when I download the file because that one file I keep downloading keeps crashing my Firefox and I have to force quit. It's really getting on my nerves. It's an online statement I'm trying to view and I want to get rid of that problem!! Is there anyway to change that option without going to that download page?

    I would recommend going into device manager on your PC and making sure that you have correctly installed the IR dongle. Also what version of hotsync manager are you currently using?
    Post relates to: Treo 800w (Sprint)

  • User cannot change password option is automatically getting unchecked while giving domain admin rights

    user cannot change password option is automatically getting unchecked while giving domain admin rights

    Greetings!
    "Domain Admins" falls into the category of protected groups and it is included in ADminSDHolder process. It is normal and was designed in order to prevent the modification to these privileged groups. More information on the link below:
    AdminSDHolder, Protected Groups and SDPROP
    Regards.
    Mahdi Tehrani   |  
      |  
    www.mahditehrani.ir
    Please click on Propose As Answer or to mark this post as
    and helpful for other people.
    This posting is provided AS-IS with no warranties, and confers no rights.
    How to query members of 'Local Administrators' group in all computers?

  • When i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync  options,how can i change that option,can any one help me.........?

    when i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync  options,how can i change that option,can any one help me.........?

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • VA01 ATP incorrecct results when delivery date is programmatically changed

    Hi Guru's,
    When creating or modifying a sales order (VA01 & VA02), we need to programmatically assign the delivery date a) for certain customers or b) when the delivery priority is changed from downs to regular order and visa-versa. For examples: 1) user enters a delivery date 02/01/2012, the program (userexit_check_vbep) will automatically replace it with a calculated
    date (i.e.. 2/20/2012). 2) if user changes the delivery priority from regular order to a downs order, the program will automatically replace delivery date to current date.
    But are getting incorrect ATP results when requested delivery date (based on what user enters in VBAP-LPRIO "delivery priority") is programmatically changed and then user manually enters the date and run ATP (see steps 8 & 9 below).  
    VA01 execution steps:
    1) Used VA01 and entered a material of quantity 1, requested date 2/01/2012, delivery priority = regular. Date was overwritten automatically with program calculated date 2/20/2012 as expected.
    2) ATP automatically ran successfully for the initial entry.
    3) I then changed the delivery priority from regular order to downs order & requested delivery date was automatically changed to current date 02/01/2012 as expected.
    4) ran ATP manually and all is well.
    5) I then changed the delivery priority back to a regular order and date was automatically changed back to 02/20/2012 as expected.
    6) I ran ATP manually and again all is well.
    7) I then manually changed the delivery date 02/25/2012.
    Incorrect / bad results:
    8) ATP then passed back 2 sub-items lines with the quantity of 1 each. The quantity on the main line item is doubled to 2.
    9) I then tried to delete the main line item manually to start all over, but the transaction just hangs because it tries to go to ATP, but cannot resolve what to delete.
    Do you have any suggestions to help resolve this?   
    The following SAP user-exits were modified:
    a) MV45AFZB
      1) userexit_check_vbap
      - for certain customers (a custom "override days" field stored in VBAP is populated), delivery date is automatically calculated using this field (i.e.  current date + override days).   If user entered date < calculated date,   calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (regular order) or current date (downs order).
      2) userexit_check_vbep : if user enters a delivery date (vbep-edatu), it is checked against calculated delivery date & overwritten, if it is < calculated date.
    b) MV45AFZZ - userexit_move_field_to_vbap :
      - override days is determined & delivery date is automatically calculated. If user entered date < calculated date, calculated date is used (xvbep-edatu).
      - If user changes delivery priority, xvbep-edatu will be set automatically to either the calculated date (reg.order) or current date (downs order)
    Reason for updating xvbep: if only vbap-lprio or vbap-override (custom field) fields are changed, the VBEP user exit routines (userexit_move_field_to vbep or userexit_check_vbep)  do not run.  Change to xvbep does trigger userexit_check_vbep.
    Please advise.
    Joe

    This is not an SD question and should be moved to ABAP forum. It seems to me that the issue is not with incorrect ATP but with the subitems / main item updated incorrectly. This needs to be resolved by a developer who wrote the user exit. Most likely either a user exit is triggered when not expected or a wrong line updated, etc. Debugger should be helpful.
    Also instead of setting delivery priority, why can't the users just change the delivery date to current date? This seems just as easy to me...

  • How to programmatically change the cell color of an ADF table ?

    Hi all,
    I have an ADF table with some fields on it. Depending on the value of a field named, say, "F1", I would like to change its background color.
    So far I can change the field color with this EL expression inside the InlineStyle table column property:
    font-size:medium; background-color:#{viewScope.myBean.setColor};
    where setColor is a bean function, in where I access the field "F1" via binding, parse its value, and return the right value - so far, so good.
    The bad thing is, the InlineStyle affects that field in all the rows of the table, while I would like to change only the field in the rows, which have that specific value in it.
    So for example having the rows:
    F1
    abc#1 ----> currently selected row
    cde#2
    efg#3
    I want to change the background color to all the F1 fields which have a "1" after the '#' and let the other "F1" row cells background color stay unchanged.
    But as you can imagine, the InlineStyle affect the "F1" background color in all the rows (assuming that the first row of the table is selected).
    So the question: how to access a single cell of a row in an ADF table, and programmatically change its background color ?
    So far I can iterate through the ADF table with:
    BindingContext bindingctx = BindingContext.getCurrent();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("aTableIterator");//access the iterator by its ID value in the PageDef file
    RowSetIterator rsi = dciter.getRowSetIterator();
    System.out.println("rsi getrowcount = " rsi.getRowCount());+
    Row row = null;
    +if (rsi.getRowCount() > 0) {+
    row = rsi.getCurrentRow();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    System.out.println("class : " row.getAttribute("F1").getClass().toString());+
    +}+
    +while (rsi.hasNext()) {+
    row = rsi.next();
    System.out.println("row attr = " Arrays.toString(row.getAttributeNames()));+
    +}+
    Regards,
    Sergio.

    Hi,
    I mean a specific cell within a row.
    Here are two pictures that show an ADF table with two rows and some fields on it:
    https://skydrive.live.com/?cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents#cid=7D3084D8BF755808&id=7D3084D8BF755808!107&sc=documents
    bild_A is what I have, bild_B is what I would like. Note that:
    in bild_A the first row contain a yellow background color for the field F4 and an orange background color for the field F5. This is correct, because F4 has an "1" at the end of its string value, and F5 has a "3" at the end. So far so good.
    But the second row (again, bild_A) has also the fields F4 with yellow background color, and the field F5 with orange background color, even if the value in both fields is 0.
    What is should be, is shown in bild_B.
    The problem is that the solution provided affects all the cells of the column, while I need to change the background color of a single cell, and leave the other unchanged (see bild_B).
    I hope that clarify a bit :)
    Sergio.

Maybe you are looking for

  • Upgraded to SP18 -program to run to generate alerts

    Hi    We recently upgraded our XI 3.0 dev environment from SP13 to SP18 - and our alert rules and categories that had been defined in SP13 are intact after the upgrade I know that beyond SP13 - Alert framework is not dependent on End-to-End monitorin

  • Has anyone still got cs3 extended (academic version)

    A request, My diskCS3 was stolen and adobe cannot supply a replacement,even the alternative zip file they sugested didn't work. I can't afford to upgrade to CS4 so I don't know if this is the right place to be making this request,I'm new to all this.

  • Memory leak during insert on PocketPC 2002

    We've built an application using an Oracle Lite 5.0.1 database using an ODBC interface. We've stolen most of the code from: C:\OraHome1\Mobile\Sdk\wince\samples\ODBC\sample.cpp We've found that there appears to be a memory leak during inserts (haven'

  • Generate PDF file in SharePoint 2013

    Hi, I have a requirement to create .pdf file while one item is submitted to list/library in SharePoint 2013. It means when employee inputs his/her data and after submit one pdf file will generated with the summary/relevant data. Can any one help me t

  • How to convert pulses into RPM

    I am using a counter to count the pulses given from a hall sensor to detect the speed of a motor. I can see the pulses on the graph and I have the operation running in a while loop but I am having issues with setting up a fixed time for the counter t