Is it possible to count '0' events with 6229?

I have set up a buffed edge counting which works fine with our E-series
boards. Using a new NI 6229, however, the same program returns
minimally 1 count.
It seems that in the case that the signal frequency is
lower than that of the timebase (in our case ctr0 is producing pulses at a
frequency of 1kHz, ctr0out->ctr1gate, signal to be measured arrives
at ctr1source) the card completely ignores the timing. Example: with
1kHz at the gate I would expect to read 1000 datapoints per second; if
the signal runs at a lower frequency than 1kHz I read a number of
datapoints corresponding to the signal frequency (all value "1"). 
At higher signal frequency it seems to work as expected.
I have tried a different BNC-2110 box and switching the order of the
counters (ie using ctr1 as timing device and ctr0 as the actual
counter), but this problem remains.
The cabelling has been done according to the NI-6229 port/pin scheme
found in the documentation directory of Labview. (ctr0out is BNC on the
box, ctr1gate=pin41=PFI4 on the box, ctr1source=pin42=PFI3 on the box;
for opposite configuration ctr1out as on box, ctr0gate=pin 3=PFI9 on
box, ctr0source=pin 37=PFI8 on box).
I would be very thankful for any help with this,
Gerhard
my apologies for the cross-post, but I put this question first up in the wrong discussion board.

The behavior you are seeing when no edges occur on your event counting terminal are the result of not enabling duplicate count prevention. In DAQ 7.4, the default behavior of duplicate count behavior should enable this for you by default, but if you cannot upgrade to DAQ 7.4, I'd enable "duplicate count prevention" attribute. There are a number of previous posts about this attribute, including this post.
I hope this helps!
gus....

