Synchronization of sequence execution with UIMessage handling

We are using TestStand 4.0 with SequentialModel and custom Operator Interface.
Operator Interface provides UIMsg_UserMessageBase handler for displaying log messages.
When posting (asynchronous) significant number of messages from within test module, TestStand engine blocks sequence execution until handling all incoming messages.
For example, test module perform
"PostUIMessageEx(UIMsg_UserMessageBase, 0, "Message", 0, VARIANT_FALSE);" call 1000 times.
After test module code is completed execution, execution of next test is blocked for tens seconds until all posted messages are being displayed by Operator Interface.
As a result total time of sequence execution increased dramatically.
How this issue can be solved?
Thanks,
Misha

Hi Misha,
If you post asynchronous UI messages faster than your OI is handling
them, the messages are stored in a queue that is first-in, first-out
(FIFO).  An execution ends when the EndExecution UI Message is handled.
Because you are posting UI Messages asynchronously, the EndExecution UI
Message is being stored in the queue. This is why you experience this
behavior.
I have two suggestions for you:
1. Use synchronous messages. 
This will prevent the queue from growing.  The speed at which your
messages are handled by the operator interface (OI) will be an effect
of the OI's efficiency. 
You can learn more about asynchronous vs. synchronous messages in the TestStand help for the PostUIMessageEx:
http://zone.ni.com/reference/en-XX/help/370052G-01/tsapiref/reftopics/thread_postuimessageex_m/
This is the same Help documentation that came with the TestStand software. 
2. Post fewer messages
To quote the help file mentioned above in reference to the synchronous
parameter, "If you pass False and post messages faster than the user
interface processes messages, the number of messages in the queue the
user interface must handle grows unbounded and floods the user
interface with messages, which causes the user interface to become
unresponsive."
Regards,
Mark E.
Applications Engineer
National Instruments 
Mark E.
National Instruments
Schedule a Free 1-Hour online LabVIEW Tutorial with an NI Applications Engineer

