Table not updating while command button is held down

Hi guys,
My application obtains data and then outputs this into a table which updates after each set of data is read. This part works fine, however I also require the user to be able to hold down one of two buttons to control control the function of an actuator (forwards and rearwards). To explain this further, when one of these buttons are pressed a voltage is output, when released the voltage is reset to zero. However, while the button is held down the table does not continue to update, when the button is released the table then updates through all the queued values. I understand that this is most likely a problem with the holding of the button causing the other user interface events to not be processed. I have therefore tried using ProcessSystemEvents(), ProcessDrawEvents(), and experimented with using an async timer to control the updating of the UI through the use of PostDeferredCallback(), all without success.
If anyone can help with a solution that would allow me to perform both of these required functions simultaneously it would be greatly appreciated!
Thanks in advance
Ben
Solved!
Go to Solution.

Could you use a toggle button instead of a simple button to be hold down? If yes, then in the button callback you could simple test the value of the toggle (1 if pressed, 0 if released) and operate turn on/off the output voltage to the actuator. You'll have a commit event every time the operator changes button state. (you may need to apply some security limit switch or timeput on the control in case the user forgets to turn the toggle off: the situation is similar to a three-state switch that controls a motorized window blind).
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Modern LED Indicator gets not updated while mouse button is pressed

    Colleagues,
    Here pretty simple, but strange behavior in the following snippet:
    When this VI is running, then all three indicators are blinking as expected.
    Now click on Minimize Button (you can also click on Maximize or Close Button), but not release button immediately — just keep button pressed.
    Classic and Silver indicators are OK, but Modern stops blinking and not updated any longer.
    That was tested on Win7/LabVIEW 2013.
    I believe, this is the problem between OS/LabVIEW and UI thread (on XP whole panel will be not updated).
    Just curious - how it works under Win 8/8.1 and is any way exists to fix it other than replacing modern indicators with other type?
    Regards and thanks in advance,
    Andrey.
    Attachments:
    LED Problem.vi ‏9 KB

    NeilR wrote:
    Just tried this with LV 2012 / Windows 7 and it acts the same.
    Although strangely if you use the rectangular Modern LED it updates OK like the classic and silver LEDs !!??
    What's the problem with the round modern LED ? Bizarre
    Yes, there are many controls, some are updated and some - not.
    Try attached one - this is funny (there are two Modern ring controls - on Win 7 one control is not updated, but both mostly the same). 
    Attachments:
    Motor&Dog.vi ‏445 KB

  • VBSEC Table not updating while parking a doc

    Hi all,
    I am working on a program wherein I am using a FM which is a copy of the std FM PRELIMINARY_POSTING_FB01. When I am calling the FM ZPRELIMINARY_POSTING_FB01 I am passing the following tables to it t_bkpf, t_bseg,t_bsec,t_bset and t_bsez. Tables t_bkpf, T_bseg and t_bsec have values in it. Now when I called this FM in my program it parked the document correclty but it only updated tables VBKPF and VBSEG but didn't update the table VBSEC which has one time vendor information. I put a break point just right before I am calling the FM and all the three tables are filled with the correct data but when I checked table vbsec after parking it doesn't have any data. When I did the same using std TCode FV60 it updated table VBSEC as well.
    This is how I have called the FM in my program:
    CALL FUNCTION 'ZPRELIMINARY_POSTING_FB01'
        EXPORTING
           i_xcmpl =                         lv_i_xcmpl
           i_tcode =                         lv_i_tcode
           i_tcode_int =                     lv_i_tcode_int
        TABLES
           t_bkpf =                          lt_c_t_bkpf
           t_bseg =                          lt_c_t_bseg
           t_bsec =                          lt_c_t_bsec
           t_bset =                          lt_c_t_bset
           t_bsez =                          lt_c_t_bsez
    Can you please tell me what might I be missing here?
    Thnaks,
    Rajat

    Hi
    Maybe put a breakpoint in the following code:
    Include LF040F00:
        loop at yvbsec.
          loop at yvbseg where buzei eq yvbsec-buzei.
            if yvbseg-xcpdd ne 'X' and
               yvbseg-xzemp ne 'X'.
              delete yvbsec.
              exit.                                      "Note 430791
            else.
              upd_vbsec = char_u.
            endif.
          endloop.
        endloop.
            loop at yvbsec where buzei eq xvbsec-buzei.
              i = sy-tabix.
              if yvbsec ne xvbsec.
                upd_vbsec = char_u.
                xvbsec-kz = char_u.        "Update
              endif.
            endloop.
            if sy-subrc ne 0.
              upd_vbsec = char_u.
              xvbsec-kz = char_i.          "Insert
            endif.
    These appear to be the points where the update flag for table BSEC is set.
    Kind regards,
    Robert

  • Validity Table not updating for 0IC_C03 while updating data

    Hi,
    1.Validity table not updating for 0IC_C03 while updating data in my BW 7.4 With HANA data base?
    Key fields : 0Plant
                       0Calday
    if you run this programe after loading data - RSDG_CUBE_VALT_MODIFY it is updating.
    2. I am not getting no marker update option in non-cumulative Info cube 0ic_c03 manage tab or in DTP tabs check as per 7.4 modifications?
    and  2LIS_03_BX in DTP I am getting below this option only
    Can you please give me solution for this issues.
    Regards
    Umashankar

    Hi Uma,
    Please go through the below link which might be helpful.
    Not able to Edit Validity Table : RSDV
    Marker Update Option is available under Collapse tab of Info cube.
    Thanks,
    Karan

  • What are the tables will update while loading Master data ?

    Hello Experts,
    What are the tables will update while loading Master data ? And requesting you to provide more information about Master data loading and its related settings in the beginning of creation infoobjects. 

    It depends upon the type of Master data u r loading....
    In all the master data loadings, for every new value of master data an SID will be created in the SID table /BI*/S<INFOOBJECT NAME> irrespective of the type of master data.
    But the exceptional tables that get updated depending on the type of master data are.....
    If it is a time Independent master data then the /BI*/P<INFOOBJECT NAME> table gets updated with the loaded data.
    If it is a time dependent master data then the /BI*/Q<INFOOBJECT NAME> table gets updated with the loaded data.
    If the master data is of time Independent Navigational attributes then for every data load the SID table will get updated first and then the /BI*/X<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    If the master data is of time dependent navigational attributes then for every data load the SID table will get updated first and then the /BI*/Y<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
    NOTE: As said above, For all the data in P, Q, T, X, Y tables the SID's will be created in the S table /BI*/S<INFOOBJECT NAME>
    NOTE: Irrespective of the time dependency or Independency the VIEW /BI*/M<INFOOBJECT NAME> defined on the top of /BI*/P<INFOOBJECT NAME> & /BI*/Q<INFOOBJECT NAME> tables gives the view of entire master data.
    NOTE: it is just a View and it is not a Table. So it will not have any physical storage of data.
    All the above tables are for ATTRIBUTES
    But when it comes to TEXTS, irrespective of the Time dependency or Independency, the /BI*/T<INFOOBJECT NAME> table gets updated (and of course the S table also).
    Naming Convention: /BIC/*<InfoObject Name> or /BI0/*<InfoObject Name>
    C = Customer Defined Characteristic
    0 = Standard or SAP defined Characteristic
    * = P, Q, T, X,Y, S (depending on the above said conditions)
    Thanks & regards
    Sasidhar

  • Buffer table not update

    Hello all,
    I tried to create  a Scart for a category id meant for Classic scenario but I get an error that "Buffer Table not update " and it is resulting in a ABAP Dump.However, for the Categoryid for Ext. Classic Scenario it is working fine.
    I tried SWU_OBUF also.
    Any body ,Pl enlighten on how to proceed further?
    Thanks & Regards,
    Nagarajan
    Addl Info:
    1) Activated the Global settings for Extended Classic Scenario
    2) Activated the BADI for control of Extended Classic Scenario

    Hi,
    Go to the SMQ1 and SMQ2 in both the frontend and backend systems and check for any queues of material replication still running or held.
    Delete all the obsolete entries in this.
    This may help you as in our system it worked once for this buffer table not uptodate issue.
    Best regards,
    Sridhar.

  • Recon Account not updating while in MIRO

    Hi all..
    Im facing the problem: Recon account is not updating  while during the MIRO. even though Vendor account is get updated and i have checked in vendor master also the same account has been maintained.
    Thanks In advance
    Akhil

    Definitely wrong forum to ask for this topic.  Have you posted this in MM and FI forum?

  • Parts master table not updating

    SP3 parts inventory table not updating even though set to synchronise through webtools

    thank you had to rebuild links on table

  • Vertical slider position not updated while displaying .pdfs with Adobe Reader X

    When a .pdf file is opened inside Firefox 4 (beta/RC1), the vertical slider position does not update while scrolling through the document until the mouse cursor is moved to the slider bar (then the slider immediately jumps to the right place).
    I am using Adobe Reader X.

    Here is a URL that will not save in Reader X:
    http://samplepdf.com/sample.pdf?meaningless=1234567890123456789012345678901234567890123456 789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456 7890/&blah=blah.pdf
    However, if the last slash is removed or encoded as %2f (which should not be necessary, as it appears in the query portion of the URL), there is no problem.

  • Database table not updating

    Hi all,
    I am updating the database table with following syntex, but table not updating.
    MODIFY ZTEST_BAR FROM TABLE I_ZTESTBAR.
    Please help.
    PKB

    Hi,
    firstly you can define internal table and work area as below:-
    internal tables
    DATA : I_ZTESTBAR TYPE TABLE OF ZTEST_BAR.
    work areas
    DATA : I_ZTESTBAR_LINE LIKE LINE OF I_ZTESTBAR .
    here internal table having the same structure as that of ztable which include MANDT.
    Then to update field, you can use add following code:-
    *Update Ztable
    INSERT INTO ZTEST_BAR VALUES I_ZTESTBAR_LINE.
    COMMIT WORK.
    Hope this works for you.
    Thanks..........

  • The Firefox 4.0 cookies window does not update while open

    While visiting different websites, the Firefox 4.0 cookies window does not update while open.

    See also related problems:
    Firefox 4.0 reopens the last webpage visited if the cookies window is open.
    https://support.mozilla.com/en-US/questions/801533
    Firefox 4 doesn't open in a homepage, but rather opens the last page I visited, which I HATE!!!!!!!!!!!!!!!!!!
    http://support.mozilla.com/en-US/questions/789325

  • Now that I upgraded to Maverick on my Mac air, I can not use the power button to shut down the computer anymore. any suggestions?

    Now that I upgraded to Maverick on my Mac air, I can not use the power button to shut down the computer anymore. I now have to go to the apple icon in the upper left corner.  Any short cuts instead of going to the apple in the top left corner and hitting shut down.  Doing that all the time, I feel like I am back at work using a "Windows" computer.

    This a is tricky one, but you can still do it. Instead of pressing the power button, hold it down for a few seconds and then you'll see the shut down options dialog pop up.
    I guess they were trying to prevent accidental touching of that button. They did something similar with the Eject button a few versions ago, where you have to hold down Eject instead of just tapping it so that you don't pop out a CD by mistake.

  • My iPod nano screen is frozen and will not respond. It shows the song which was playing is paused, but will not resume playing. I have held down all controls, and changed the slide switch, but nothing happens

    my iPod nano screen is frozen and will not respond. It shows the song which was playing is paused, but will not resume playing. I have held down all controls, and changed the slide switch, but nothing happens

    Hi Goofy Goat,
    Welcome to the Apple Support Communities!
    It sounds like you have done some great troubleshooting for your iPod nano that is not responding. In this situation, if resetting it did not resolve, I would suggest restoring the iPod back to its factory settings and then sync your content back onto it from iTunes. Please use the following article as a resource for restoring.
    Restoring iPod to factory settings
    http://support.apple.com/kb/HT1339
    Have a great day,
    Joe

  • Picked Quantity not updated while using FM in background

    Hi All,
    We have a requirement to update the picking quantity in a delivery order (VL02N) through a custom screen.
    Inorder to do the above operation we are using the  Function Module SD_DELIVERY_UPDATE_PICKING_1. We find a strange behaviour while using this FM.
    The FM updates the picking quantity when executed online, but when called in the program (By passing exactly the same parameters) it does not update the picking quantity even after using a COMMIT WORK command after the function module. While debugging it was found that the XLIPS intl. table and LIPS structure was not being populated when the FM was executed through a function call in program.
    We tried using the WS_DELIVERY_UPDATE, but even this FM behaves in the
    same way.
    Please let us know as to how to over come this issue.
    regards,
    Sandeep

    Hi Babul,
    Thanks for your reply. I actually tried using even the above mentioned FM. But I am faced with the same error. The problem is that in one of the includes LV50LF01 (Subroutine READ_DELIVERY) of the FM, the internal table XLIPS gets refreshed. This happens only when the FM is called in our program.
    regards,
    Sandeep

  • Excise amount not updating while posting invoice

    Dear SCN's,
    I have done GRN and captured excise amount and later in invoice posting these captured excise values are not updating. Please help me out where the root cause might be, please share your views were might be the error. And also help me with information of excise tables updating while capturing excise invoice and posting excise invoice.
    Regards,
    Kumar

    For Domestic & Imports Excisable Material Procurement at Excisable Manufacturing Plant
    J_1IEXCHDR: Table for Excise header information.
    J_1IEXCDTL: Table for Excise item information.
    J_1IGRXREF: Table for Excise & Material document reference.
    J_1IPART1: Table for Part I entry
    J_1IPART2: Table for Part II entry.
    For Domestic & Imports Excisable Material Procurement at Excisable Depot
    J_1IEXCHDR: Table for Excise header information.
    J_1IEXCDTL: Table for Excise item information.
    J_1IRG23D : Table for Depot Register.

Maybe you are looking for

  • Session corruption in very basic scenario!!!!!Please help me

    Dear All, I am facing a problem regarding to Session expiry I have two applications app1, app2 deployed on same server (WebLogic Server 8.1 SP3) on Windows 2000 app1 url is http://localhost:7001/app1 (in domain domain1) app2 url is http://localhost:7

  • Frequent postfix "master exit time has arrived" error messages in the log

    I'm seeing this in my mail.log every minute: Dec 1 12:27:46 Executor postfix/master[6394]: master exit time has arrived Dec 1 12:27:46 Executor postfix/master[6399]: daemon started -- version 2.5.5, configuration /etc/postfix Dec 1 12:28:46 Executor

  • Validate from List property of dynamically attached LOV

    Dear Oracle Gurus, I have multi record block , the fields are Argument_name,Argument_Code ,argument_lov displaying two fields . data is populated at run time user has to input for the argument_value according to the argument_name displayed it may loo

  • Interactive PDF - Buttons stop working when emailed

    Hi there, I have made an interactive PDF using InDesign CC. I've checked in preview and once saved and all the buttons work and take me to the correct URL. Once I email the PDF the buttons do not work, in fact they don't not even come up in the email

  • Accordion with XML data

    As I'm learning, I also am experiencing some difficulties. I've tried to combine some XML data with an accordion. Since the <div> solutions gave me errors, I found some inspiration in the following thread. Can somebody help me and explain why this is