Regain focus to TS2 running sequence.

hi everybody
i have a TS2 sequence with Labview 7 steps. Labview runs some windows application upon needs.
when the windows application ends, the Sequence is not focused and sometimes the Labview windows
opens (and focused),probably by system in spite of the fact that it was minimized , and covers the sequence running steps.
how to cause the running sequence to gain
focus, and to prevent the labview window to cover it
please your advice
regards
Simon.I

Hello Simon,
Are you using TS 2.0 or 2.01? I have tried to replicate the problem that you have described, but I am not able to. Does this happen for all VIs that get called or just some?
There are two ways that a VI front panel is shown during a TestStand execution: 1) In the Specify Module dialog box, "Show VI Front Panel When Called" is enabled or 2) In the VI properties, under window appearance, in the customize options, "Show Front Panel When Called" is enabled. But when I try both methods, TestStand still becomes the active window after the VI completes (even if it does not close).
Of course, as long as the VI is running, it is the active window. You can change that programmatically within the VI by using VI Server to access the properties of the VI itself. Place down a property node. Right-click on it and navigate to "Select Class >> VI Server >> VI". Then right-click on the property and navigate to "Properties >> Front Panel Window >> State". This property allows you to programmatically minimize the front panel of the VI.
Regards,
Aaron B.
National Instruments

