Event Capture

In my application I am monitoring a series of sensors that are binary on or off. I need to somehow capture the event where one sensor goes from on to off. Any advice on how this can be done? I'm running LabVIEW 7.1 and windows 2000
Thanks,
J

Just do a AND operation between the previous value of the sensor ant NOT the new value. See the attached example.
CC
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        
Attachments:
OnToOff.zip ‏12 KB

Similar Messages

  • What for a live event capture and edition ?

    Hi there,
    What software is best for a live event capture and edition ? (for an instant public feedback) a one with the ability to be controlled by a 2-octave midi keyboard.
    Can FCP do that ? even partly ?
    The idea is to be able to do the same then tv shows (live cuts and effect layers)
    thanks,
    Ionel

    FCP is a professional non-linear editing application ... not a live event playback device.
    If you need a very fast turnaround editing facility you can look at FCP coupled with something like Picture Ready from Gallery, you can download a demo to test
    if you're looking at doing a 2 camera live cut/switch then you can consider a dual decklink I/O solution and On-Air 2.0

  • Web event capture and web analytic

    hi all,
    for web analytic, we can enable the web event captured thru XCM setting.
    However,  is it necessary to write any modification of jsp, or event class if we are using the standard functionality only?
    afterall, does shop ID is captured in every event too in standard too?
    Thanks,
    Shanti

    Check the [Web Analytics - Overview|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/ea/a2d93fac0fec06e10000000a1550b0/content.htm]  to see what is captured

  • Zoom event capture in TreeMap

    Hi,
    In my code I've declared TreeMap instance and registered an
    event handler to capture the zoom event like following:
    _treeMap.addEventListener(TreeMapBranchEvent.REQUEST_ZOOM,
    branchZoomHandler);
    However, in the TreeMap UI, when I zoom a tab, then the
    control goes to branchZoomHandler() declared in TreeMap class
    instead of the event handler declared in my own class.
    Is it possible to capture and handle the ZOOM event in my own
    class? If so, it'd be helpful if you provide the sample code for
    the same.
    Thanks in advance,
    Madhav

    Hi..
    Can you try with getting key code(event.keyCode is 8) for Backspace
    See
    http://stackoverflow.com/questions/2353550/how-to-capture-a-backspace-on-the-onkeydown-event

  • SQL Server Extended Events Capturing DDL Schema Changes gives "NO Column Name" Value on DDL events being performed .

    Team ,
    I've created a session to Capture object_Created , Object_altered and Object_deleted events on to Ring Buffeer target "IN Memory Storage" on a server .Whenever i create alter or drop an object , I see a Result in SSMS Column Name "No Column
    Name" and  value "1" .
    Is there a way we can eradicate this ?
    Thanks in advance for your tip !
    Rajkumar Yelugu

    Thoughts ? Thanks for your time !
    Rajkumar Yelugu

  • LOV Event Capturing

    Hi OAF Gurus,
    We have requirement to capture LOV events progammatically but on the way I am facing one issue while capturing LOV event.
    Actually lovValidate event works as per its functionality and it gets captured when user enter value into th efield and tabs out but lovPrepare event doesn't get captured when I clicked on a torch icon and same is what happening with lovUpdate means both these events doent gets captured.
    I have tried in many ways,also by setting Disable Validation Property:true and Use for Validation property:yes but stuck with same issue as before.
    Could you please help me on this issue..Its on priority,..
    Any pointers would be of great help.
    Thanks in Advance.

    Hi,
    lovPrepare fires only when you click on the torch button. It is responsible for passing row level variable to LOV popup page.
    Whereas when you (quick) select any value, lovValidate gets fired which is responsible for populating the variables from LOV page back to main page.
    When you type a valid value in the field, we dont need to send data from main page to LOV page so there is no need to fire lovPrepare. At the same time, since its a valid value, we need to get other columns values and populate them in other formValues/fields in the row. Hence lovValidate even is a must.
    What exactly is your requirement?
    May be u can try having a look into Controller file linked to LOV Page (if it is present)
    Thanks,
    Hrishikesh

  • Ibase related information/event capture

    Hi friends, this is regarding a business scenario which needs to be mapped into SAP CRM:
    Client manufactures engines and these engines are installed in various vehicles. We plan to use installed base for the engines and its various components.
    But requirement is that whatever happens to the engine during its lifecycle needs to be captured and reported.
    For e.g. an engine in its lifetime maybe installed/uninstalled in various vehicles, its components may have suffered breakdown, service person assigned, repaired, replaced, etc. In other words, there maybe many events associated with an engine.
    My question is how to map these events in SAP CRM or is it that this can be done only through ABAP enhancement?

    Hi,
    I got informations on IBASE.In my requirement the product has many component and there sub component. WE planed to use ibase for maintaining the product details with the customer.
    Now i was going through forums, there i found many threads where they were facing problems of dispalying complex structure of ibase into ICWC.
    What are the best practise to used with IBASE so that such problem can be reduced...
    Thanks in advance
    Abhinav

  • Event capturing and 'render' loops

    Right now I'm working on a turn-based strategy game. No problem. After a bit of tweaking I have it figured out to where the whole game is event driven. Any UI interaction triggers a screen re-render. here's the problem . . .
    Eventually, I'd like to make a real time strategy game. At that point, I have to start a render loop going. I've subclassed java.awt.Frame to make my own frame which will start this render loop going. So . . . in my main frame I have just a simple loop like this . . . (pardon incorrect syntax . . . this is off the top of my head)
    public void startRenderLoop()
      Graphics2D g2=(Graphics2D)myBufferStrategy.getDrawGraphics();
      render(g2); //defined elsewhere, obviously
      g2.dispose();
      myBufferStrategy.show();
    }All fine and good. I can get animations to show up just fine. Here's the question.
    How the bleedin' heck do I capture input events? Where can I find mouse/keyboard input OTHER than through the java.awt.event package? If there IS no other place, how the heck do I capture events? 'cause once that render loop starts off NOTHING gets through. What am I doing wrong?

    After you implement a listener, you need to add it to the component. For example:
    public class MyGame extends Frame implements MouseListener
        public MyGame()
            this.addMouseListener(this);
        public void mousePressed(MouseEvent evt)
            //do stuff
        public void mouseReleased(MouseEvent evt)
            //do stuff
        public void mouseClicked(MouseEvent evt)
            //do stuff
        ... (etc.)
    }If the keyboard or mouse seem sluggish, make sure you're sleeping or yielding in order to give the event thread some time to work. See here for a good algo to do this:
    http://www.javagaming.org/cgi-bin/JGOForums/YaBB.cgi?board=Sound;action=display;num=1050577023

  • InputListofValue PopUp window CANCEL button event capture ?

    HI All ,
    Jdeveloper version 11.X.6.
    i have explained the outline of issue below:
    User enter some data on InpuLIstOfValue text field and click on the maginfied Glass, the pop opens and selects some data and click 'OK' ,it will display appropriately on below fields.
    but if user enters the wrong data on InpuLIstOfValue text field and clicks on maginfier Glass,no results found on the popup window, so upon click of "CANCEL" button on popup window ,
    is there any way to remove the old data on InpuLIstOfValue Filed ?
    Basicaly i am looking for the capturing the CANCEL button event on the popUpwindow ,based on event status .
    PLase let us know if any hints ?
    Thanks

    Step by step:
    1. Create the converter class:
    package view.converters;
    import java.util.Collection;
    import java.util.Collections;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import org.apache.myfaces.trinidad.convert.ClientConverter;
    import org.apache.commons.lang.StringUtils;
    public class LOVConverter implements Converter, ClientConverter {
      public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) {
        if (StringUtils.isBlank(value)) {
          // cancel event was triggered, so do something
        return value; // if value is not an instance of String you need to convert it to its primary type (Number, Date, String, etc)
      public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value)
        if (value == null || /* value is empty in its primary type */) {
          // cancel event was triggered, so do something
        return value.toString();
      public String getClientLibrarySource(FacesContext facesContext)
        return null;
      public Collection<String> getClientImportNames()
        return Collections.emptySet();
      public String getClientScript(FacesContext facesContext, UIComponent uiComponent)
        return null;
      public String getClientConversion(FacesContext facesContext, UIComponent uiComponent)
        return null;
    }2. Declare the converter in faces-config.xml:
    <converter>
      <converter-id>LOVConverter</converter-id>
      <converter-class>view.converters.LOVConverter</converter-class>
    </converter>3. Your inputListOfValues should look like this (see the property converter="LOVConverter"):
    <af:inputListOfValues popupTitle="Search"
                          value="#{row.bindings.DepartmentId.inputValue}"
                          model="#{row.bindings.DepartmentId.listOfValuesModel}"
                          required="#{bindings.EmployeesView1.hints.DepartmentId.mandatory}"
                          columns="#{bindings.EmployeesView1.hints.DepartmentId.displayWidth}"
                          shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                          converter="LOVConverter"
                          id="ilov1">After that, when the user clicks the Cancel button, both methods (getAsObject and getAsString) should be invoked, and then you would be able to reset the component value (using uiComponent parameter).
    AP

  • Key event capture

    I can't find a way to capture the key events of the special key on multimedia keyboards, just like play/pause, browser or music..
    Any ideas?

    You probably can't. They have their own drivers to handle those specialties and Java (as far as I know) doesn't have support for those.

  • Event capturing in OOP ALV

    Hi
       I want that when user doubleclicks on the any row of alv, the row value should be taken to some workarea.If possible provide some code.
    Thanks.

    Here is a sample program.  You need to handle the event DOUBLE_CLICK  by using a local event handler class. 
    REPORT ZRICH_0001.
    TABLES: MARA.
    DATA: BEGIN OF I_ALV OCCURS 0,
          MATNR TYPE MARA-MATNR,
          MAKTX TYPE MAKT-MAKTX,
          END OF I_ALV.
    *       CLASS cl_event_receiver DEFINITION      Handles Double Click
    CLASS CL_EVENT_RECEIVER DEFINITION.
      PUBLIC SECTION.
        METHODS HANDLE_DOUBLE_CLICK
          FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
          IMPORTING E_ROW E_COLUMN.
      PRIVATE SECTION.
    ENDCLASS.
    *       CLASS CL_EVENT_RECEIVER IMPLEMENTATION    Handles Double Click
    CLASS CL_EVENT_RECEIVER IMPLEMENTATION.
      METHOD HANDLE_DOUBLE_CLICK.
        PERFORM DRILL_DOWN USING E_ROW-INDEX.
      ENDMETHOD.
    ENDCLASS.
    DATA: ALV_CONTAINER  TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: EVENT_RECEIVER TYPE REF TO CL_EVENT_RECEIVER.
    DATA: ALV_GRID       TYPE REF TO CL_GUI_ALV_GRID.
    DATA: FIELDCAT  TYPE LVC_T_FCAT.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001 .
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
    SELECTION-SCREEN END OF BLOCK B1.
    START-OF-SELECTION.
      PERFORM GET_DATA.
      CALL SCREEN 100.
    *      Module  status_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS '0100'.
      SET TITLEBAR '0100'.
    * Create Controls
      CREATE OBJECT ALV_CONTAINER
             EXPORTING
                   CONTAINER_NAME    = 'ALV_CONTAINER'.
      CREATE OBJECT ALV_GRID
             EXPORTING
                   I_PARENT          =  ALV_CONTAINER.
    *  Create Event Receiver
      CREATE OBJECT EVENT_RECEIVER.
    *  ALV Specific. Data selection.
    *  Populate Field Catalog
      PERFORM GET_FIELDCATALOG.
      CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
          CHANGING
               IT_OUTTAB       = I_ALV[]
               IT_FIELDCATALOG = FIELDCAT[].
    *   handler for ALV grid
      SET HANDLER EVENT_RECEIVER->HANDLE_DOUBLE_CLICK FOR ALV_GRID.
    ENDMODULE.
    *      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK' OR 'CANC'.
          IF NOT ALV_CONTAINER IS INITIAL.
            CALL METHOD ALV_CONTAINER->FREE.
            CLEAR: ALV_CONTAINER.
            FREE : ALV_CONTAINER.
          ENDIF.
          IF SY-SUBRC = 0.
            SET SCREEN 0.
            LEAVE SCREEN.
          ELSE.
            LEAVE PROGRAM.
          ENDIF.
        WHEN 'EXIT'.
          IF NOT ALV_CONTAINER IS INITIAL.
            CALL METHOD ALV_CONTAINER->FREE.
            CLEAR: ALV_CONTAINER.
            FREE : ALV_CONTAINER.
          ENDIF.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.
    * FORM GET_DATA
    FORM GET_DATA.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE I_ALV
            FROM MARA
              INNER JOIN MAKT
                ON MARA~MATNR = MAKT~MATNR
                   WHERE MARA~MATNR IN S_MATNR
                     AND MAKT~SPRAS = SY-LANGU.
      SORT I_ALV ASCENDING BY MATNR.
    ENDFORM.
    *      Form  Get_Fieldcatalog - Set Up Columns/Headers
    FORM GET_FIELDCATALOG.
      DATA: LS_FCAT TYPE LVC_S_FCAT.
      REFRESH: FIELDCAT.
      CLEAR: LS_FCAT.
      LS_FCAT-REPTEXT    = 'Material Number'.
      LS_FCAT-COLTEXT    = 'Material Number'.
      LS_FCAT-FIELDNAME  = 'MATNR'.
      LS_FCAT-REF_TABLE  = 'I_ALV'.
      LS_FCAT-OUTPUTLEN  = '18'.
      LS_FCAT-COL_POS    = 1.
      APPEND LS_FCAT TO FIELDCAT.
      CLEAR: LS_FCAT.
      LS_FCAT-REPTEXT    = 'Material Description'.
      LS_FCAT-COLTEXT    = 'Material Description'.
      LS_FCAT-FIELDNAME  = 'MAKTX'.
      LS_FCAT-REF_TABLE  = 'I_ALV'.
      LS_FCAT-OUTPUTLEN  = '40'.
      LS_FCAT-COL_POS    = 2.
      APPEND LS_FCAT TO FIELDCAT.
    ENDFORM.
    * DRILL_DOWN
    FORM DRILL_DOWN USING INDEX.
      READ TABLE I_ALV INDEX INDEX.
      IF SY-SUBRC = 0.
        SET PARAMETER ID 'MAT' FIELD I_ALV-MATNR.
        CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
        IF NOT ALV_CONTAINER IS INITIAL.
          CALL METHOD ALV_CONTAINER->FREE.
          CLEAR: ALV_CONTAINER.
          FREE : ALV_CONTAINER.
        ENDIF.
      ENDIF.
    ENDFORM.
    Regards,
    Rich Heilman

  • During slow scan rates, are events captured between scans?

    We are using 32 thermocouples to measure a heated cabinet performance and are using the Continuous Acquisition to Spreadsheet VI. I am saving the data to a text file while plotting the data to a chart in Labview 6.1. I only wanted to read temperature every 60 seconds (0.01667 scans/sec) but set the scan rate rounds off to 2 decimal places, so at 0.02 scan rate we read data every 50 seconds. I set the buffer size to 1 and the number of scans to write at a time to 1. Does this mean I have a lag of one scan in the buffer or am I seeing the latest scan written to the chart? Also, temperature events between writes to the screen sometimes show up on the chart, sometimes not. It seems to depend on how long the e
    vent takes place or how close to the next write. I would appreciate any insight on how the software handles the events between writes. Thanks.

    Willard,
    You can actually change the digits of precision in LabVIEW to display more than 2 decimal places. If you right-click on the scan rate control and select 'Format and Precision' you can alter the digits of precision to include 5 decimal places.
    By setting the buffer size to 1 you are setting a memory size to hold only 1 scan at a time. By setting the number of scans to write at a time to 1 that means that every time the AI Read VI is called within the while loop, the VI will only read 1 scan from the buffer. Therefore, the hardware is set-up to read 1 scan every 50-60 seconds and so the hardware places that scan in the buffer. Then every time the AI Read VI is called in software, it reads 1 scan from the buffer. So, if the AI Read VI already read
    the 1 scan from the buffer, it will wait until the buffer gets the next scan from hardware (50-60 seconds) and then plot it on the chart. So, with the set-up you have, you will not see any lag of temperature data. Once the hardware scans, the software will almost immediately read that scan. I hope this helps.
    Regards,
    Todd D.
    Applications Engineer
    National Instruments

  • Layering and event capturing

    In
    this
    flash movie, I have a tween object created on RollOver and RollOut
    for those tabs. The tabs are under the large rounded rectangle, and
    when I move the mouse over the spot where a tab's underneath the
    rectangle they still react. How can I make it so that the event
    can't fire when there's something between the tab and the
    mouse?

    You can just put an empty onRelease handler on your large
    object, and set
    its useHandCursor to false so it doesn't look like a button.
    That way it'll
    trap the mouse...
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Choose event capture

    Hi Experts
    I have created a choose list type text box it show the list but when i select any bp row it return bpcode properly but it does not return bp name and after that other event does not work.
    The code is as fellows
    if (pval.eventType = SAPbouiCom.Bo_Event_Type.et_Choose_From_List)
    dim iChoose as SAPbouiCom.iChooseFromList
    dim Val as string
    dim val2 as string
    iChoose = pval
    dim CFL_ID as string
    CFL_ID = iChoose.ChooseFromUID
    dim oForm as SAPbouiCom.Form
    dim CFL as SAPbouiCom.ChooseList
    CFL = oForm.Chooselist.Item(CFL_ID)
    if iChoose.BeforeAction = Falsethen
    dim oDatatable as SAPbouiCom.Datatable
    oDatatable = iChoose.SelectedObject
    try
    val = oDatatable.Getvalue (0,0)
    val1 = oDatatable.Getvalue(1,0)
    catch
    end try
    CustCode.value = val
    custName .value = val1
    Plz help as early as possible

    Hi,
    Have you tried to put all your code inside a try/catch block ?
    It is very important, as from B1 2007 version if there is an exception while getting called for a UI API event then the connection will be broken. Pay attention to it.
    With a try/catch block you will also see if there is an exception in your code and the message.
    Hope it helps
    Trinidad.

  • Capture event from custom.pll?

    Hi friends,
    I've been reading in Developers Guide about events capture (p.787) in custom.pll but I've not found anything about capture the event (or something similar) whe we close a descriptive flexfield window....
    Is there any way to know from custom.pll when a window is closed? The purpose is to make diferents actions when the focus return to the original form.
    Thanks.
    Jose.

    Does the WHEN-FORM-NAVIGATE event fire when closing one form and returning to another? However I am pretty sure that this fires when switching between forms without closing one of them as well.

Maybe you are looking for

  • Where did my minimized pages go? How do I find them and get them back?

    I have OS X 10.8.3 (Lion). When I minimize a page by clicking on the yellow button on the upper left, the page disappears and I can't find it. Where is it? (Swiping 3 fingers across my touchpad does not show them or open programs.) In the past, the m

  • Why can't I select another external editor?

    iPhoto 11. How do I select another external editor in iPhoto 9.2.1? I have Aperture, Pixelmator and PSE installed but only PSE comes up in the selection box under "Advanced".

  • Xsl text output help

    I would like to use an xsl transform to output an xml dom tree as a text file. I have tried using <xsl:output method="text" media-type="text/plain"/> and I use <xsl:text > to output text but my resulting file only contains the following line: <?xml v

  • Use SAP Application server name in a jsp in ISA

    Hello, We need to use SAP application server name in a jsp file. Any suggestions on how to do this? Thanks Archana Edited by: Archana Swaminathan on Jan 9, 2009 1:02 PM

  • Finder bugs - No jpg/pdf preview in iconview, flickering copy + icon

    I updated to Snow Leopard last weekend, most things seem ok but i've got some real problems with finder. As described in the subject. The icon view completely fails to show me some jpegs or pdf contents, it just stays as a jpeg or pdf icon from previ