Similar Messages

  • Non-blocking execution with Pro*C/C++

    Hi readers,
    Is there any mechanism available through which Non-blocking execution with Pro*C/C++?
    I observe that Pro*C queries are hanged when the DB server (hardware) is down.
    I understand that OCI provides non-blocking mechanisms. Pro*C doesn't use this OCI functionality?
    Regards,
    RajaGopal Maddi

    You can use TAF to handle your db down scenario.
    http://www.oracle.com/technetwork/database/app-failover-oracle-database-11g-173323.pdf

  • How to synchronize the FieldPoint time with my computer time?

    When I using MAX to read the values from my FieldPoint cFP-1804 module, there is and timestamp generated for every measurement, but it does not match my PC's system time. How to synchronize the FieldPoint time with my windows PC?
    I found a thread on the forum regarding this problem (http://digital.ni.com/public.nsf/allkb/C4E56AD6450FC5FD86256DFF0007FF01), it ask me to select the Time Zone on the System Setting tab, but I didn't find any System Setting tab and Time Zone setting in my MAX screen. (MAX version4.4)
    I'm using the cFP-1804 without embedded CPU module, I'm using asp.net, measurement studio to link with the cFP-1804, not by using Labview. Does cFP-1804 have a Time Server function? Please tell me how to match the FieldPoint time with my PC. 
    Thanks

    Hi Presario2100,
    In order to obtain an updated timestamp with each FieldPoint Read, you should
    use a Flat Sequence structure.  In the same frame as the
    FieldPoint Read, use a Get Date/Time In
    Seconds node.
    The program obtains a fresh Timestamp each time the FieldPoint Read VI is
    called.
    I hope this helps.
    Message Edited by Pie56694 on 08-15-2008 05:58 PM
    Attachments:
    TSUpdates.jpg ‏38 KB
    FlatSequence.jpg ‏54 KB

  • Can not see the option Execution with Data Change in the infoprovider?

    Hi team,
    i am using query designer 3.x, when i go into my bex brodcaster settings and schedule my report
    i can not see the option "Execution with Data Change in the infoprovider",
    i can only see 2 options
    Direct scheduling in background process
    create new scheduling
    periodic,
    is there any setting which i would be able to see the option "Execution with Data Change in the infoprovider"?
    kindly assist

    Hi Blusky ,
    check the below given link.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/ec/0d0e405c538f5ce10000000a155106/frameset.htm
    Regards,
    Rohit Garg

  • Problem with event handling

    Hello all,
    I have a problem with event handling. I have two buttons in my GUI application with the same name.They are instance variables of two different objects of the same class and are put together in the one GUI.And their actionlisteners are registered with the same GUI. How can I differentiate between these two buttons?
    To be more eloborate here is a basic definition of my classes
    class SystemPanel{
             SystemPanel(FTP ftp){ app = ftp};
             FTP app;
             private JButton b = new JButton("ChgDir");
            b.addActionListener(app);
    class FTP extends JFrame implements ActionListener{
               SystemPanel rem = new SystemPanel(this);
               SystemPanel loc = new SystemPanel(this);
               FTP(){
                       add(rem);
                       add(loc);
                       pack();
                       show();
           void actionPerformed(ActionEvent evt){
            /*HOW WILL I BE ABLE TO KNOW WHICH BUTTON WAS PRESSED AS THEY
               BOTH HAVE SAME ID AND getSouce() ?
               In this case..it if was from rem or loc ?
    }  It would be really helpful if anyone could help me in this regard..
    Thanks
    Hari Vigensh

    Hi levi,
    Thankx..
    I solved the problem ..using same concept but in a different way..
    One thing i wanted to make clear is that the two buttons are in the SAME CLASS and i am forming 2 different objects of the SAME class and then putting them in a GUI.THERE IS NO b and C. there is just two instances of b which belong to the SAME CLASS..
    So the code
    private JButton b = new JButton("ChgDir");
    b.setActionCommand ("1");
    wont work as both the instances would have the label "ChgDir" and have setActionCommand set to 1!!!!
    Actually I have an array of buttons..So I solved the prob by writting a function caled setActionCmdRemote that would just set the action commands of one object of the class differently ..here is the code
    public void setActionCommandsRemote()
         for(int i = 0 ; i <cmdButtons.length ; i++)
         cmdButtons.setActionCommand((cmdButtons[i].getText())+"Rem");
    This just adds "rem" to the existing Actioncommand and i check it as folows in my actionperformed method
         if(button.getActionCommand().equals("DeleteRem") )          
                        deleteFileRemote();
          else if(button.getActionCommand().equals("Delete") )
                     deleteFileLocal();Anyway thanx a milion for your help..this was my first posting and I was glad to get a prompt reply!!!

  • How can i synchronize my outlook 2011 with icloud

    Hi there,
    I've just been googling a lot, but didn't find a answer to my question, just people who find the same problem actually. I was wondering if anyone could save this puzzle yet:
    After some tests I learned, that mac—when you first activate your iCloud—uses two different contact and calendar sources: the local and the one exported to the cloud. So as for my office solution I need a three step synchronization. I work with Outlook 2011 and use this calendar, and also quite frequently my calendar on my iphone. So of course I would want them synchronized as much as possible.
    What my mac does: synchronizes phone and mac calendar perfectly, not the Outlook calendar though. As I saw in the Outlook preferences, Outlook is only connected to the local calendar. Therefor all events disappear when I cleaned out my mac calendar of double events (local and iCloud appeared there).
    How can I get my Outlook to take the iCloud calendar as main source?
    I also faced that problem in my mac adressbook (which synchronizes with Oultook): there I do have double contacts too, since you can't deactivate the local contact account.
    Not good :-( I'd be very happy if someone had some anwers.
    Thanks a lot in advance.

    Welcome to the Apple community.
    Outlook is not compatible with iCloud, you should change your contacts and calendars to iCal and address book.

  • On the moment that I connect the Iphone 5 on Windows 8, it is not recognized by Itunes, but actually it appears as a usual USB cable, or as a camera. And then I can't synchronize the Iphone 5 with Itunes. So, what do i do?

    On the moment that I connect the Iphone 5 on Windows 8, it is not recognized by Itunes, but actually it appears as a usual USB cable, or as a camera. And then I can't synchronize the Iphone 5 with Itunes. So, what do i do?

    Hi pedro109,
    If your iPhone is recognized by the computer, but not seen by iTunes, you may need to restart the Apple Mobile Device Service, as described in this article -
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    Once iTunes recognizes the iPhone you should be able to sync it with iTunes. See this article
    iTunes 11 for Windows: Sync contacts, calendars, and other info with iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12317
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Problem with Intrastat handling (MEIS)

    Dear SCN Members,
    we have a problem with Intrastat handling:
    Our company is in Great Britain (example VAT-No. GB123456789)
    We have a vendor in Switzerland (no EU VAT-No.), who has a fiscal representative in Belgium (example VAT-No. BE1234567890).
    Both have a separate vendor number (swiss vendor: 23176, belgian vendor: 33179).
    We created a partner "WL" (Goods Supplier) in the vendor master data of the swiss vendor and assigend the belgian vendor number. The swiss vendor master data has nothing filled in the "VAT Reg. No." field (LFA1-STCEG) of the vendor master data. The belgian vendor number has the belgian VAT-No. filled in the "VAT Reg. No." field (LFA1-STCEG) of the vendor master data.
    The partner "WL" is automatically taken into the purchase order header partners and is also taken into account for the goods receipt posting.
    After I have posted the vendor invoice, the line is shown in transaction MEIS, but the incompletion log is always showing message no. EIP029:
    The system did not find the VAT registration number of vendor 23176.
    In my opinion, the VAT no. of the fiscal representative (BE1234567890) should be taken into account for the Intrastat reporting, as the swiss vendor has no VAT number. We have not yet managed to get the belgian VAT into the Intrastat report.
    Could you please clarify. Thanks in advance for your help!

    Hi,
       Please refer the KBA: 1988909 - MEIS: Error EIP 029 "The system did not find the VAT registration number of vendor The reason and the solution is well explained in the KBA. You may change the configuration as explained in the KBA and test again.
    Regards,
    AKPT

  • CL_BSP_UTILITY DOWNLOAD with delta handling

    Hi Experts,
    I use the method cl_bsp_utility=>download in the do_handle_event of a subcontroller.
    For the main controller delta handling is swiched on. (In this download method the navigation->complete is executed)
    After the do_handle_event of the subcontroller the method CL_BSP_CTRL_ADAPTER->do_request is executed. In this method some javascript coding will be append to my response data:
    parent.bspDH_newDelta("864D5C4A1F20A60FE1000000AC13AA25");
    parent.bspDH_newDeltaLoaded();
    It cones from the following statement:
    Tail part of delta handling
    IF delta_handling IS NOT INITIAL.
       mdelta_handler->PAGE_END(  ).
    ENDIF.
    The outcome is that it's not possible to open my downloaded files. Only txt files can be opened but with the javasript code in it...
    Any ideas? or is it in general not possible to use the download function together with delta handling?
    Thanks, Markus
    Edited by: Markus Doell on Jul 14, 2009 1:42 PM

    Hi,
    Try the below code in place of the cl_bsp_utility=>download.
    DATA:  L_APP_TYPE  TYPE STRING,
             L_FILENAME  TYPE STRING,
             L_XSTRING   TYPE XSTRING,    "needed for HTTP response
             L_XLEN       TYPE I.
    * Setting Content Type
      MOVE 'application/msexcel' TO L_APP_TYPE.
      MOVE 'attachment; filename=webforms.xls' TO L_FILENAME.
      CLEAR L_XSTRING.
      L_XSTRING = V_XSTRING. " Here you can directly pass your XSTRING
    * Fill HTTP request
      RESPONSE->SET_HEADER_FIELD( NAME  = 'content-type'
                                  VALUE = L_APP_TYPE ).
      RESPONSE->DELETE_HEADER_FIELD(
                          NAME = IF_HTTP_HEADER_FIELDS=>CACHE_CONTROL ).
      RESPONSE->DELETE_HEADER_FIELD(
                          NAME = IF_HTTP_HEADER_FIELDS=>EXPIRES ).
      RESPONSE->DELETE_HEADER_FIELD(
                          NAME = IF_HTTP_HEADER_FIELDS=>PRAGMA ).
      RESPONSE->SET_HEADER_FIELD(
                           NAME  = 'content-disposition'
                           VALUE = L_FILENAME ).
    * finally display XLS format in Browser
      L_XLEN = XSTRLEN( L_XSTRING ).
      RESPONSE->SET_DATA( DATA   = L_XSTRING
                          LENGTH = L_XLEN ).
      NAVIGATION->RESPONSE_COMPLETE( ).
    I have used it one of my program and it worked.
    Thanks,
    Sreekanth

  • [svn:osmf:] 13806: Fix a bug with the handling of drm metadata/ additional header

    Revision: 13806
    Revision: 13806
    Author:   [email protected]
    Date:     2010-01-27 10:00:06 -0800 (Wed, 27 Jan 2010)
    Log Message:
    Fix a bug with the handling of drm metadata/additional header
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as

    (Removed)

  • How to work with commit handling

    Dear All,
    an ADF Face page(jspx) calls a JSP page, which open a document in a browser window, in the same application. i wanna work with commit handling on the save button so that jsp page gets called ONLY if the commit succeeds jspx page(a ‘Transaction completed’ message (JHS-00100) is recieved). NOT if recieving a ‘No changes to save message’ (JHS-00101) or any other error message. could someone tell me how to implement it?
    regards
    Jerry

    Hi,
    if working with ADF, you can create a operation binding for the commit operation. If you check if the commit operation in ADF is enabled then you should get false if there is no data to commit. So you don't have to wait for the message.
    Frank

  • I've got a new MacBookair11 2weeks ago and I am very happy with it. Today I've tried to synchronize it via icloud with my ipad and I have lost the camera. Looking through help in internet I found out that I had to reset the SMC. I did exactly as per instr

    I’ve got a new MacBookair11 2weeks ago and I am very happy with it. Today I’ve tried to synchronize it via icloud with my ipad and I have lost the camera.
    Looking through help in internet I found out that I had to reset the SMC. I did exactly as per instructions given but with no luck.
    Is there any other solutions that will fix my camera for facetime and iphoto?
    Thanks for your help 

    MacBook Air (Mid 2013): FaceTime HD Camera might not work after OS X 10.8.5 update:
    "Apple is investigating this issue."

  • Need Tcode for Synchronization of SAP Useradministration with an LDAP

    Hi Experts,
    i am configuring the SAPR/3 4.7EE server with an LDAPserver( OID Oracle Intranet Directory server) by using the tcodes SM59,LDAP.
    Now i Need the Tcode for Synchronization of SAP Useradministration with an LDAP
    when i clicked on the ServerNames tab on the screen with Tcode LDAP,
    i am not getting the Synchornization screen when i clicked on the Synchronization
    can anyone provide me the info where i have to do the Synchronization of SAP User Administration with an LDAP?
    Regds
    Phani

    Hi Olivier
    To be specific, we have an application(.Net) which uses SAP as backend and retrieves the data from SAP using RFC and BAPI's. Well everything works fine with SAP R/3(where using the connection string and SAPConnector we could establish connection and call the RFC/BAPI).
    When it comes to SAP ECC we have no idea about the connection string or how to connect using SAPConnector. I knew that ECC uses a secured connection so i want to know how to connect to SAP ECC using .Net Connnector.
    For the SSL could you tell me how exactly can we apply that to the above described situation?
    thanks
    sathish

  • Synchronize my ipad (ipad1) with iTunes (10.7)  new events appears

    now, when I synchronize my ipad (ipad1) with iTunes (10.7) in my mac (mountain lion) I have some events that I haven´t in iphoto , normally with few photos thatit´s also in the correct event, and the name of the event is a date but repeated many times
    Furthermore, the main photo of some events seems to be pixeld but i could see it whe i go into de event.
    it never hapens to me before. I try to maintain the library, repair the database and all other tips.

    Followed both articles. The second one, I did not have the file: "com.apple.usbmuxd.plist~orig
    I then tried the first article and now the iPad will charge when plugged in, iTunes still does not recognize it.

  • Why can't i synchronize my i-pod with i-tunes

    I can't synchronize my Ipod touch with I-tunes (version 11.0.2.26). Same with my Ipod nano.
    Unknown Error code 13019 each time. How can I go through this?

    See:
    iTunes: Error 13019 during sync

Maybe you are looking for

  • OC4J does not start - OVM manager

    Hi Just finished installing OVM MANAGER. Oracle database sits on a different box. cat oc4j.log 2012-03-01-03-30-08-AM Installing the oc4j package (rpm) ... Preparing... ################################################## oc4j #########################

  • Port forwarding using Transmission & Mac Pro

    I do a lot of film editing for various clients and make my work available to a host of individuals via torrents using Transmission 2.84.  Some complain my client (Transmission) is not connectable and they are not able to directly connect. To fix this

  • Any thoughts on Infinity and Windows 8?

    Hi, I have just installed Windows 8 64bit Pro OEM. I dont really like it at all, I first installed a software for a original Start menu key which was missing and I find very frustrating without, but I got that sorted eventually and now I am just find

  • X-FI Elite Pro Din connector and compatible speakers

    Hi all?I?m a?owner of an X-FI Elite Pro. Amazing 55 million transistor sound?From what I can read here in the forums, I can control selected Creative speakers with the?9 pin Din cable. I?m aware of the 3 spdif signals incompatibility with this connec

  • Formatearon mi maquina y ahora no puedo ver la musica que he comprado en itunes

    Foramtearom mi lap  y ahora no puedo ver la musica que he comprado en I tunes ...ayuda por favor