6254 Counter stops counting as frequency increases

I'm counting tach pulses (CI cnt edges) with a 6254. The DAQmx read is in a timed loop and passes the counter value to an indicator in another lower priority loop using shared variables. The counter counts correctly when the tach is turning slowly but stops counting when the tach speed increases. As the tach slows down the counter begins to count again. I think the maximum tach rate is about 4K..

Please refer to your other forum for more information and questions.
Regards,
Jordan F
National Instruments

Similar Messages

  • Convert a counter to frequency

    Hi,
    I am using two counters on a 6023E board. I have two pulse generators which
    give 1000 pulses in one rotation.
    How can I convert the counts to frequency or speed in LabView?
    Greetings,
    Erik.

    We found that the best way of obtaining speed measurement from a pulse generator is to use the buffered period measurement and scan some period (more than one), then eliminate the first measure (first period measurement may be incorrect due to the uncertainty in the start of measurement with respect to the slope of the signal), next average the measures obtained.
    The next step is to divide base time used (internal base time of 20 mhz for example) by the average measure obtained in the preceding step: this is the average period measurement and must be multiplied by 60 and divided by n. of pulses per round: this gives you the rpm value.
    Step two can be put in a loop in orded to obtain a continuous measurement, provided that you restart the counter once obt
    ained a finished reading from it.
    Roberto
    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?

  • Play Count does not increase

    Hey everyone...I've notice recently that when I have my iTouch connected to the computer and play a song the play count will increase, but if I'm just listening to it and then plug it back in, the play count has not increased. I listen to the songs in full, so I don't know why they won't increase in play count. Any ideas?

    i realise why Apple has changed this behavior....
    http://support.apple.com/kb/ht1202
    Now you can add music on multiple computers! (support page updated after iOS 5 introduction), thus playcount is no longer working when you are in Manually Manage Music mode... but instead of tracking individual libraries, they just kept it indepedent... and break the feature.
    Apple should've explained this... i lost some good playcount on my songs

  • ITunes 11 - Songs less than 10 seconds long - Play count doesn't increase

    The title pretty much sums up my problem. Installed iTunes 11 a couple of days ago and have noticed that any track less than 10 seconds long (of which I have quite a few) will play okay in iTunes but the play count doesn't increase when the track finishes. Anything 10 seconds or above increments fine.
    However, if the same short tracks are played on the iPod then it is synced, the play count goes up no problems.
    Is this a "feature" of version 11 or a glitch does anyone know?

    I recently started having the same identical problem when playing iTunes on my computer (WinXP).  Songs play and move between computer and iPod without problems. Songs under 10 seconds are noticably affected. The number of plays and last date played do not increment.  Haven't seen longer songs affected but really haven't been watching until now.  In one case increased the song length from 10 to 12 seconds. It now works.  But songs that did work that are under 10 seconds, now don't. Currently using v 11.0.2.06.  Nothing new installed on computer.

  • C#: Handle count is getting increased

    Hi,
    I have developed an application in C# that is doing some database operations.
    I am calling a method that is doing DB operation inside infinite do while loop and pausing the application for 1 second using Thread.Sleep(1000).
    When I left the application running for 2 or more days then I came to know that handle count(Displayed in Task Manager) has increased about 40000 and its growing contineously...
    Below is the sample code that I am using in my application:
    private static void Process()
                    try
                        do
                            if (oCon.State == ConnectionState.Closed || ((int)DateAndTime.DateDiff("n", DateTime.FromOADate(gDtHrConect),
    DateTime.Now, FirstDayOfWeek.Sunday, FirstWeekOfYear.Jan1)) >= 20)
                                fReCon();
                            DoSomeDbOperation();
                            Thread.Sleep(1000);
                        while (true);
                    catch
    Please suggest why handle count is increasing? is this issue related to Threading?
    high valume of Handles can create problem in the application?
    Please do let me know if you need further details on this.
    Thanks for your help.

    Hello Pramod,
    You could follow the suggestion from Joel, you could firstly comment out the “DoSomeDbOperation()” method to see if it then would work find without increasing the handle count. This would help narrow down this issue.
    And with your description, this issue seems to be a handle leak, then you could also check this blog below which would help you find what type handles leak:
    How to troubleshoot a handle leak
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help Counting high frequency voltage spikes

    Equipment:  NI USB-6229     (250 kS/sec Analog In., 16 bit DAC, 32 bit Counters and internal clocks <= 80 Mhz)
                          LabView 14
    Problem:
    I have an experimental application where I need to count voltage spikes (integer #) caused by electrons hitting a sensor. These spikes can be as frequent as 500,000 Counts/sec. The spikes are not going to be the same voltage everytime, but they will be visible above the noise so I need to allow the user to select a Threshold Voltage that triggers a real count rather than noise spikes.
    Attempts:
    To count such a high frequency, I deduce that I need to use a Counter Input to read fast enough, HOWEVER, I wasn't able to find a way to set a threshold voltage for a Counter Input because I believe they expect a TTL signal anyways, which I won't have. To set the threshold, I realize that Analog Input reads can be triggered at a selected level which is great but the Analog Input Sampling Rate is only 250kS/sec which won't catch every count in my project.
    I have a program that uses the Count Edges channel and it is accurate within 3% of the expected # of counts. I was just testing it with a function generator and the program doesn't count unless the signal's voltage is above 2-3 V which won't work for my application. I will post what I have. Does anybody know of a way to trigger off only at selected Voltage levels using counters, or know of a way to filter through the noise to get real spikes?
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    ElectronCountsTest.vi ‏29 KB

    Thanks for the reply johnsold. I didn't think to use a comparator but that is good to know that I have that option. I was and still am hoping for some kind of trick to do this programmatically.   One other idea that I was playing with is offsetting two or three different Reads on the same signal to read the signal at different times. If this is a possibility, it may be able to double or triple my sample rate to 500k or 750kS / sec. Anyone else have any ideas on this solution?

  • 6120 counter max frequency

    I am trying to set the max frequency for PCI-6120 counter. By the card specification, the counter's max source frequency is 20MHz. However, on MAX software test panel, if the counter frequency is set greater than 5MHz, program pops up an error stating the max valid value is 5e6 MHz.. Attached is the error message. Did I do anything wrong? Or special card setting is needed. Please help. Thanks very much.
    Attachments:
    NI 6120 counter error message.jpg ‏36 KB

    Hi windwalker,
    The max source frequency is 20 MHz. The source is an input to the counter which is divided down to produce the output signal:
    The default behavior is that the counter will count to N, and then toggle its output.  N must be at least 2, so the maximum frequency you can generate with the default (toggle) mode is 5 MHz (2 ticks high, 2 ticks low of the 20 MHz maximum source).
    The other mode is "pulse" mode, where the counter will count to N and then a pulse its output.  You can end up getting a pulse every 2 ticks of the source, which could give you a 10 MHz clock.  You can't set this mode in the test panels, but here's an example in LabVIEW showing how to get a 10 MHz output (the "External Clock" can be the 20 MHz timebase).
    However, if you're just trying to generate a 10 MHz continuous output, then I suggest using the Frequency Output which is a 4-bit counter that can output a small set of frequencies including 10 MHz -- {10 MHz,100 kHz} / {1:16}.  It is programmed similar to the other counters.
    Best Regards,
    John Passiak

  • Minimum Frequency for counter Pulse Frequency Generation

    Hello,
    What is the Minimum Frequency that the Counter Output Pulse Frequency VI can generate?
    If I need to generate a REALLY low frequency pulse train can I do that?
    Thanks
    Dan

    Hi Dan,
    If you don't explicitly specify a timebase, DAQmx will choose a default depending on the initial parameters you set up for CO Pulse Frequency.  For example, the following code should work on any DAQ device with a 32-bit counter and a 100 kHz timebase available (from my first post, 11.64 uHz is the minimum frequency in this scenario).
    So... your 10-100 second periods should be more than achievable.  The inverse of 12uHz is about 23.15 hours.
    If you're on a 24-bit counter the maximum pulse width would only be ~167.77 seconds (2^24/100000), giving a frequency of about 2.98 mHz assuming 50% duty cycle.
    The only way you should be getting an error at the 10-100 second durations that you are describing is if you start the task off at a faster rate (so DAQmx will pick a faster timebase by default) then modify it to output a lower frequency.  Rollover times for the maximum default timebases are as follows:
        E Series:   ~0.839 seconds (24-bit counter, 20 MHz timebase)
        M Series:   ~53.69 seconds (32-bit counter, 80 MHz timebase)
        X Series:    ~42.95 seconds (32-bit counter, 100 MHz timebase)
    If you want to set a different signal source as a timebase, you can do it with a DAQmx Channel Property Node:
    I'm afraid I don't really understand what you are trying to do specifically.  How does this "infinite" pulse length fit within the context of your application?  Why not simply write the line high in software?  What hardware are you using?
    Best Regards,
    John Passiak

  • How do you count the frequency of a boolean signal?

    Hi, I'm new to LabVIEW, so I suspect this is propbably quite a simple problem.
    I'm developing an optical tacometer for a model gas turbine engine. I have a boolean signal in labview which is switching at a frequency between 4 and 26Hz. I need a live readout of the frequency of this signal.
    Does anyone know how I could do this? Any help would be really appreciated!
    Many thanks
    Will
    Solved!
    Go to Solution.

    This vi should work for you
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    Calculate Frequency from boolean.vi ‏11 KB

  • How do you count the frequency of a booloen signal?

    Hi, I'm new to LabVIEW, so I suspect this is propbably quite a simple problem.
    I'm developing an optical tacometer for a model gas turbine engine. I have a boolean signal in labview switching between 4 and 26Hz. I need a live readout of the frequency of this signal.
    Does anyone know how I could do this? Any help would be really appreciated!
    Many thanks
    Will

    New post here...
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=481337
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • Counting word frequency

    Hi all,
    I'm very new to Java, only a few months into it. I am working on a program that compresses a file, thread, string. Firstly it takes a string of undetermided length as input and using the delimiter splits the string, then places that string into a list. Then from that list I take out the recurring words with another list and return the index of where the words are, this has been done without any problems.
    Next I want to get the word frequency and return the most common word into the first index following onto the next and so on. I am not sure how best to go about this. I did use a map but that just gives the frequency of the words without any ordering. Can anybody give me any suggestions that I could try bearing in mind that java is my first language so this is also a confidence building exercise.
    Many thanks to anybody who responds.

    littlejim4 wrote:
    Hi all,
    I'm very new to Java, only a few months into it. I am working on a program that compresses a file, thread, string. Firstly it takes a string of undetermided length as input and using the delimiter splits the string, then places that string into a list. Then from that list I take out the recurring words with another list and return the index of where the words are, this has been done without any problems.
    Next I want to get the word frequency and return the most common word into the first index following onto the next and so on. I am not sure how best to go about this. I did use a map but that just gives the frequency of the words without any ordering. Can anybody give me any suggestions that I could try bearing in mind that java is my first language so this is also a confidence building exercise.
    Many thanks to anybody who responds.Okay, so you have a Map with the 'word' as keys, and the 'frequency' as values, right?
    If so, create a class (WordOccurrence for example) that holds a "word" and "occurrence" variable. Let that class also implement the Comparable interface. Now, when you can do something like this:
    public static List<WordOccurrence> getWordOccurrances(String text) {
        // get the occurrence of each (unique) word
        Map<String, Integer> frequencyMap = getFrequencyMap(text);
        // create a lit to hold you WordOccurrence instances
        List<WordOccurrence> list = new ArrayList<WordOccurrence>();
        // for each word in your map, create a WordOccurrence instance
        for(String word : frequencyMap.keySet()) {
            list.add(new WordOccurrence(word, frequencyMap.get(word)));
        // sort the list of WordOccurrences
        Collections.sort(list);
        // return the sorted list
        return list;
    }

  • Skip count does not increase when song is skipped on ipod

    First, has anyone been able to see a skip added after syncing, since 4.2 came out?
    Second, is anyone familiar with what might have changed? Is there a fix I can't find?
    Thanks in advance

    I've had this same problem ever since iOS 4.2 came out. It's very frustrating as I use Skip Date to keep my commute playlist "fresh"...but ever since November, it seems I'm skipping the same dang songs all the time! Would love for this to get restored...unfortunately, judging by the lack of feedback on threads like this one, it would appear to be a low priority for just about everyone....

  • Auto frequency increase of simulate signal vi

    Hi everyone. I am pretty new to labview. I want to increase the frequency to a simulate signal vi using array of numbers. the for loop should step through the array and output a frequency that will serve as input to the simulate signal vi every 5s changing the frequency from 10hz to 20hz, to 30hz and so forth until bout 1khz.
    attached is a vi i have written but something seem not to be accurate
    Solved!
    Go to Solution.
    Attachments:
    Frequency Simulator.vi ‏63 KB

    Hello marco73
    The red dot is the conditional terminal.
    You need to enable it for your for loop.
    To enable the conditional terminal, right click on the for loop and select "Conditional Terminal"
    Derick Mathew

  • What is going to stop my "other" capacity increasing every time i sync new videos to my ipad 2?

    I have read several posts all indicating there is a big problem with syncing and "other" capacity increasing.
    Everytime i change my video content (every few days) my "other" storage volume increases and total capacity decreases in line with the videos i've removed from the ipad. having done 2 or 3 syncs my other volume is up to 16gb. i am aware that performing a restore will fix this temporarily but i am not going to restore 64 gb of data every 2 or 3 syncs.
    what is the proper and actual solution to this problem? (i.e. not restoring constantly)

    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
     Cheers, Tom

  • Simple question about a frequency increase

    I am doing a simple bode plot that will be used by an electronics
    class.  All I need to know is how to have a frequency input that I can
    change after a delay loop.  I would like to change the frequency about
    100 Hz per loop.
    Solved!
    Go to Solution.

    Message Edited by Ravens Fan on 07-30-2009 10:27 PM
    Attachments:
    Example_VI_BD.png ‏5 KB

Maybe you are looking for

  • Can  the  utility vendor be added in  po

    Dear experts. 1.While creating purchase order where can  we include custom clearing agent  apart from main material vendor. 2.By  using unplanned  delivery cost  can we process MIRO  with reference to PO. MIGO is not done ,for the settlement of custo

  • Using conditional formattign in excel

    Hello, I am trying to use conditional formatting on a cell (let's call it H1) that already has a formula in it. The cell is an average of 7 other cells (A1-G1). I want to highlight H1 only when 3 of the 7 cells (A1-G1) are filled. Basically I don't w

  • All I need is actionscript for a MovieClip

    I just need actionscript that then you rollover a movie clip it plays and when you roll off the Movieclip plays in reverse. I have provided a fla file for convience. http://www.geocities.com/demetriusmcclain/

  • Cannot connect to app store on the mac

    Hello, I cannot connect to the App store, approximately since the end of Mobile Me. Logging into icloud.com works, as does my Mail and iTunes account. I have already tried resetting the Apple ID password, logged out of App store and logged back in. E

  • How to watch exercise app on tv?

    Hi please be nice,  I'm not up with all the techno. I would like to watch a fitness app (Nike Training Club)  through my tv.    Is it as simple as plugging my iphone4 into the tv?  ( I have composite cables already). Managed to view Youtube but that