Similar Messages

  • When I close the CHM how do I get the application it was launched from to regain focus?

    I am developing a CHM for an application that runs on
    Windows. When I launch the Help (CHM) from the application, then
    close the Help, I want the application that I launched the Help
    from to regain focus. (I would expect this is what most people
    would want to happen, and this is what happens with Microsoft
    generated Help files.) However with my RoboHelp CHMs this does not
    happen.
    Does anyone know how I can fix this behaviour? Is there a
    setting in RoboHelp that I need to change?
    My R&D application developer has spoken with Microsoft
    and they suggested the problem was with my RoboHelp CHM, they
    suggested trying the following process with one of their CHMs and
    then with one that I created using RoboHelp, and they are correct
    in that my RoboHelp CHM is behaving differently. Here's the
    procedure if you'd like to try it:
    - Open a Windows Explorer window.
    - Navigate to the c:\WINDOWS\Help folder (or equivalent on
    your PC).
    - Double-click on the iexplore.chm file. Note that the help
    file opens up in a viewer window.
    - Dismiss the viewer by clicking on the close button (X).
    - Note that focus is returned to the Windows Explorer window.
    Repeat the above experiment, but navigate to where you have a
    RoboHelp CHM file. I find that when I dismiss the help viewer
    window, focus is NOT returned to the Windows Explorer window. Do
    you see the same thing with your RoboHelp CHMs? If not, what have
    you set to cause the application that it was launched from to
    regain focus?
    I really appreciate any help you can give me in resolving
    this issue.
    Best Regards, Sharon

    Hi Sharon
    Hmmm, where exactly *IS* the focus in your tests after
    closing the RoboHelp generated .CHM file? I just tested and saw the
    same behavior regardless of whether it was a Microsoft .CHM or a
    RoboHelp HTML created .CHM. Each time, the focus was returned to
    Windows Explorer.
    I do know that the manner in which your developers open a
    .CHM can vary. For example, your developer can specify that a
    particular tab have focus, such as the Index or TOC, while simply
    double-clicking will result in the last opened tab being the active
    tab.
    Wish I had more to offer here, but I'm not seeing the same
    behavior as you are. I do know there are some extended settings for
    your window, but I'm doubtful that's the answer here.
    Also, I'm not too sure how much stock I'd put in something a
    Microsoft call center stated. Just the nature of call centers. Some
    folks that staff them are good and skilled, some are a bit, shall
    we say, lacking. This is truly "Luck of the draw".
    Sincerely... Rick

  • How do I save a running sequence file

    Part of my testing requires a large number of variables to be passed to and from the UUT within TestStand. I can store some of these variables in the station globals, but I'd like the option to store others in the sequence files at run time and save them to disk (save the sequence file) at the end of the test. I can create variables in the station globals and commit the globals to disk just fine (LabVIEW vi's using the TestStand API). However, I cannot figure out how to do the same thing with a sequence file. My code is able to create and populate the locals variables with no problem, but I cannot save the running sequence file to disk with the new locals (or file globals) intact (they disappear when the sequence ends.) The reason I want to save the sequence file is to avoid manually entering all these variables into each sequence file locals list.
    So, I think the questions are:
    How do I make the new locals or file globals a part of the running sequence file?
    How do I save the sequence file to disk before it stops running?
    I can increment the change count on the file. I have figured out two or three ways to save the file while it's running without errors (although I doubt it's actually doing anything.) I'm using the TestStand API in LabVIEW vi's to pull this off and cannot find the functions I'm looking for.
    Sorry if this is rambling, it's kind of hard to describe.

    Hi Lars,
    The reason that we can't save the local variables created during
    runtime is because TestStand creates a runtime copy of the variables
    when the sequence starts. After the sequence is finished executing,
    this copy is discarded. The reason behind this is that TestStand allows
    for a single sequence to have multiple executions at the same time, and
    each instance gets its own runtime copy of the local variables. If new
    locals could be saved to the actual sequence file in memory, it could
    cause major problems for other execution threads of that particular
    .seq file.
    You can use the API to add variables to the actual file using
    GetSequenceFileEx and incrementing the Change Count, or create a
    separate sequence that modifies another sequence file, but adding these
    locals to the sequence file from itself isn't possible.
    Hope this helps Lars,
    Have a good one.
    Dan Weiland
    Applications Engineer
    National Instruments
    www.ni.com/support
    Dan Weiland

  • Problem when a JPanel with a JDialog regains focus

    I've a simple application with a JFrame and a nested JDialog under MS Windows. When it regains focus (i.e. another application like MSWord was active and with Alt+Tab or with a mouse-click in taskbar I force my application to gain focus), the JDialog becomes active but I can't see the JPanel because between the dialog and the panel there is MSWord. In z-order I've get the dialog at top, under it MSWord and the panel at background. That's not the regular behavior, but sometimes it happens. Any idea to avoid always this behavior?
    Thanks in advance.

    Any solutions to this problem???

  • Creating Debit memo with running sequence

    HI ,
    I am creating steel surch debit memo from my report (VA01 Transaction order type zdr1),there is one condition if net value GE selection screen  value only that time i should commit the sales order,Now if condition is not matching BAPI_SALESDOCU_CREATEFROMDATA generating salesdocument and i am  skipping  BAPI_TRANSACTION_COMMIT ,now if i run my report again and this time condition satisfied it is generating sales document with other number in a running sequence(Ex 123 sales document not satisfied the condition i didi'nt do the transaction commit,next time again i run bapi it is creating sales documnet 124,but it should create with 123 because i have not done commit),else
    is there any way  that i can  calculate the net value with respect to all billing documentd with condition type and condition value before calling the BAPI_SALESDOCU_CREATEFROMDATA

    Hi,
    V will populate the fields from the Customer master data, but I want to populate from the original document that our Debit memo is created with reference to.
    Thanks a lot for your answer.
    Desimira

  • How to use gApp.MenuItemExecute("BatchEdit") then programmatically Run Sequence

    I am attempting to use the Acrobat 9 SDK - IAC API from a VB.NET application to select and run a batch sequence.
    It is running on Windows XP SP3 with Acrobat 9.1.
    So far my code :-
    Dim gApp As Acrobat.CAcroApp
         If Not gApp.MenuItemExecute("BatchEdit") Then
    If Not gApp.MenuItemExecute("BatchEdit") Then
          MsgBox("Batch Sequences menu was not found.") 
    End
    This successfully displays the Batch Sequence dialog.
    How do I now select the desired sequence and then Run Sequence and execute the resulting dialog?

    Thanks for your prompt reply.
    If I can't run sequences can I instead run other meni items?
    Can I run MenuItemExecute on other menus and then control the resulting dialog e.g. Optimize Scanned PDF or PDF Optimizer or Reduce File Size.
    If I can't control these dialogs, what is the point of the MenuItemExecute command?
    Russ

  • JavaScript Editor opens when I click Run Sequence

    I'm using Batch Sequences to add Headers to my documents, using addWatermark from Text.  I want the file name as part of the watermark.
    The reason I'm using javascript rather than the provided sequence is that I have a few hundred documents and they have a different amount of pages.
    When I click run sequence the javascript editor pops up and if I click OK then everything runs fine, the new doc is created with the header I wanted. 
    But I don't want to click OK a few hundred times and it wasn't happening before, it just started. Is there a way to stop it from popping up? Or a way to figure out why it started?
    I'm on Acrobat 9 Pro 9.0.0 and Windows XP. 
    The code is below:
    /*Adding a header to a document*/
    //This gets the filename
    var re = /\.pdf$/i;
    // filename is the base name of the file Acrobat is working on
    var filename = this.documentFileName.replace(re,"");
    //This adds a header in the right top position
    this.addWatermarkFromText({
    cText: "(My right header -" + filename +")",
    nStart: 2, //Page to start adding the header
    nEnd: this.numPages-1,  //Pages to stop adding the header
    cFont:font.Helv,
    nFontSize:10,
    nTextAlign: app.constants.align.right,
    nHorizAlign: app.constants.align.right,
    nVertAlign: app.constants.align.top,
    nHorizValue: -72,
    nVertValue: -72

    Make sure the "Prompt user" check-box under the Execute JavaScript command
    in your Action is not ticked.

  • Auto Run sequence under batch processing

    How to auto run sequence under batch processing in a period of time, by scripting or any pre-installed mode?
    Thanks!

    Because by default it is 2*sort_area_size
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96536/ch172.htm
    And sort_area_size by default is 65536
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1198.htm
    Gints Plivna
    http://www.gplivna.eu
    Message was edited by:
    gintsp
    Added info about sort_area_size

  • AppV5 Excel/Office ProPlus 2013 Click to Run Sequencing (and include some native Addins)

    Hello,
    We need two native Excel 2013 Addins: PowerPivot and PowerView. Since Office 2010 is installed locally on all client machines I would like to virtualize Excel 2013 (Click to Run) with these two addins. Licensing is no issue because an
    Office 365 subscription will be purchased.
    So, I have successfully sequenced Excel 2013 with AppV 5.0 SP1 via the Office Deployment Tool. It all seems too easy:
    First download sources (setup.exe /download configuration.xml)
    Second configure sources (setup.exe <xml file>)
    Last create the AppV package (setup.exe /packager <xml> <path to save .appv package>)
    My Configuration.xml file looks like this:
    <Configuration>
    <Add SourcePath="\\serverr\share" OfficeClientEdition="32" >
    <Product ID="ExcelRetail">
    <Language ID="en-us" />
    </Product>
    </Add>
    <Display Level="None" AcceptEULA="TRUE" />
    <Logging Name="Office2013Setup.txt" Path="%temp%" />
    <Property Name="AUTOACTIVATE" Value="1" />
    </Configuration>
    But I end up with an Excel 2013 AppV package that:
    Doesn’t include the addins (no wonder because I didn’t sequenced it myself).
    All the 'first run wizards' popup at launch (Default File Type question & Welcome to your new Office). Normally I disable these with OCT for physical installations, or configure them while sequencing.
    Is there a way to disable the first run wizards in the “setup.exe /configure” step? And can I add Excel Addins during package creation? Or need I script this within the DeploymentConfig.xml/UserConfig.xml with a .reg import for example?
    Thanks,
    Ben

    Hello,
    We need two native Excel 2013 Addins: PowerPivot and PowerView. Since Office 2010 is installed locally on all client machines I would like to virtualize Excel 2013 (Click to Run) with these two addins. Licensing is no issue because an
    Office 365 subscription will be purchased.
    So, I have successfully sequenced Excel 2013 with AppV 5.0 SP1 via the Office Deployment Tool. It all seems too easy:
    First download sources (setup.exe /download configuration.xml)
    Second configure sources (setup.exe <xml file>)
    Last create the AppV package (setup.exe /packager <xml> <path to save .appv package>)
    My Configuration.xml file looks like this:
    <Configuration>
    <Add SourcePath="\\serverr\share" OfficeClientEdition="32" >
    <Product ID="ExcelRetail">
    <Language ID="en-us" />
    </Product>
    </Add>
    <Display Level="None" AcceptEULA="TRUE" />
    <Logging Name="Office2013Setup.txt" Path="%temp%" />
    <Property Name="AUTOACTIVATE" Value="1" />
    </Configuration>
    But I end up with an Excel 2013 AppV package that:
    Doesn’t include the addins (no wonder because I didn’t sequenced it myself).
    All the 'first run wizards' popup at launch (Default File Type question & Welcome to your new Office). Normally I disable these with OCT for physical installations, or configure them while sequencing.
    Is there a way to disable the first run wizards in the “setup.exe /configure” step? And can I add Excel Addins during package creation? Or need I script this within the DeploymentConfig.xml/UserConfig.xml with a .reg import for example?
    Thanks,
    Ben
    You said you used the Office Toolkit? In this you can set Disable Opt-in Wizard on first run.
    Was this used when installing on the sequencing machine?
    Alternatively you could attempt to launch excel during the sequencing phase and go through those menu's to ensure they don't launch on first launch of the virtual Excel. I believe that shouldn't be a problem since.
    For the Add-in's, it seems like you know they weren't included or connected in any way, that's likely the issue with those.
    PLEASE MARK ANY ANSWERS TO HELP OTHERS Blog:
    rorymon.com Twitter: @Rorymon

  • Error Message While Running Sequence from Planning and/or SmartView

    Following error is thrown while running a sequence from either planning or smartview at a higher level.
    "*An error occurred while running the specified calc script. Check the log for details*"
    This is very weird because it does not happened with any of the following:
    1. Running same sequence from AAS at higher level
    2. Running at lower level entity either planning or smartview
    3. Running from Planning or smartview with split sequence at higher level
    4. Running each rule within the sequence from Planning or smartview
    What have we done?
    1. Checked every log file, Essbase, Planning, HBR - no error message is logged despite above statement.
    2. Recycled environment
    3. Stopped and restated DB and APP
    Other info:
    1. DB.log file is 1.2gb
    2. No meta data changes
    3. We could not able to replicate same in Q and Dev
    4. Looked at cache setting
    5. Sequence does not fail at the same place
    6. Recently updated calclockblockhigh to 15000 (restarted environment)
    Environment:
    Planning suite: 9.3.0.1 with 9.3.1 APS.
    We are going nuts and any feedback is greatly appreciated!
    Thanks!
    Edited by: venuramini on Jul 9, 2009 3:50 PM
    Added environment section.

    Hi,
    To start Planning as a foreground app, stop the Planning service and then go to Start - Programs - Hyperion Solutions - Hyperion Planning - Start Planning (Apache Tomcat).
    Thats if you are using Tomcat of course. A DOS window should then pop.
    What value did you enter for the HBR properties? Have you tried 960000 for both? Remember you need to restart the Planning services for changes to take effect.
    Have you tried increasing some of the properties in the HBRServer.properties under Hyperion\AnalyticAdministrationServices such as:
    HBR.timeout
    Try setting it to 30000
    The restart the AAS service for the changes to take effect.
    Hope this helps.
    Seb

  • Exchange value from a running sequence teststand and an independent vi LabView.

    I have a teststand sequence, which runs with a local variable.
    I want to read this local variable in a independent vi.
    Are you an Idea ?

    Sebus,
    I'm not sure what you mean by an "independent vi".
    If you have a VI that TestStand calls, the post entitled In TestStand, how to pass data to LabVIEW will probably be very helpful. In addition, there are Getting Started guides that explain this concept and with TestStand 3.0, there is a whole manual called "Using TestStand with LabVIEW" that walks you through step by step how to use TestStand and LabVIEW together.
    If you have a VI that executes your test, this VI would be considered an Operator Interface. For this situation, you can use the TestStand concept of UIMessages to pass data from your sequence to the operator interface. This is described in more detail in the TestStand help. UIMessages are a TestStand object that you can pass from your sequence to your operator interface. Since the engine actually executes the sequence, you do not have access to the internal sequence characteristics mid-execution. By using the UIMessages, you can have your sequence automatically send data, and then your Operator Interface will retrieve these messages.
    The third scenario is where your VI is not connected to TestStand at all. In this case, if you truly have no connection to TestStand, this is not possible. However, if there is a common shared application then you can use that to pass data. For instance, you could use Datasocket (see DataSocket Overview
    for a brief synopsis) and have TestStand pass the value of the local variable and have LabVIEW read from Datasocket. There is also an ActiveX server that TestStand has called the Synchronization server. This is used internally with the Synchronization step types. However, since it is based upon ActiveX you can use each of the methods and properties that are available; the functions just are not documented. You could use the queue synchronization type to pass data from TestStand to your independent LabVIEW VI.
    If this does not answer your question, please let us know and clarify what you mean by an independent VI. Also, the versions of TestStand and LabVIEW would be helpful.
    Regards,
    Shannon R
    Applications Engineer
    National Instruments

  • URGENT: Regaining Focus

    Hello everybody!
    To get some print screen functionality in Oracle Forms 9i (as the PRINT built-in has proved problematic), I have created a 'Print' button using the HTMLbeforeForm= parameter in formsweb.cfg.
    Works like a charm! But... how do I get the focus back to the exact item I was in prior to pressing the button? Currently, I have to click in the java console area to regain the cursor.
    Presumably, it's some Javascript?
    We're using Sun's JRE and IE 6.
    Many thanks

    Well I dont have a solution, but this is what I tried and the error that I received. Maybe this will lead you down a better path... I used IE and received this javascript debugging error. I was trying to give the first object tag in the HTML focus. I also tried obj[1] which would be the second object tag and the actual form.fmx. Didnt work. Maybe Im using the wrong HTML tag to get focus? If you view source from the browser you will see that there are two html "object" tags. There's not much else to give focus too? I am using webutiljini.htm.
    HTMLbeforeForm=<input Name="Press Me" value="Press Me" type=button onClick="var obj = document.getElementsByTagName('object'); obj[0].focus()"></input>
    The error message was..
    "Cant move focus to the control because the object is invisible, not enabled, or of a type that does not accept the focus."
    Im guessing that an object tag doesnt accept focus. :)

  • Having a real problem getting my vi to work - great difficulty running sequence as desired

    Hi
    I am have a real problem getting my vi to work as required.
    I would like the my vi (EXAMPLE.vi in the vi library attached) to run continuously.  It should update the graphs on the front pannel and also save data to file when requested using the  save data to file button. (I have written a sub vi. to deal with this data handling and file saving which run in two while loops with the vi as can be seen on inspection of the block diagram)
    Now, what I would like is for the updating to pause whenever I change any of the settings on the front panel (which are controls in the first half of the sequence of the vi) so the hardware is reset.  As it is at the moment I have to stop the vi to change the front panel settings and then restart it in order for the first part of the sequence to run and re-set the values on the hardware.
    I guess I need to use some kind of event driven programming an event stucture or something like that. This is quite advanced and I don't know how to implement it. 
    Can anybody offer any Ideas. 
    Many many thanks
    Ashley
    Attachments:
    test library.llb ‏470 KB

    Hi,
    If you are new to event structures then you may find the following tutorial useful:
    Event-Driven Programming in LabVIEW
    http://zone.ni.com/devzone/conceptd.nsf/webmain/E5F8474BDA20C97786256B5A0066968B?opendocument
    A powerful New Tool for UI Programming--User Interface Event Programming
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2a8ab43b28bbde1086256b830059875c
    Advanced Event Handling with LabVIEW 7 Express
    http://zone.ni.com/devzone/conceptd.nsf/webmain/aa79ff38336eb38886256d2b004aca49#1
    I hope this helps
    All the best
    Kurt

  • Regain focus on FormattedTextField when message displayed...

    Hello,
    I have a formatted text field that takes a mask formatter in the form of "####"
    People should fill in a number between 0-9999.
    However, when the focus is put on the next field (a radio button ic), I want to display a messagedialog saying "Please fill in the number" when nothing is filled in.
    So far, so good.
    NOW I would like the formatted textfield to automatically regain the focus after the user has pressed "OK" in the message dialog...
    I have tried putting a requestFocus() right after the messagedialog-code, but then it repeats the message dialog 3 times (requiring to click ok three times) and only then it puts the focus on the text field again...
    Any ideas to make sure the focus is regained after one click?
    (So basically I want to oblige the person to fill in the first field...(and some others!))
    Thank you

    This is the code:
    (don't pay attention to the messy coding rules...I suck at those...) (plus just beginning to program here...)
    public void jdesiredCalFormattedTextField_focusLost(java.awt.event.
    FocusEvent e)
    String cal=new String(jdesiredCalFormattedTextField.getText());
    cal=cal.trim();
    jdesiredCalFormattedTextField.setValue(cal);
    if (jdesiredCalFormattedTextField.getText().trim().length()==0)
    JOptionPane.showMessageDialog(
    null,
    "Gelieve gewenst aantal calorieen in te vullen.",
    "Calorieen foutief!",
    JOptionPane.ERROR_MESSAGE);
    jdesiredCalFormattedTextField.requestFocus();
    else
    jSchemeResultDesiredCalLabel.setText(cal);
    jDesiredResultsOverviewResCalLabel.setText(cal);
    so it checks whether the field is empty (trimmed length==0), if so, it gives the messagedialog, and after the messagedialog it requests focus again...
    Using Java 1.4.2_04
    thnx
    Wouter

  • Run sequence with base deployment engine

    I have a  basic Teststand 4.2.1 sequence file that takes some data measuremts and records the results to a file. This sequence runs fine onthe development system and now I want to deploy this to some other deployment workstations.  I can run the deployment utiility and create an installation package. The deployment installes on the deployment workstations and I can configure the teststand base deployment engine license.
    When I try to run my deployed sequence file, it always tries to run the full development version of teststand.  Since only the deployment version is licensed, I get stuck at prompt for the temporary 7 day evaluation. If I remove the teststand development evaluation licence, the sequect fails to run saying there is no license available.
    How do I set my sequence to run under the base deployment engine license.  I don't have any fancy custom interfaces.  I just want the default teststand interface to run the sequence file in read only, no editing mode. 

    Hi glsimpson,
    You won't be able to use TestStand Sequence Editor to run your sequences.  You can use one of our pre-built UIs that installs with TestStand.  Please see Chapter 14 of the TestStand reference manual.  This has several examples of Deploying TestStand system.  Also you can take a look here for more information on TestStand licensing.
    Cheers,

Maybe you are looking for

  • Date Conversion in XSQL

    I'm trying to get the year out of a date column: If I try: ResultSet rset = stmt.executeQuery("select to_char(MFG_YR, 'YYYY') from " + tableName); I get and error: <?xml version="1.0" ?> <ERROR>oracle.xml.sql.OracleXMLSQLException: invalid character

  • Multiple consumers of the same Queue

    In the past my use of JMS queues has been limited to a single message producer and a single consumer. I am now looking at having multiple copies of the same consumer running for load balancing and failover purposes, and this leads me to what I think

  • Safari hangs and goes blank on my ipad

    when i go to any bookmark or type in a www it hangs for a few seconds then shows a blank page? tried rebooting and removing from tool bar, help please

  • Pantone 2196 C how to convert to CMYK it is not in CS6

    Pantone 2196 C how to convert to CMYK it is not in CS6

  • Combing two DVD Studio Pro projects?

    Hi, How do I combine two DVD Studio projects? I have two short projects, and each has some complicated track edits and subtitles etc that I really don't want to re-do by hand. Isn't there some way to copy and paste between projects or otherwise combi