Similar Messages

  • Is it possible to associate iCal events with photos?

    I use iCal both as an organiser and a diary. It would be cool if a few images from events could appear - perhaps based on the image metadata (keywords, date etc). For example, it would be cool if an image of a friend appeared for their birthday, or a few holiday snaps appeared on my notes about it. 
    Anyone know if this is possible? See mock-up for a visual explanation: http://i.imgur.com/0Ck0Q.png

    dlabc563,
    This post should help you subscribe to U.S. Holidays: How to add US Holidays to Calendar?: Apple Support Communities.

  • Connect event with to-do item

    Hi,
    is it possible to connect an event with an to-do item in iCal?
    For example I have a meeting (event) next week and have to do a research (to-do item) before this event.

    Bug continues on 10.5.1: After editing, a duplicate of the note is sometimes created that reflectes the state of the note some time before the editi was made (often part way though). For a while, the note and the duplicate just hang out, then after a while (often after restarting Mail, it seems) both the duplicate and the original copies itself every time it is touched. Deleting any of the copies destroys any todo information in all of the notes derived from the original note, and deletes all notes with the same name (usually all the notes derived from the original, unless some renaming was done in an attempt to rescue the situation).

  • Can i Count digital edges with all three channels on a 9421 cDAQ

    Hi!
    We have just purchased a Compact DAQ with NI 9203, NI 9217 and a digital card 9421. In the application for which these parts have been purchased I want to measure flow, power, pressure, temperature and water and energy consumption of a sterilizer. I have connected the flowmeters, and pressuremeters to the analog current card 9203, the RTD termomters to the 9217 and three digital pulse outputs from two flowmeters and a poweranalyser to the 9421 card. I have configured the analog inputs on 9203 and 9217 to my satidafction. But now to my question. I want to configure VI to count the digital edges from the three channels in the 9421. I know that the card only has two counters but since my pulses only has a frequency of approximately 1 Hz I believe that i in some way should be possible to count the edges with a regular digital input channel as well.
    I know I have signal from all three pulse outputs to the 9421 card, since I have tested this in the Measuremnet & Automation explorer.
    Do I need to add an extra DAQ-assistant to be able to acquire the digital signal parallell to the analog signals from the two other cards?
    And is it possible to count the edges of mylow frequency on say for example channel di0, di1 and di2 as i wish and not only on di0 and di5 which I think are the counter-channels?
    Do i need to put the 9421 card in one particular slot on my cDAQ-station, this I also ask since my pulses frequnency is low and I don´t now if i really need to use the counter on slot 5-6 to count my pulses?
    Attachments:
    Measurementbench.vi ‏143 KB

    Hi Gravy Train,
    I'm curious about why you are using 2 loops.   You mentioned one is for monitoring and one is for DAQ....what do you mean by that?   What is the overall goal of this piece of code.   Also, I noticed that you are not closing the task.   Since this is just a subset, I realize you could be closing it in your actual code, but just in case you're not.....it is very important that you close all tasks when you are down acquiring data.
    Best Regards,
    Starla T  

  • Count digital events on a Counter with pci-6602 with callback on CVI

    Hi,
    I'm using a PCI-6602 card with CVI 8.5 and I need to trig on event.
    On every pulse I received, I need to do some actions like increasing a counter, send a message on Rs232 etc.. I don't want to do any loop checking that the counter value has changed. I would like to use a callback to execute this code only on the edge or counter value event.
    My problem is that I don't know which function can do this. Is there any way to get an event on a pci-6602? 
     Thanks 
    James 
    Solved!
    Go to Solution.

    Hello.
    It's completely possible to create a callback that will allow you to do what you want when a edge will occur on an external signal you define.
    To do this, you can for exemple create a counting edges task that will use one of the 6602 counters,and the set your external signal to be the source of your sample clock.You'll then be able to register a callback with the function DAQmxRegisterSignalEvent, and your callback will be called each time an edge will occur on your specified sample clock source.
    Here's 2 links that explain the events in DAQmx and how to handle them in CVI. The example ReadDigChan-ChangeDetectionEvent.pr that ships with DAQmx examples (Hardware Input and Output<<DAQmx<<Digital measurements) can be very useful to understand how to do. This example creates a signal event callback to detect change detection for digital inputs.
    Regards.

  • Is it possible to enter events into a specific iCal calendar, then print a list of those events with the name and date on a single sheet?

    Is it possible to enter events into a specific iCal calendar, then print a list of those events with the name and date on a single sheet?  I don't need the calendar grid.  I just want a list of events on a particular calendar, and their dates.  Is that possible? 

    Not easily. Two possibilities:
    1) If all the events have some common feature (eg you have included "XXX" in all the summaries), search for that feature then select and copy the found items at the bottom of the window. You can then paste them into TextEdit or a spreadsheet for printing
    2) You could write an Applescript to locate the events and write them into a text file for printing.
    The first one will probably give you what you want.

  • Can I set up new events with leaps?

    I've tried to set up some Maya calendars on iCal without success. My idea has been creating a group of calendars made up by "full day" events, in which every event represents a day, and every calendar, a count. The point is that in those calendars there are always leaps that are repeated every while, and as far as I've done, after a leap happens, I must re-start to create the same events. Am I clear?
    Let's make an example. Imaging a calendar made up by four days (too short, but its for the example). I have created an iCal calendar with four events, and each one is set up to be repeated every four days; till this point it works as desired. But there's a leap of one day that happens every year, and I haven't been able to set it up; after erasing the event of that day, I must re-start to set up the future (four, for this example) events... Can't I set events with leaps on iCal?
    I've also thought about another possible way to set a calendar like that. I found a table for finding out the correspondence between Gregorian calendar and a 260 days Maya Calendar, by making an adding. There's a number for each month of the year, and also every year has a number. You have to add the number of the month plus the number of the year plus the number of the day of the month, and only if it is higher than 260, you will need to subtract 260; thus you will know which of those 260 days is today (or another date).
    So, if I can set an iCal calendar using something like "if today is 2nd =2, of June =151,  2011 = 7; add 2+151+7; and if answer is higher than 260 subtract 260; so day number is 160". I could also set some other calendars from that one, like "if answer is 109 or 110 or 111 or 112, then "codon" number is X. Any suggestion for creating an iCal calendar like that from other way, like Developer Apps? Or if not for creating an iCal Calendar, maybe for making a Widget?
    Thanks for your attention.

    Am I not clear? I guess I got excited trying to be clear explaining details... But got dark!
    And if I just say, Can I create an iCal Calendar event, set up to be repeated every monday, but after a specific date, be repeated weekly every tuesday? If not on iCal, another advice?
    Thanks in advance!

  • Splitting an event with only only clip

    Is it possible to split an event that contains only one clip into two events?
    Documentation indicates that in an event with at least two clips it is possible, but with only one clip selecting a thumbnail where the split is desired leaves the 'split at clip' option under the file menu grayed out.

    If you can find a single frame or group of frames that can be rejected (and are near the point where you want to split), reject them and move to trash. Now you will have two clips, and it can be split into two events.
    If you don't want to lose any frames, best option is Quicktime Pro.

  • How to cancel an edit to an iCal event with attendees

    I keep running into this--
    - Open an existing event with attendees
    - Make an edit of some kind
    - Change your mind
    - Forget what changes you made and/or not wish to let everyone already invited know that iCal is sometimes as crappy as Outlook.
    - Only have the options to keep editing or send/update (i.e. send the updates to everyone)
    There are lots of discussions about this:
    https://discussions.apple.com/message/10084804#10084804
    https://discussions.apple.com/message/10929297#10929297
    https://discussions.apple.com/message/10760583?messageID=10760583
    https://discussions.apple.com/message/10471977?messageID=10471977&amp%3b#1047197 7
    The concensus seems to be that you can't do it.
    However this seems to work for me (when I'm desparate):
    Quit iCal
    Go to the "Library" folder in your home directory, then to the "Calendars" folder  (i.e. ~/Library/Calendars)
    Delete the files "Calendar Cache~" and "Calendar Cache~"  (you don't need to empty your trash)
    Reopen iCal.  It will resync the calendar.
    I've only tried this with Exchange calendar items that have already synced with the server, so your milage may vary.  I suppose it's possible that you may lose data this way.
    Hope this helps someone since it doesn't seem like Apple is going to fix this anytime soon!

    In step 3 above I said delete "Calendar Cache~" twice.  I meant: delete "Calendar Cache" and also "Calendar Cache~" if that exists as well.

  • Terminating Event with Decision Step

    Hi,
    In our purchase requisition approval workflow, I need to have a decision step in which to prompt approver to either approve the req. or reject the requisition.  In this decision step, I need for it to have terminating events for "SIGNIFICANTLYCHANGED", "RELEASE", "REJECT" and "RESET".
    First, I copy the generic decision task 8267 to my my own custom decision task.  Then I added a BUS2009 in the container, releasecode and other needed elements.  In this custom decision task, I was able to add these terminating events that has been defined in the BUS2009.  I was able to setup binding, except the one binding
    Terminating Event  ->   Task
    &_EVT_OBJECT&      ->   &_WI_OBJECT_ID&
    Since the &_EVT_OBJECT& for the terminating event is BUS2009.  And the custom decision task &_WI_OBJECT_ID& is DECISION business object. They're incompatable business object.  So I replaced that binding with
    Terminating Event     ->  Task
    &_EVT_OBJECT&    ->   &PURCHASE_REQ&
    After all the configuration has been setup.  I created a new purchase requisition.  Upon the RELEASESTEPCREATED event, it create a custom decision workitem in my agent's inbox.  When I triggered the "RELEASE" event, it is however not terminating my custom decision workitem.  The workitem still sits in the agent's inbox waiting to be execute.
    Is it possible to setup terminating events for decision step?  Any kind of suggestions or inputs would be greatly appreciated.
    Thank you.
    Jennifer Tran
    System Analyst

    I will suggest you to create a fork with 2 parallel branch and 1 necessary branch. Put the approval step in 1 branch and the wait for Release step event in another branch in this way you can suffice your requirment.
    Thanks
    Arghadip

  • Controlling event with two controls

    Here's what I have.
    I have two separate Time loops. Inside each timed loop I have an event structure. Each even structure is trigger by pressing a button each. This works just fine.
    However, I'd like to add a third button, that executes both event structures. I want to do this without creating additional events in each structure. Is this possible to somehow wire this third button to the other two and trigger the two based off the action of the third? I'm having trouble getting that to work.
    Thanks
    Message Edited by crazyjay on 02-24-2010 09:15 PM
    Solved!
    Go to Solution.

    Quick example
    Attachments:
    Event with Value Signaling.vi ‏12 KB

  • Is it possible to get component associated with DefaultListSelectionEvent?

    Hallo,
    Is it possible to get component associated with DefaultListSelectionEvent, please?
    There are multiple tables in my window. All tables (must!) have same TableSelectionListener. Problem is that there's no information about component in default list selection model implementation. When fireing events DefaultListSelectionModel use self as event source (see DefaultListSelectionModel.fireValueChanged fragment below).
    e = new ListSelectionEvent(this, firstIndex, lastIndex, isAdjusting);Any ideas how to get component in ListSelectionListener.valueChanged, please? But don't forget that as a programer, i am the lazy. Thus implementing new selection model is not an acceptable solution, but class extension is :p
    One idea is to remember models component in constructor and override DefaultListSelectionModel.fireValueChanged like this:
    class MyGreatListSelectionModel extends DefaultListSelectionModel {
       protected JComponent boss;
        public MyGreatListSelectionModel(JComponent c) {
            boss = c;
        @Override protected void fireValueChanged(int firstIndex, int lastIndex, boolean isAdjusting)
            Object[] listeners = listenerList.getListenerList();
            ListSelectionEvent e = null;
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == ListSelectionListener.class) {
                    if (e == null) {
                        // Only changed 'this' to 'boss'
                        e = new ListSelectionEvent(boss, firstIndex, lastIndex, isAdjusting);
                    ((ListSelectionListener)listeners[i+1]).valueChanged(e);
    }This should work, but if there already exists some mechanism, such extension is just slowing app down.

    Thanks for your help.
    However I could not get the result. I am using following code:
    public void myaction(ActionEvent event)
    FacesContext context = FacesContext.getCurrentInstance();
    UIViewRoot view = context.getViewRoot();
    UIComponent UI = view.findComponent("tab");
    if(UI == null)     
         System.out.println("UI Not Found ");
    else
         System.out.println("Get Current FecesContext");
    There is an Component having id "tab" is available on JSF page but I am getting "UI not Found" every time. Is there somthing wrong...Please suggest.

  • Possible to synchronyse Iphone calendar with Window Mail calendar ?

    I am using Windows Mail (default mail software delivered with Window Vista)on my computer and would like to synchronyse Window Mail calendar with my newly acquired Iphone 4. Unfortunately, calendar synchronisation settings proposed by Itunes don't seem to recognize Windows Mail (only Outlook proposed). Is it possible to perform such synchronization with Window Mail and if yes what is the process ?
    In addition, would Outlook Express be proposed in the synchronization settings if loaded on the computer ?
    Many thank in advance for your answers.

    No.
    Syncing calendar events is supported with Outlook 2003, 2007, or 2010 along with syncing contacts and notes.
    The iPhone does not sync with Outlook Express or with the Outlook email client. The iPhone supports syncing contacts with the address book app used by Outlook Express with XP, or with the address book app used by Windows Mail with Vista and Windows 7.

  • How to count ONLY fields with a specific value

    I modified the code below from the API reference to count combobox fields with a value of "MT" so I could total the number of a specific choice the form user input.
    var count = 0;
    for (var i=0; i<this.numFields; i++)
    var fname = this.getNthFieldName(i);
    if ( this.getField(fname).type == "combobox" && this.getField(fname).value == "MT" ) count++;
    this.getField("mTurb").value = count.value;
    Here's the problem: I tried to use a similar script, modified only slightly from this form, in another total field to tally a different choice made with comboboxes and the script continues to tally the first choice. An example of one of the modified versions of the script is below.
    var gcount = 0;
    for (var i=0; i<this.numFields; i++)
    var gname = this.getNthFieldName(i);
    if ( this.getField(gname).type == "combobox" && this.getField(gname).value == "MT" ) gcount++;
    this.getField("gPack").value = gcount.value;
    I suspect I'm just missing something painfully obvious to seasoned scripters, but I can't seem to figure it out and I need this script to be able to count the number of 9 different options in the comboboxes.

    OK, you can use a script like the following as the custom calculate script for the text fields that perform the counts:
    // Custom calculate script for text field
    (function () {
        // Declare and initialize variables
        var fn, s = "MT", count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    Change the value of the "s" variable to match the item that you want to count. The first and last lines prevent the unnecessary creatio of global variables, which is good. It also makes it easy to transfer to a more general document-level routine, which would be event better, something like:
    // Custom calculate script for text field
    function getCBCount(s) {
        var fn, count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    You would then call this function from the individual text boxes with the following custom calculate script:
    getCBCount("MT");
    and replace "MT" with the vlaue you want to count.

  • Synchroniz​e hardware timed buffered counter acquisitio​n with buffered analog input acquisitio​n

    LV7.1
    DAQmx
    PCI-6036E
    SC-2345
    Windows 2000
    Greetings.
    I am simply trying to synchronize AI readings with readings from one Counter.
    I am trying to perform buffered analog input synchronized with buffered counter acquisition.
    I'd like the AI acquistion to trigger the Counter acquistion.
    I'm currently setting the Sample Clock Source for the CI Cnt Edges Task to "Dev1/ai/SampleClock" but when I try and set the source for the "DAQmx Trigger" I can't seem to select one that works. I assumed that the source should be the "Dev1/ai/StartTrigger" but that produces and error as does selecting any of the PFI's.
    I'm new to DAQmx and didn't have any luck with the examples or what's been previously posted.
    Thanks for your help.
    Attachments:
    Initialization.jpg ‏84 KB

    Gentlemen-
    All of your initial help was great. I had some noise on my counter lines so switched from an E-Series card to a PCI-6259 M-series card in order to use the counter digital filters.
    Now I can't get a corellated buffered counter and buffered analog input acquistion to work. This same code worked fine on an E-series card but it doesn't on the M-series.
    I verified that the source and gate of the counter are working properly using the test panel and a external function generator.
    But when I run the attached code I get no data out of the "Counter 1D U32 NSamples", only an error saying that the timeout of the function was reached and no count data became available. Am I missing the specification of a another clock or something?
    The counters also work fine using the M-series example code "Count Digital Events (M-Series DAQmx) but this is not a buffered acquisition.
    Any help would be greatly appreciated.
    Steve
    Attachments:
    Sample_Code.jpg ‏136 KB

Maybe you are looking for

  • Hdmi adaptor won't mirror iPhone ????

    Bought a hdmi cable for my iPhone 4s when I connected it to my tv first it didn't connect saying unsupported signal check device out pitt,after several tries it stared mirroring but the same problem

  • How to raise application error and preserve open cursor...

    Hello, I have to raise an application error under certain circumstances. In some cases there's an open cursor that has to be read by the calling application anyway because there are data that have to be read. In other cases the cursor does not have t

  • Error in PST migration using PST Capture tool

    Hi, I'm trying to migrate some local PSTs to our Exchange Online mailboxes. We have all Office 365 Small Business. I've tried to use PST Console with Agents correctly installed on the domain PCs, I installed the console on my PC and I see all of them

  • Qosmio F10-125: Picture Enhancement Utility & Media Center 2005

    I have an F10-125 and when Toshiba Picture Enhancement Utility is on and Fn F5 is in LCD mode only and you use Media Center 2005 their is a bright mark in all screens in right hand botton of LCD Screen and it is not a dead pixel. I have tried everyth

  • Windows 2003 EE vs RedHat EL

    Hello there, We are in the beginning stage of implementing a 10g RAC solution for large data warehouse (2-3TB). We are considering Red Hat EL and Windows 2003 EE 64bit operating systems. Does anyone have any experience regarding 10g RAC and these ope