How to generate an Event on Digitalnput-ValueChange?!

Guten Tag and best wishes from Berlin!
I use an EventStructure (ES) with no Timeout. One Event that is handled
by that ES is the "Control1-ValueChange"-Event generated when the user
clicks the Control1. That's easy.
Now I have a DAQ-Card with Digital Inputs and I also want the
EventStructure to react on the Change of the value of one digital input
line.
I know I could set the timeout of the EventStructure to some ms and
check the DI after Timeout and then start the ES again and so on...
But well, I dont like this.
Is there another possibility?
Thanx a lot for your replays,
Stefan

Hi Anonymous,
      You might want to check-out the DIO Change occurrence VIs (DIO\Advanced.)  I've never used them, but it sounds promising.  Hey!, occurrences are Events too! 
There's the "DAQ Occurrence", a "DIO Change Occurrence", VISA Offers it's brand of "Events", we can register the Event-case for a range of [user] events.  It would be nice to see NI "normalize" event-posting across different "systems" so that a single event handler could monitor everything.
Cheers.
Message Edited by Dynamik on 03-01-2006 05:31 PM
Message Edited by Dynamik on 03-01-2006 05:32 PM
When they give imbeciles handicap-parking, I won't have so far to walk!

Similar Messages

  • How to generate key events to a componet without keyboard

    I want to generate a key event, a Keylistener is already there, (in fact, java3D's KeyNavigatorBehavior). I want to use other input methods instead of key pressings, so how I generate the key event manually
    thx,

    Look at java.awt.Robot. It has a keyPress() method to simulate key presses.

  • How to generate another event in an event processing structure?

    Because event 1 processing should use the code for event 2 processing.
    Event 2 is pressing a button. I can not use value change in property Node because of the latching mechanism.How to solve the problem?

    Hi,
    I am not sure I understand your problem...
    Apparently you have 2 events that require the current value of a latch boolean, is that it ?
    If yes, in the event "value change" made on the button you don't need to actualy have the button in the event to get the value. In this event, you can get both the new and old value of the boolean from the "thing on the left hand side of the structure.
    As Altenbach said, some code with a simple example would helps us provide better advice
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • How to generate key events programmatically

    Hello friends,
    I am developing an application that would automaticall trigger some keboard events for this purpose i would like to trigger an event like alt+f4 i.e pressing alt+f4 together
    How can we do this using java
    regards
    hari

    You should be able to use the java.awt.Robot class to perform programmatic UI events.
    It doesn't seem that it permits use to do things like keyPress("alt-f4") so you might have to do something like this:
    Robot robot = new Robot();
    robot.keyPress(KeyEvent.VK_ALT);
    robot.keyPress(KeyEvent.VK_F4);
    robot.keyRelease(KeyEvent.VK_F4);
    robot.keyRelease(KeyEvent.VK_ALT);Hope this helps.

  • How to generate automatic event?

    i'm using awt and action event , i need the button to do kind of demo like i was pressing it , how can i do that?

    Hi,
    Use the Robot AWT class.
    JRG

  • How to generate selection change event through code in JTree?

    I am developing an application which downloads the file from other system and adds it into the tree. On selecting any file in the tree I m displaying it's contents. But now i am trying to display the contents of downloaded file as soon as it's download completes. Here i am not getting the way to how to generate the event as the download completes, because i tried that setSelectionPath(TreePath path), but it also don't generates the selection change event. Is there any other way to do so?

    Put null in place of oldLeadSelectionPath. From the API for TreeSelectionEvent:
    protected TreePath     oldLeadSelectionPath:
    leadSelectionPath before the paths changed, may be null.
    I'm at the office and can't try out anything, so please let me know whether that works for you.
    db
    edit Or it may be easier to put all code from your valueChanged (...) override in a new method and invoke that method both from valueChanged (...) and wherever else you need.
    Edited by: Darryl.Burke

  • How can I detect an external trigger and then generate an event or occurance

    I have a PXIe-1065 chassis with a PXIe8030 controller, PXI-6653 timing module, PXI-6542 Digital IO, and PXI-6259 DAQ board, running LabView 8.5. I need to detect a trigger (100 ns TTL pulse) from an external device then start a process on a GPIB device. Is there a way for me to detect this trigger and then generate an event, or an occurance ? Can I do this without polling a device? Can any of this hardware generate an interrupt that LabView can detect?

    My screenshot was only an example how you can approach the issue. I wasnt saying that you should try it with AI....
    Just take a closer look into the DAQmx Events and you will discover something like this:
    hope this helps,
    NorbertMessage Edited by Norbert B on 10-05-2007 02:35 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.
    Attachments:
    DAQmxEvent.PNG ‏11 KB

  • How to generate an email on a database event?

    Dear gurus...I've heard about diferent ways of generating email in response to a database event e.g
    1 - Using UTL_MAIL package
    or
    2 - Event Driven Reporting feature of 10g Database and using SRW.Run_Report package to generate and mail a report.
    Now I'm confused that how should I accomplish the following tasks:
    (i) - How to generate an email after Insert/Update/Delete on a table and acknowledge the concerned users about that event?
    (ii) - How to attach a text file with that email?

    Dear Ivan...I've tried both UTL_SMTP and UTL_MAIL, UTL_SMTP is working well and sending mails but following code of UTL_MAIL is giving the error which I can't guess, why?
    DECLARE
    CRLF CHAR(2) := CHR(10) || CHR(13);
    BEGIN
    UTL_MAIL.SEND(sender => '[email protected]',
    recipients => '[email protected]',
    cc => NULL,
    bcc => NULL,
    subject => 'Test Email',
    message => 'Test line1' || CRLF || CRLF || 'Test line2',
    mime_type => 'text/plain; charset=us-ascii',
    priority => 1);
    END;
    and the error is:
    ORA-29279: SMTP permanent error: 554 Message is not RFC compliant
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 345
    ORA-06512: at "SYS.UTL_MAIL", line 577
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 4
    could u guess why this error is generating???
    P.S...I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production on MS-Windows Server-2003.

  • Need to monitor event ID with Event Level :Critical , Also how to generate (powershell or otherwise) an event with Event Level :Critical

    Need to monitor event ID with Event Level :Critical , Also how to generate (powershell or otherwise) an event with Event Level :Critical

    Hi
    First, we Need to clarify what do you want.
    1) You want to Monitor a Windows Event with the severity "Error" (there is no Critical for Windows Events, only Error").
    2) You want to create an Event in SCOM. I think you if you talk about "Event" in SCOM you mean actually an Alert.
    There is no direct way like a tool/powershell script  of only creating an Alert in SCOM only if you are going to use the SCOM SDK
    http://msdn.microsoft.com/en-us/library/hh329086.aspx or using the Orchestrator Create Alert activity.
    If you want to create a SCOM alert depending on a Windows Event you either can create a rule
    http://technet.microsoft.com/en-us/library/ff730470.aspx or a Monitor
    http://jimmoldenhauer.blogspot.ch/2013/03/scom-2012-how-to-generate-alerts-from.html 
    Cheers,
    Stefan
    Blog: http://blog.scomfaq.ch

  • How to Generate a ReportError Event

    I'm sure I'm just missing something here.  Our LabVIEW GUI has a registered event Callback for ReportError.  In TestStand I handle errors with SequenceFilePostStepRuntimeError and ProcessModelPostStepRuntimeError callbacks.  I used the error handling example and modified to basically just show a popup with the error message.  My problem is how to generate the ReportError event so our GUI can take the appropriate action.
    I don't see it listed under the given UIMessage event codes.  I can't find it anywhere.  So the questions is where do I generate the ReportError event within TestStand?
    Thanks.

    Hi Sir Mutt,
    If my understanding is correct, you are using LabVIEW as your operator interface to start the Teststand Application and you want to do Teststand Error Handling in LabVIEW. The most common way that this is achieved is through ActiveX Invoke and Property nodes as well as ReportError events. I have attached two screenshot examples of this. Does this sufficiently address your question or did I misinterpret your question?
    Regards,
    Jackie
    DAQ Product Marketing Engineer
    National Instruments
    Attachments:
    ReportError Callback.png ‏8 KB
    Teststand Error Handling.png ‏20 KB

  • How to remove an auto generated ActionPreformed Event from Netbeans?

    Hi,
    How do I remove an auto generated ActionPreformed Event from my code? I accidentally created one and want to remove it. I tried to right click on the event and refactor/delete all the dependencies in the source but it wouldn't let me remove it. There shouldn't be any DEPENDENCIES it was just created.
    Thanks,
    V$H3r

    NetBeans | Help | Help Contents | Java Applications | Building Java GUIs | Designing Java GUIs | Managing Component Events | Removing Event Handlers:
    1. In the Inspector window, select the component whose event handler you want to remove.
    2. Click the Events button at the top of the Properties window.
    3. Select the event in the property sheet and click the ellipsis (...) button to display the Handlers dialog box. Alternately, you can simply delete the name of the handler you want to remove in the Properties window.
    4. In the Handlers dialog box, select the handler to remove from the list and click Remove.
    When you remove an event handler, the corresponding code block is also deleted. If more than one handler uses the same name and same block of code, deleting a single reference to the code does not delete the code itself. Only deleting all references will delete the corresponding code block, and a confirmation dialog box is displayed first.

  • How to generate a report in pdf from a stored proc

    Hi, i need guidance on how to generate a report in pdf from an oracle stored proc.
    The environment is oracle 10gas + 10gdb.
    On a specific event, a PL/SQL stored procedure is called to do some processing and at the end of the processing to generate report which has to be sent to the printer (and optionally previewed by the user).
    Can anyone assist me with this?

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • How to create an event marker with durations of upto 10mins

    Hi,
    I want to record the time of an event, occuring on the acquired data or a user generated keyboard event, since the start of a recording sessions. A typical session of record will take 10-15 mins. The timer need to start as soon as the recording is initiated and run without overflow till end of recording.
    So my two problems are:
    1. How do I create a timebase for the counter so that its TC duration will be atleast 15mins and at the same time be able to detect 10ms event.
    2. How do I connect the above timebase to 2nd counter, which will read the time of event, and read the count value and store in an array when an event occurs.
    Any help or guidelines to approach this problem will be a
    ppreciated

    Andy;
    If you are using Labview to do that, you can take advantage of the shipping example named "Measure Buffered Period.vi". You can set that counter's source to be the 100K interanl time base, and route the events line to that counter's gate pin. At each event, the counting number will be stored at the buffer, and you can keep reading those numbers. as you know the frequency of the timebase, the elapsed time will be the counting number you read, times 1/100k. As you probably don't need much accuracy on the 10minutes counter, you can do that opeartion by Software, and stop the while loop after that time has been reached.
    Hope this heslps.
    Filipe
    Applications Engineer
    National Instruments

  • How do "you" monitor event logs in SCOM 2012? Need opinions.

    Fairly new to SCOM. Do you monitor all event logs? Just warnings and critical? How do you filter out things you don't want to see?
    Looking for opinions here not just a "how-to".
    Thanks,

    Steps in creating a Event based Alerting Rule.
    1. Open the Operations Manager Console. 
    2. Go to Authoring. 
    3. Under Authoring - Management Pack Objects - Select Rules 
    4. Right click on Rules and select - Create a new rule 
    5. Select Alert Generating Rules - Event Based - NT Event Log (Alert) 
    6. On the same screen select your destination management pack and click Next 
    7. Give a name to your Rule and optionally give it a Description. 
    8. Rule Category can be anything you like. 
    9. Select the Rule Target as the class of your choice, normally it can be Windows Computer. 
    10. Make sure the Rule is Enabled and select Next. 
    11. Select the Event log name from where event will be monitored and click Next.  (for example Application or System
    or Security) 
    12. Build the Expression to filter the events with the below details: 
         a. Parameter Name = Event ID, Operator = Equals and Value = (any event id of your choice) 
         b. Parameter Name = Event Source, Operator = Equals and Value = (any source of your choice) (you
    may delete this filter if you want) 
         c. Click on Insert button at Top and it will put the cursor at Parameter Name, click square button
    with 3 dots [...] and it will popup another screen. 
         d. In that box, select the 3rd radio button named 'Use parameter name not specified above' and there
    manually type 'EventDescription' (without quotes) and click OK. 
         e. Then come back to filter screen, now here you will see Parameter Name = EventDescription, and
    for Operator select Contains and then for Value you can type any word you want to key on from the Event description. 
    13. After building the desired Expression, click Next. 
    14. Configure Alerts as you like and click the Create button.
    To get the Alerting event details. Go to Start menu and in Run window type eventvwr.
    And put the details on the wizard as per the below screenshot.
    Refer: http://blogs.technet.com/b/operationsmgr/archive/2008/11/12/opsmgr-2007-how-to-create-an-alert-rule-based-on-an-event-description.aspx
    Gautam.75801

  • Generate an event from another event

    Hello,
    What im trying to achieve is once a user presses the enter key in a Text Area, it generates another event which is 'pressing a button' without actually physically doing it.
    private JButton btn = new jButton("Submit");
    private void msg_taKeyReleased(java.awt.event.KeyEvent evt) {                                  
        if(evt.getKeyCode() == KeyEvent.VK_ENTER){
           // generate event that clicks button without doing it physically
    } Does anybody know how to do this?
    Thanks

    I would use key binding: [http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]
    Demo:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class KeyboardBindingExample {
      public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    new KeyboardBindingExample().launch();
        private Action click = new AbstractAction("Submit") {
            public void actionPerformed(ActionEvent evt) {
                System.out.println("click!");
        void launch() {
            JTextArea text = new JTextArea(20,60);
            JButton submit = new JButton(click);
            JPanel south = new JPanel();
            south.add(submit);
            InputMap im = text.getInputMap();
            ActionMap am = text.getActionMap();
            Object key = click.getValue(Action.NAME);
            im.put(KeyStroke.getKeyStroke("ENTER"), key);
            am.put(key, click);
            JFrame f = new JFrame("KeyboardBindingExample");
            Container cp = f.getContentPane();
            cp.add(new JScrollPane(text), BorderLayout.CENTER);
            cp.add(south, BorderLayout.SOUTH);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

Maybe you are looking for

  • End user migration

    I am moving from a be5k to a be6k I am also going from non LDAP to LDAP integration The end users IDs in the current Be5k environment match the userId as defined on on LDAP My question is what is the best way to accomplish this with the least amount

  • Photo Stream album not listed. I have to go to iCloud to access it. ?

    Trying to add photos to my photo stream. I originally have a Photo Stream on my old PC, which is now in the closet. I have all my photos on my mac. How do I access my Photo Stream? In my iPhoto, it only shows up when I go into iCloud. I don't have th

  • Helps Needed!!Database on Radio Buttons

    Hi i am currently working on a voting system whereby the data will be stored in ODBC..I am not able to use JRadioButton to store into the database access and I need helps fromwhoever can help mi..will appreciate greatly.thanks.. My codes are as follo

  • Subscribed calendars

    My subscribed calendars in iCal don't show up on my calendar in Mobile Me. Can I view these in Mobile Me? Can I subscribe to a web-based calendar in Mobile Me? And how does this work in the iCloud calendar?

  • Broken mute switch

    So many of the forum posts are questions and complaints, but I just thought I'd take a moment to compliment and thank Apple, their stores and Geniuses. Yesterday I noticed my iPhone's mute switch had broken off (no idea how that happened - I am not t