Best way in LabVIEW to check if TS execution is complete

I was wondering if anyone had some thoughts on this.
What is the best way in LabVIEW to check if a TestStand Execution is complete.  I am currently starting a New Execution in a previous state using the 'Engine->New Execution' method.  Then in my state shown in the attachment, I simply wait in a loop until the execution is Stopped using Execution->Get States.
I have also noticed the function called 'Execution->WaitForEndEx' but the help documentation indicates:
" This method is not meant to be used by a user interface or sequence editor, as it does not process UIMessages. Instead, use this method from a step to synchronize with another execution."
Is WaitForEndEx a better method or should I stay with the current implementation?
Thanks,
Paul Holzrichter
Attachments:
Execution Complete.JPG ‏63 KB

Hi Paul.
You could also use the Application Manager's "EndExecution" event.
This would prevent you from staying in a loop and waiting for the execution to complete.
Regards, Guenter

Similar Messages

  • What is best way/proced​ure to check for s10-3/Leno​vo updates?

    What is the best way to get Lenovo updates/drivers..ect for my new s10-3.  Thanks, Bill
    Solved!
    Go to Solution.

    Hi take a look   here from time to time
    regards KalvinKlein
    Thinkies 2x X200s/X301 8GB 256GB SSD @ Win 7 64
    Ideas Centre A520 ,Yoga 2 256GB SSD,Yoga 2 tablet @ Win 8.1

  • What is the best way to recycle 2010 MacBook? Also, it is completely dead and cannot erase hard drive.

    What is the best way to recycle old 2010 MacBook?  Also, it is completely dead and I cannot erase hard drive.

    Depending on where you are located, country, region, etc, you may have options should
    you wish to have it professionally restored or repaired to function properly again...
    Even an Apple Store with Genius bar could, in several locations, give the product a look
    and perhaps be able to diagnose the underlying issues. However that varies with the
    degree of failed components and what is really wrong with it. A battery and a new HDD
    could be all that's wrong with it. A diagnostic is often free, even on out-of-warranty Mac
    at the Apple Store genius bar; an appointment is advised.
    However if you only wanted someone to extract the hard disk drive and attach it to
    a 'universal USB drive adapter kit' so at to try and access any readable files on it,
    that is something that could be done at an Apple Authorized service provider; as
    some of them may even have a section of resale products such as this adapter kit.
    An example of this kind of kit includes wires, adapter parts, & a separate power supply
    so it can be used to run the hard drive's electronics. This is not intended for permanent
    use, but works like a set of patch cables to access the bare drive without an enclosure.
    https://www.ifixit.com/Store/Mac/Universal-Drive-Adapter/IF107-108-1
    Another kit example says it'd work with almost any HDD or SSD of several build types:
    http://eshop.macsales.com/item/NewerTech/U3NVSPATA/
    Companies that specialize in restoring Apple portable computers can give you an estimate
    on a repair and the good ones can do that without a fee; they will not start a repair after they
    see the computer until you get the estimate, and approve of the repair. If other items are
    found to be of interest requiring other work or parts, they will also contact you, again before
    continuing. One of these kinds of companies I know about (half a hemisphere away) is in
    the eastern US, and worth inquiring of even if you are overseas. wegenermedia.com.
    While I have no connection with any of these products or service suggestions, they do have
    some variety of good reputation (ifixit.com has DIY repair guides; macsales has parts, etc.)
    in standing, among many Mac users across a section of the planet...
    Any concerns about the data on the hard disk drive should be able to be answered by a
    local Apple independent; they also should have the universal USB drive adapter locally.
    Not sure if I answered your inquiry, but there are different ways of approaching this matter.
    Good luck & happy computing!
    edited

  • Best way to store and check a NodeList

    Hi,
    I hope that this makes sense. In my code below, I have to, and ignoring the first one, check if the XPATH expressions are equal in first and second TSTs and second and third and so on & if they are not equal - I issue the ticket. But I don't know a way of storing the previous TSTs before it goes into the next iteration of the loop.
    However I'm wondering if I'm going about it the correct manner.
        public boolean isFsiRequired(String xml) throws SITAFrameworkException, XPathExpressionException {
             boolean returnValue = false;
            // need to check that the Airline, Flight, Dep date and From/To City values,
             NodeList airLineExp = XMLUtils.queryXML(xml, "//MarketingAirline/Code");
             NodeList flightExp = XMLUtils.queryXML(xml, "//FlightNumber");
             NodeList departDateExp = XMLUtils.queryXML(xml, "//DepartureDateTime");
             NodeList fromCityExp = XMLUtils.queryXML(xml, "//DepartureAirport");
             NodeList toCityExp = XMLUtils.queryXML(xml, "//ArrivalAirport");
             System.err.println("returning returnValue == "+returnValue);
             return returnValue;
        // method is called from here
        for ( int i=0; i< totalTstCount; i++){
           if ( i == 0) {
                System.err.println("Issuing first FSI.....");
                response = sitaIssue.issueFsi(response);
           else if ( (i > 0) && (sitaIssue.isFsiRequired(command))) {                                    
                       System.err.println("Issuing another FSI.....");
                   response = sitaIssue.issueFsi(response);
           else {
                       System.err.println("TSTs are equal, won't be issuing another FSI.....");
         }

    I agree with Frank - for just 5 lines, simple text is probably sufficient.
    However, if the point is just to pass data between two AppleScripts you could even use native AppleScript objects - for example, you could write the list (array) to the file and then read it back in directly, e.g:
    Write the data:
    -- create a list of any types:
    set myList to {"a string", 3.14159, "foo", {name:"Joe", age:21}}
    -- create a file
    set f to open for access (choose file name) with write permission
    -- write your (binary) data to it
    write myList to f
    -- and close the file
    close access f
    Now, separately, you can read it back:
    set x to read (choose file) as list

  • What is the best way I should restore or start over after a complete meltdown and loss of files?

    In May I moved all of my itunes content (movies, music, podcasts, app, books) to a networked attached storage device.  Long story short, recently I had problems with some content missing/being deleted.  Lacie, the hard drive mfg, told me the public share had become corrupted and I needed to delete it and start over.  Last night I appeared to have had a complete meltdown with the loss of most of my files, over 500gb of stuff.
    Luckily it's backed up (but one backup is now about 2 weeks old) and it's going to take about 2 days to restore.  I have it restoring to my desktop folder on my imac.  I'm concerned about all of the itunes library folders and stuff that are out there.  I'd ultimately like to get it restored back to the external hard drive.
    What is the best method?  I'm restoring just the content, not the various library files.  Should I uninstall Itunes and re-install it to try to start fresh, or just re-add the content?  
    I've already wasted a lot of time on this and I'm just looking to avoid more problems.  Any suggestions?
    Thanks.

    Anyone help with this?  
    I am restoring over 500gb to my local drive after a NAS was corrupted.  I'm very hesitant about putting stuff back out on the network drive again so i guess I may keep it on my local hard drive.  Currently, when I open itunes it has all of my old files remembered (just with exclamation points) and my playlists.  I'd love to keep that intact but point itunes to the correct files in a new location.
    Is it as simple as going to preferences and changing the location of the itunes folder once I have it in place?

  • Best way to work with large file?

    Ok I have a huge file (200mb) that is all sequenes of numbers separate by commas. I wish to know if a specific sequence exists in this file. What is the best way of doing that check? I cant load the whole file into a StringBuffer since it is too large.

    Well, it's not necessarily too large. You might be able to load it all into memory at once.
    But you're right. It's not a good idea.
    What you can do is use a StreamTokenizer set to split on commas.
    Conceptually, you need to have a simple state machine that keeps track of how many consecutive numbers from that sequence you've read. As soon as you hit a number that's not the next one in the sequence, you reset to the beginning of the sequence.
    It's not hard to write it yourself, but there might be a simpler way--one of the IO classes or regex classes might have something for processing a stream that way.

  • Ways to perform activation check on BI7 objects

    Hi all,
    what could be the best way to perform activation checks for Infoobjects, Hierarchies, Flexible Update, ODS, infoCube, Multiproviders, Update Rules, Infosources and Source System( in BI7)
    regards
    sagar

    hi,
    you can chk the active objects in the meta data repository...
    Sriram.

  • What is the best way to add external C++ code to LabView 6.1?

    I have various C++ class-based DLL's written with Visual Studio 6.0 and wish
    to create instances of these C++ classes and call their methods in LabView
    6.1. What is the best way to do this?
    It seems based on the little reading I have done that there are two choices:
    1. Wrap the C++ class as a simple COM control and use LabView's COM based
    VIs to create a COM object and access the methods of various interfaces.
    2. Wrap the C++ class methods as C functions and a "constructor" and
    "destructor" C function to create and destroy an instance of the class. Then
    use LabView's DLL call support.
    Which is best? What direction is LabView going to take that better supports
    the notion of C++ class libraries?
    Thanks,
    Te
    rry

    You could also try using a CIN. This is a tool that LabVIEW provides for interfacing with external code.
    The CINTools libraries of LabVIEW allow you to embed compiled C code into a particular Virtual Instrument (VI) using a CIN.
    In order for LabVIEW to be capable of calling compiled functions of C from a running VI, the code must be loaded and unloaded into memory at the same time as the VI code itself. LabVIEW uses object code in the form of a .lsb file which is generated by the C compiler from the C source code using the ntlvsbm.mak file. This ntlvsbm.mak file is included in the CINtools directory in the LabVIEW folder. You also must create another .mak file which includes parameter definitions for the ntlvsbm.mak file and also includes a call to the LabVIEW .mak file.
    The generic documentation for CINs only explains how to use them to call C compiled code from a LabVIEW VI. It shows several development environments such as Visual C++, but in essence it only allows the user to create .lsb files out of plain C source code ( .c ) through C compilers on those environments.
    The question now is how can I create .lsb files from C++ native source code using a C++ compiler. Furthermore, how can I create a .lsb file from several C++ source code files (.cpp) and make calls to C++ functions from a VI using CINs? The following explains how to do this:
    1) Drop a Code Interface Node (from the Advanced Subpalette of the Functions Palette) into the LabVIEW VI. Make sure to wire the inputs.
    2) Right-click on the CIN and choose "Create.c File...", then in the file dialog box specify a "name.cpp" file name. (very important: use .cpp extension)
    3) Then create a name.mak makefile (text file) and add the following lines :
    name=name_of_cpp_file_without_the_extension
    type=CIN
    cinlibraries=Kernel32.lib
    CINTOOLSDIR=path_to_cintools_directory
    !include <$(CINTOOLSDIR)\ntlvsb.mak>
    4) Go into Visual C++ and File>Open and open the .mak file. You can even Add the name.cpp file to the project to make it easier to edit. Select that name.cpp or open it as a text file in NotePad or and edit the prototypes of the CIN MgErr functions as shown below, adding extern "C" at the beginning of the line. extern "C" CIN MgErr CINRun(float64 *INPUT);3) Select Build.exe to create the "name.lsb" file. To import the .lsb into LabVIEW, right-click on the CIN and choose "Load Code Resource...". Then, choose the name.lsb file and it is ready to run!
    If you want to use several C++ source code files with .cpp extensions, then compile them in Visual C++ and link them to name.cpp and create a .lsb by modifying the name.mak as follows:
    name=name_of_cpp_file_without_the_extension
    otherobj=other_cpp_files_BUT_USING_.obj_extension
    type=CIN
    cinlibraries=Kernel32.lib
    CINTOOLSDIR=path_to_cintools_directory
    !include <$(CINTOOLSDIR)\ntlvsbm.mak>
    It's worth a try? I have also heard of using clusters to represent classes, so you could check that out.
    J.R. Allen

  • Best way to implement this code in labview

    Hi
    What is the best way to implement this code in labview programming.
    I have an analogue input which triggers a boolean light when it reaches a certain voltage. but at the same time i would like it to enable two other outputs one for a set period of time and the other stay on until another statement becomes true.
    For example
    case 1:
    Set output high
    Delay(2000ms)
    Set output low
    Case 2:
    Set output high
    If statement 2 is true
    then set out put low
    if not then repeat until statement is true
    Thanks for your help

    Hi David,
    The code you posted will work, although note that the front panel becomes 'unresponsive' - as changes in the controls are only read once per iteration.  The wait function is an example of an execution timing VI, however if we want to do software timing (like a 2 hour wait) - we should use software timing VIs.
    Check out the following example (note we can stop execution during run-time):
    Regards,
    Peter D
    Attachments:
    SoftwareTiming.vi ‏26 KB

  • What's the best way to check whether a user is logged in or not?

    I have a question about basic session handling.
    I'm running Tomcat 5.0.30 and have a web application where users can register with a username and password, and then log into a "member site".
    What is the best way of making sure that a user actually has logged in or not?
    What I've done in previous applications I've made is that I've just put a simple variable into the users session after he has successfully entered his password (i.e. Boolean loggedIn=true). Then I just test if this flag is true to grant him access to the member site. Is that a smart way of doing it?
    Are there any libraries I can use which handles sessions for me in a secure way?
    All comments and suggestions are appreciated!

    Maintain a flag using session attributes it to one when the user is logs in set it to value.... and change set it zero or invalidate that session... when the user is logged out...
    use something like this while user had logged in
    session.setAttribute("flag",<unique_number>);
    for checking whether the user had logged in or not...
    if(Integer.parseInt(session.getAttribute("flag").toString())=!<unique_number>){
    out.println("The session had expired");
    out.close();
    }

  • What is the best way to stack DAQ aquired data in labview?

    I'm developing an application to work with an M-series daq card and labview 8.5 to output a signal and then record on 8 differential inputs for a short period of time (~10 ms). I need to stack my data, however, because the incoming signal will be very, very small, even after amplification. So basically i'm running a slightly modified version of the multifunction Synch AI-AO.vi (included with the install of daqmx). What is the best way for me to rerun this vi a set number of times and add new data directly to the old data (not cat-ing or anything, like |sample 1 of run 1| + |sample 1 of run 2| = stacked stample 1).
    A slightly modified version of the mutlifunction synch AI-AO.vi is attached.
    Attachments:
    des_v2_Multi-Function-Synch AI-AO.vi ‏143 KB

    Hi LSU,
    see attachment on how to "stack" several measurements. I simply add the waveforms and use a shift register to keep the last iterations value.
    Writing to files in each iteration is extremly CPU consuming - especially with express vis. Using for loops for just one iteration is "senseless". You could enable the conditional terminal of the for loop to realize your stop feature.
    For your message 4:
    Have you ever tried all the things you asked for? Sometimes it's easiest to just try&error
    And for the "n=n+x" question: It really helps to take the free online courses offered by NI!
    Message Edited by GerdW on 11-11-2009 06:27 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    des_v2_Multi-Function-Synch AI-AO.vi ‏128 KB

  • What is the best way to connect PumpWorks to Labview? DDE or OPC

    What is the best way to connect quizix PumpWorks to labview?
    PumpWorks share data using Dynamic Data Exchange (DDE),what is the best way? To use an OPC Server betwen labveiw and pumpworks or  DDE?
    Solved!
    Go to Solution.

    Hi.
    If the instrumet can communicate with an OPC server I think both methods are fairly equal.
    There is a chance that you might have to reinstall LabVIEW without OPC server if you choose DDE, as it is known that it might conflict with the DDE server.
    http://zone.ni.com/devzone/cda/tut/p/id/4531
    http://zone.ni.com/devzone/cda/tut/p/id/7450
    -Tom

  • Best way to create a Windows service from a LabVIEW executable​?

    What would be the best way to run a LabVIEW executable as a service? I needed this recently and I think I have set up such a service using srvany.exe from the Windows 2003 Resource Kit, but that seems like a bit of a hack. The Kit is not offically supported in Server 2008, but seems to work. I don't know about Server 2012 or beyond.
    So what would be the "proper" way of going about creating a Windows service from a headless LabVIEW application?

    The proper way is to interface to the according Windows service control API. That is however not a trivial task to do. We used to sell a LabVIEW toolkit which supported a full interface to this, but it's not currently actively marketed.
    srvany.exe is sort of a hack but works reasonably well for most use cases, as long as you do not need any further interaction with the service manager interface in Windows than to start and stop your service.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Best way to distribute LabVIEW Instruments Drivers.

    Hello,
    I'm trying to stick to the standards described just there:
    Developing LabVIEW Plug and Play Instrument Drivers
    Instrument Driver Development Tools and Resources
    Instrument Driver Guidelines
    However, I cannot see clearly what is the best way to distribute the LabVIEW Instruments Drivers, except that I need to be compliant with those standards to be on the IDNET (Instrument Drivers Network).
    Here is a couple of questions I'm not really sure about their answers:
    Is it okay to use a .NET dll and to make some calls?
    Is it fine to hide the Block Diagram? With passwords in the Drivers
    Can we put prevent the modification
    In my situation several devices (or let's say modules can controlled through one communication medium), so basically I might have one instrument drivers for several things.,,
    May I use some OOD? In order to control the equipment with methods and set some properties and encapsulate the communication stuff in classes, some equipments could be consider are inherited from others (more recent for instance), or this is totally prohibited by the guidelines above?
    What is the most suitable Specification Build type: Packet Library or other? If packed library, how to handle the early version created issue when opening the lib with newer version of LabVIEW then?
    How to deal with the copyright thing, do I need to copy and paste the copyright on both the Front Panel and on the Block Diagram?
    Is this copyright enough: "Copyright (c) <Company Name>. All rights reserved"?
    Solved!
    Go to Solution.

    Ehouarn wrote:
    Hello,
    I'm trying to stick to the standards described just there:
    Developing LabVIEW Plug and Play Instrument Drivers
    Instrument Driver Development Tools and Resources
    Instrument Driver Guidelines
    However, I cannot see clearly what is the best way to distribute the LabVIEW Instruments Drivers, except that I need to be compliant with those standards to be on the IDNET (Instrument Drivers Network).
    Here is a couple of questions I'm not really sure about their answers:
    Is it okay to use a .NET dll and to make some calls?
    Is it fine to hide the Block Diagram? With passwords in the Drivers
    Can we put prevent the modification
    In my situation several devices (or let's say modules can controlled through one communication medium), so basically I might have one instrument drivers for several things.,,
    May I use some OOD? In order to control the equipment with methods and set some properties and encapsulate the communication stuff in classes, some equipments could be consider are inherited from others (more recent for instance), or this is totally prohibited by the guidelines above?
    What is the most suitable Specification Build type: Packet Library or other? If packed library, how to handle the early version created issue when opening the lib with newer version of LabVIEW then?
    How to deal with the copyright thing, do I need to copy and paste the copyright on both the Front Panel and on the Block Diagram?
    Is this copyright enough: "Copyright (c) <Company Name>. All rights reserved"?
    Not sure about 1) but 2) and 3) are definitely a no go if you want your library to be distributable through the ID network. The standard only allows for DLLs in that  are really developed in C but would require you to also distribute the C code as far as I understand.
    OOP may not be a problem.
    Packed Library is definitely not something you want to do. They only work in the LabVIEW version in which they were created. You will hate the moment you decided to go with packed libraries as requests come in for other LabVIEW versions and your drivers are bashed on all discussion forums as being a pain in the ass to use.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • What is the best way to organize LabVIEW VIs to be used with TestStand?

    I'm using LabVIEW 8.6 with TestStand 4.1.1 and I'm trying to organize the VIs to later deploy them to a production PC. So, I organized them into a LV project and built a LLB with the "Source Distribution Tool". (Destination type: LLB)
    Some VIs in the LLB use the "Call Library Function" (user32.dll) to simulate keyboard events. But, when any of these VIs is called from TS, LabVIEW is suddenly terminated. When these same VIs are not in the LLB and are called from TS they do not have any problem.
    Is the LLB the best way to organize VIs to be used with TestStand? If so, What could I be doing wrong?
    I appreciate your help.
    H.P.
    Mfg. Test Engineer
    Certified LabVIEW Associate Developer
    Attachments:
    LabVIEW Problem.JPG ‏28 KB

    Hi Ray,
    I really appreciate your intention to help, but I believe I solved the problem already. However I still have some questions.
    The problem was that when I built the LLB the configuration of the "Call Library Function" changed. When the LLB is built it is also created a Support Directory named "data" that contains some dependencies including a new copy of the user32.dll. The "Library name or path" field in the "Call Library Function" changed to be linked to a new Dependency Path. ( ...\data\user32.dll.)
    What I did was select "Specify path on diagram" and create a path-constant ("C:\WINDOWS\system32\user32.dll"), so the "Call Library Function" will be always linked to the original user32.dll.
    I still don't know why the "Call Library Function doesn't work with the user32.dll copy in the New Dependency Path. And I'm not sure if the LLB is the best way to organize VIs to be used with TestStand.
    Do you know why?
    Thank you,
    H.P.
    Mfg. Test Engineer
    Certified LabVIEW Associate Developer

Maybe you are looking for

  • Can anyone help me, please

    Hello again: Please run my coding first, and get some view from my coding. I want to add a table(it is from TableRenderDemo) to a JFrame when I click on the button(from DrawCalendar) of the numer 20, and I want the table disply under the buttons(from

  • Not able to close asset fiscal yearar

    Hi, Not able to close fiscal year in asset accounting for multiple company codes. In OAAQ asset closed year is 2010 at company code level but in OAAR for depreciation areas there are different closed fiscal years for the same company code. For deprec

  • DMS: AutoCAD Document if checkout for editing doesn't chkin if layer notsee

    Dear All, We are having a problem with autoCAD drawings on which if some one as put some redllining layers & if u chkout the drawing without seeing the layers, the drawing doesnot checkin since the drawing is saved in temp directary but since the lay

  • How to set user settings insap

    how to set default settings

  • Too many open files in system cause database goes down

    Hello experts I am very worry because of the following problems. I really hope you can help me. some server features OS: Suse Linux Enterprise 10 RAM: 32 GB CPU: intel QUAD-CORE DB: There is 3 instances RAC databases (version 11.1.0.7) in the same ho