Want to "ignore previous" ActiveX Event using callback vi/dynamic events in event structure (LV 7.0)

hi there
LV 7.0: i'm using a callback vi with an registered ActiveX event (MSComCtl ToolBar/ButtonClick). i wait for the event with an event structure using dynamic events. how can i wait "ignore previous"? (like i did in LV 6.1 with the "Wait On ActiveX Event.vi").
thx in advance
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"

hi sebastian,
here's my code. it uses the ToolBar Control from the MsComCTL. in case you don't have a development license i put an executable to the zip.
i want the event structure to ignore any pending events
(like the old style solution with "Ignore previous" = TRUE).
best regards
chris
Best regards
chris
CL(A)Dly bending G-Force with LabVIEW
famous last words: "oh my god, it is full of stars!"
Attachments:
ActiveX_Events_LV_7.0_(using_MsComCTL-ToolBar).zip ‏234 KB

Similar Messages

  • I want to ignore the DTD

    I'm processing an XML file with a DTD that I want to ignore. I'm using the the DOMBuilderFactory...have tried setValidating(false) as well as setNamespaceIgnore(true). No luck.

    Please don't multi-post.
    Although this is the proper forum to post in, I answered your first posting here: http://forum.java.sun.com/thread.jspa?threadID=721108&messageID=4159916#4159916

  • Emergency - Please Help LV6.1 win2k Wait on Event 'Ignore Previous' Doesn't work

    I am using an activex control to access an OCX for IRDA communications. My
    VI is setup to wait on events, The event name is 'OnDataAvailable' I have
    selected 'ignore previous' on the activex wait on event subvi but both my
    events fire simultaniously. I have read this is a multithreading problem in
    windows 2k and XP and by changing the execution thread to user interface it
    can be resolved, that didn't work. Please help any information would be
    greatly appreciated. I am using the OCX to comm to an IRDA device which is
    written in the IRLPT protocol. Labview doesn't support IRLPT service names
    in the IRDA functions.
    Franticly awaiting,
    Jamie

    Can you post a stripped down Vi? Are you using activeX events or the event structure?
    Jeremy

  • Using callbacks with a USB connected VISA instrument?

    I have an Agilent 34972 connected by USB to a Windows 7 machine. I am using LabWindows/CVI and the VISA drivers.
    I cannot find a way to setup a callback which will react to an ALARM event on the Agilent, ie. the Agilent is set up so that certain signal combinations generate an alarm (it could be any other event in the instrument for that matter - it ends up in the STB register, similar to that on a GPIB instrument) and I want my LabWindows program to react to this event (e.g. run a callback routine). With GIPB I have the ibnotify() etc., but I cannot find the equivalent on this combination (USB/VISA).
    Any ideas?
    Solved!
    Go to Solution.

    Well, it always help formulating ones problem into a question. Sometimes it get you out in corners of the documentation you didn't see the first round. So I solved my problem with the following snippets - if anyone else ends in the same alley as I. AM I doing to much, or should things be arranged differently? At least it works.
    In the main program I have:
    vierr = viOpenDefaultRM (&sesHandle);/* open a VISA session */
    vierr = viOpen (sesHandle,
    "USB0::0x0957:: .......::0::INSTR",
    VI_NULL, VI_NULL, &agHandle);/* connect to the instrument */
    bufferHandle = (ViBuf)malloc(MAX_CNT+1);/* I don't know what this is for ... MAX_CNT is 1024 */
     vierr = viInstallHandler(agHandle, VI_EVENT_SERVICE_REQ, myCallback,
    bufferHandle);/* Tell the driver what function to call on a SRQ event */
    vierr = viPrintf (agHandle, "*CLS\n");/* Clear message queues on the Agilent */
    vierr = viPrintf (agHandle, "STAT:ALARM:ENABLE 2\n"); /* Enable alarm 2 - the criterea to raise ALARM2 are set elsewhere */
    vierr = viPrintf (agHandle, "*SRE 2\n"); /* Enable RSQ on Alarm register */
    vierr = viEnableEvent(agHandle, VI_EVENT_SERVICE_REQ, VI_HNDLR, VI_NULL); /* Enable the driver to detect events */
    The CallBack is defined prior to main as
    ViStatus _VI_FUNCH myCallback(ViSession vi, ViEventType etype,
    ViEvent eventContext, ViAddr userHandle)
    ViStatus status;
    ViUInt16 stb;
    status = viReadSTB(vi, &stb); /* Read the stats bit */
    if (stb & 2) { /* Check that it is an alarm - bit-mapping is device dependent */
    /* do the actions for the alarm state */
    vierr = viPrintf (agHandle, "*CLS\n"); /* Clear the status - this is necessary to be able to call again */ 
    return VI_SUCCESS;

  • I want to show previous test result on uut screen?

    Hi.
    I'm using Test Stand 2013. I want to show previous uut result on new uut screen. How can i do it? Which variable can i use for it?

    You could store the previous results using the PostUUT callback (or near that if you are changing the process model directly) and store the result status in a FileGlobal indexed by testsocket index. For example something like:
    FileGlobals.LastTestSocketStatus[RunState.TestSockets.MyIndex]
    To make sure the array is big enough you could dynamically size it somewhere using SetNumElements() once you know how many testsockets there are.
    Hope this helps,
    -Doug

  • Performance of AQ when using callback procedure (using PL/SQL notification)

    I am enqueueing XMLType in AQ.XML file is large in size.NOw I want to dequeue the AQ using PL/SQL notification(using callback procedure which will call DBMS_AQ.DEQUEUE to dequeue the AQ and process the XML.After fetching the data from XML ,I want to store these data in another table columns).
    Please suggest,In this case which approach would be better to dequeue the AQ table :
    1.PL/SQL notification(using callback procedure)
    OR
    2.Scheduling the call to DBMS_AQ.DEQUEUE to dequeue the AQ table
    What would be the impact on performance of above two approaches?

    Hi,
    The question of performance is not down to the technique one employes to enqueue/dequeue, but at a basic level, is relative to the number of messages!
    The is what the Oracle documentation states:
    >
    When persistent messages are enqueued, they are stored in database tables. The performance characteristics of queue operations on persistent messages are similar to underlying database operations. The code path of an enqueue operation is comparable to SELECT and INSERT into a multicolumn queue table with three index-organized tables. The code path of a dequeue operation is comparable to SELECT, DELETE, and UPDATE operations on similar tables.
    >
    So, if anything, the dequeue is a fraction more time & resource consuming. However, it is only a "fraction". You could always add multiple subscribers to dequeue if you want!
    You could ofcourse choose to have non-persistent messages if your application does not need the kind of fault-tolerance that persistent messaging offers, which speed things up, but only a bit, so don't get too excited about it!
    There are other things to consider however, which you may wish to read up on before getting bogged down on whether you should use notification or the scheduler:
    - Is your system clustered?
    - Concurrency on a single queue (i.e. multiple enqueues/dequeues, but single queue)
    - Propogation latency issues
    Read about these and much more at:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14257/perform.htm
    Finally, whether you pl/sql notification or not and whether you use dbms_scheduler is down to your application requirements!
    P;

  • Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File - Export - Album name with number).

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

    Why does iPhoto (9.0/11) not retain the Event name when exporting more than one event? (using File -> Export -> Album name with number).
    Exporting a single Event retains the Event name which is what I'd expect. But highlighting more than one event and exporting it renames the images to Events 001.JPG, Event 002.JPG etc.
    I was recently on holidays and had all my events nicely split on Dad's computer but when I went to export it I couldn't retain any of this information. Now I have to replicate this all again on my computer.
    It wasn't possible to export the entire library as the external drive was fat32 format an I didn't want all of it. It would be nice to export a bunch of events to someone and have it retain the name.
    Does anyone have a work around or will this be fixed at some point by Apple?

  • How to ignore the empty file using Receiver file adapter with Coma separato

    Hi,
      I am trying to create the .csv file at the receiver but when there is no data I wan to ignore the file even I do not want to create the file with comma also (I just went and check in my file system created with commas)
    Source1 -> T1
           T1
            -> S1
                  ->Field1
                  -> Field2
    Because I am using receiver side FCC populating with empty node
    Based on condition T1 is populating when condition fails I am populating target T1 and structure elements are mapped with constant. 
    Ex: Target payload when condition failed below data is populating ..
    In this I want to ignore creating the file.
    <T1>
    <S1>
    <Field1/>
    <Field2/>
    </S1>
    </T1>
    Here Is the my content conversion parameters,
    S1.fieldNames - Field1,Field2
    S1.fieldSeparator - ,
    S1.endSeprator u2013 u2018nlu2019
    I used processing tab u2018Ignoreu2019 option id did not worked. Appreciate your help. 
    Regards,
    Venu.

    Hi Raj,
       I went my receiver mapping signature tab I chagned occurance from 1 to 0..1
    then my mapping got lossed now message type level I put the condition. When my condition not satisfy I am not creatin gthe target node itself.(I mean here message type) Messages ->message1 only is creating..
    but in SXMB_MONI below error I am getting..
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>Split mapping created no messages</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Split mapping created no messages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks for your response.
    Regards,
    Venu.

  • I bought a new Macbook Pro, how can I get my very old macbook cleared of my stuff so I can give it to my grandson. I just want him to be able to use it.

    I bought a new Macbook Pro, how can I get my very old macbook cleared of my stuff so I can give it to my grandson. I just want him to be able to use it.

    Put your install DVD into the optical drive (CD/DVD drive) and reboot. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option Key until the Install Disk shows up) until the apple shows up. That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window.
    Completely ignore this window and click on Utilities in the top menu and scroll down to Disk Utility and click it. You should see your hard drive in the left hand column along with your other drives. Click on the drive and select the Erase tab. Set the format value to Mac OS Extended (Journaled) and click the Erase button. After that has finished select the Partition tab. Type in a Name for your hard drive and select how many partitions you want from the Volume Scheme. The usual setting is one partition. Click on the Options button after you've selected a partition to make sure it's set for GUID. Then click the Apply button and after the Partitioning is done quit Disk Utility.
    You can now follow the instructions on the install screen             

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

  • I don't seem to have View anymore. I can't fix my screen. Why is Mozilla deciding that I should ignore threads. I don't want to ignore threads. I can't fix this

    I am really distressed that Mozilla apparently unilaterally decided I should not see all my threads. I DO want to see all my threads. In fact, one reason I don't get my mail from a website is that I don't like my messages grouped according to threads.
    The instructions given in the Ignoring Threads article do not seem to match my computer. Here are the instructions: "To ignore a thread you select Message | Ignore Thread, or simply use the K (for "kill") keyboard shortcut." I don't see "View" or "Message" or "Ignore Thread." How can I fix this?
    (And please, Mozilla, stop making decisions for me. )

    View is in two places.
    First on the menu bar where it always has been. The menu bar is hidden in the newer versions of Thunderbird. Pressing the alt key or F10 reveals hidden toolbars.
    There is a new AppMenu button located in the upper right of the screen. It is a square area with 3 horizontal lines. View is located here also.
    Thunderbird is software that runs on your computer. It is configured by you.

  • I want to import sql file but some recode i want to ignore it and go on

    i have sql file it contine all data of anuther table i want to import this data
    to new table but i want to ignore some record (don't insert it in table)

    Can you be a bit more precise. Is it an export of the table data which you now wish to import ( would be easier to have exported just the rows you required ).
    If it is a text file you plan to import using sql loader then you could add a contraint on the database to discard those rows.
    Alternatively you may need to have a holding table to delete the records not required before you add them to the new table.

  • I'm using imovie 10.0.3 with OS x Version 10.9.2.  or some reason I can't double click on iphoto events to siadplay the pictures within that event. I've rebuilt my iphoto library, but nothing seems to work.  Any help would be appreciated.

    I'm using imovie 10.0.3 with OS x Version 10.9.2.  or some reason I can't double click on iphoto events to siadplay the pictures within that event. I've rebuilt my iphoto library, but nothing seems to work.  Any help would be appreciated.

    Hello All,
    Also no answer but am having the same problem.  All my catalogueing via folders is up in smoke and no external HDs (where I would normally directly store raw footage when importing) showing up on the iMovie interface.  It is a pain the arse to go back to the earlier version - why APPLE, pray tell, do you continue to lower expectations user-friendly functions. Shall try the option+open for a library but this too is extremely inconvenient if it works like iPhoto because you have to log out to log in to a new library whereas I just want to be able to see my multiple HDs directly from the iMovie menu and then the folders within folders I have layered in there - to make it easy to FIND STUFF. Wake up Apple, you are NOT meeting your customer's needs or desires.
    Thanks to the posters who are helping the rest of us lost in the dark with possible solutions - free fix-its for Apple which they don't deserve.

  • I want to extract the Solaris media using "unpackmedia" option

    pack and unpack options operates on only miniroot archives and not on whole Solaris media.
    I want to extract the Solaris media using "unpackmedia" option.
    unpackmedia option of root_archive internally extract miniroots and additionally it extracts X.cpio.bz2 and pkg_db.cpio.bz2 based on some manipulations.
    man page of root_archive on solaris 11 still shows the information about these two removed options.
    Please let me know is there other way to achieve operations same as provided by unpackmedia option?
    Regards,
    Umesh

    When you intermix java/javascript code like this you have to realise the order in which this occurs.
    1 - all java code is executed - produces a static html
    2 - html is loaded, and javascript is run.
    So you can't run java code from an onClick event on the page.
    You have to submit a request (ie submit form/click link) to run java code, and it sends a response (new page) to the browser.
    So what you would end up with is code like this on your page
    Assuming you have three items in your list: {Item0, Item1, Item2} this will be the result:
    var z=0
    // for item0
    c.options[z]=new Option("Name0",Id0)
    z++
    c.options[z]=new Option("Name1",Id1)
    // for item1
    c.options[z]=new Option("Name0",Id0)
    z++
    c.options[z]=new Option("Name1",Id1)
    // for item2
    c.options[z]=new Option("Item0",Item0)
    z++
    c.options[z]=new Option("Item1",Item1)Suggestions as to what is wrong with this code
    1 - you only increment z once on each loop, but save two items.
    2 - you aren't using your counter 'I' in the get method.
    3 - you might need quotes around the values as well as the names.
    Personally, I think you're going the entire wrong way about this.
    Should you be using public static variable attributes? Are these values to be the same for every single user in the system?
    I would prefer to use a jsp scope (application scope if it is for all users) and just generate the html for the select right onto the page, rather than generating javascript to run and build the list.
    I would also use JSTL
    ie
    <select name="mySelect>
      <c:forEach var="asset" items="${assetList}">
        <option value="${asset.id}"><c:out value="${asset.name}"/>
      </c:forEach>
    </select>

  • Get previous bill date using SQL

    Hi,
    I am table which holds records for bill generation. I have column name gene_bill_date which is date field and it holds a value the date on which the particular bill was generated.
    Now I am trying to get previous bill date, not the current bill date. I can to Max(gene_bill_date) to get current bill date, but how do I get previous bill date?
    thanks

    Hi,
    Sorry, it's unclear what you're asking.
    You didn't post any sample data, so I'll use the scott.emp table to illustrate. Let's say we're interested in deptno=30 only, just to reduce the output from 14 rows to 6.
    If, for every row, you need to know the most recent gene_bill_date before the one on that row, you can do something like this:
    SELECT     ename
    ,     hiredate
    ,     LAG (hiredate) OVER (ORDER BY hiredate)     AS prev_hiredate
    FROM     scott.emp
    WHERE     deptno     = 30
    ;Output:
    ENAME      HIREDATE    PREV_HIREDA
    ALLEN      20-Feb-1981
    WARD       22-Feb-1981 20-Feb-1981
    BLAKE      01-May-1981 22-Feb-1981
    TURNER     08-Sep-1981 01-May-1981
    MARTIN     28-Sep-1981 08-Sep-1981
    JAMES      03-Dec-1981 28-Sep-1981Are you only interested in the 2 most recent dates in the whole result set?
    If so, do a Top-N Query , like this:
    WITH     got_r_num     AS
         SELECT     ename
         ,     hiredate
         ,     RANK () OVER (ORDER BY hiredate  DESC)     AS r_num
         FROM     scott.emp
         WHERE     deptno     = 30
    SELECT     *
    FROM     got_r_num
    WHERE     r_num     <= 2
    ;Output:
    ENAME      HIREDATE         R_NUM
    JAMES      03-Dec-1981          1
    MARTIN     28-Sep-1981          2 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

Maybe you are looking for