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

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?

  • Can I use Count, Max function in PLSQL BLOCK.

    Can U help me to use count, max function in PLSQL BLOCK.
    Because it is giving me error "It is a SQL function"

    SELECT COUNT(*)
    INTO l_variable
    FROM dual;
    Will work inside PL/SQL

  • Max frequency of externally-clocked counter?

    Hello, I am wondering if I could operate a counter on a Virtex-5 (XC5VLX50T, speed grade -1? [there is a "1C" on the chip]) using an external LVDS clock running at 2 GHz. I have done some searching, and I haven't been able to find if a counter could count fast enough to keep up with a 2 GHz clock. Thank you!

    Your trying to make code on the Virtex 5 -1 that counts at 2 GHz,
    I don't think your onto much of a hope, 800 MHz was about the MAX numbers I remember and that was on a -2.

  • Count/max query

    Hi
    i have a table with about 60 million rows and growing.(10gR2 linux x86)
    a query of the max value and the count number of rows in the table takes at least 30 seconds even when doing a fast index scan.
    is there any way to do things better ?
    10x,
    doron

    how do you have the information that "N BETWEEN 83289905 AND 83289955" returns the last 50 rows form the table?
    I think you may compare this rank analytic function's results;
    SELECT t.*
    FROM (SELECT e.*, rank() over(ORDER BY ttime DESC) AS rank
    FROM event e
    WHERE CATEGORY = 'Alarms') t
    WHERE rank <= 50
    you may use sql*plus and compare the responce times and blocks read in memory and disk;
    set timing on
    set autotrace traceonly
    alter system flush buffer_cache; -- this is to prevent caching affect, use it if this is a test system of course
    -- your query
    alter system flush buffer_cache; -- this is to prevent caching affect, use it if this is a test system of course
    -- query to compare

  • Group queries (sum ,count, max,min)

    can anyone tell how to use the group queries ? i dont know  how to use exactly in abap. give the syntax and simple example with that group queries.

    hi go through following logic,
    it will solve ..
    program1:DATA:   AVERAGE TYPE P DECIMALS 2,
            SUM     TYPE P DECIMALS 2.
    SELECT AVG( LUGGWEIGHT ) SUM( LUGGWEIGHT )
    INTO   (AVERAGE, SUM)
    FROM   SBOOK.
    WRITE: / 'Average:', AVERAGE,
           / 'Sum    :', SUM.
    program2
    PARAMETERS: TBLNAME(50) DEFAULT 'SPFLI'.
    3 DATA: TOTAL_ROWS TYPE P.
    4 SELECT COUNT(*) FROM (TBLNAME) INTO TOTAL_ROWS. ç
    5 WRITE: / TBLNAME, TOTAL_ROWS.
    for MAX and Min
    SELECT MAX( MSGNR ) FROM T100 INTO C4A 
    WHERE SPRSL = 'D' AND                
           ARBGB = '00'.         
    SELECT MIN( MSGNR ) FROM T100 INTO C4A 
    WHERE SPRSL = 'D' AND                
           ARBGB = '00'.        
    if useful reward with points

  • 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?

  • 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

  • (iPhone) audio recording max. frequency?

    Hello,
    What is the maximum audio recording frequency on iPhone?
    I suppose 96kHz is not possible but how about 44.1?
    I only need mono/8-bit recording. 16bit would be bonus but not necessary.
    Thanks.
    -mcMike
    Message was edited by: mike.mcfin

    Look at the SignalScope app, I believe they have the specs. Supposedly the regular phone mike is filtered above 8khz, but I think the headset mike/audio in may go up to 44. I think the recorder sample app used 16-bit at 44.1 or 48.

  • 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;
    }

  • 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

  • Cfp-quad-5​10 count max

    I've got a loaner cFP-QUAD-510 and connected it today to see how it will work with the cFP_1804 module.
    I've got external power wired to the cFP-CB-1 V and C terminals as prescribed.
    The first thing I do in my simple VI is to send the Command = 1 to reset the count.  This does not appear to be working.
    The next read of the counts taken shows 1616969568.  This does not change when I do not rotate the 60 PPR encoder.
    When I rotate the encoder the counts seems to wrap to 4294967136 and then only the last 4 digits change count, but not steadily and I get 4294967136 showing up quite bit after the encoder counts down by a couple hundred.
    What could be causing this?  Does the cFP-QUAD-510 work with the cFP-1804 backplane?
    Ryan Vallieu
    Automation System Architect

    Lesson: Always check the pins on the loaner equipment - found a bent one - unit works.
    Ryan Vallieu
    Automation System Architect

  • Synchroniz​ing two counter frequency inputs with multiple analog inputs

    Hello all,
    I'm fairly new to LabVIEW and I'm trying to collec​t data from multiple sources with synchronized tim​ing on the acquisition but I'm having trouble figu​ring it out. My problem is that I've got two count​er frequency inputs, one optical tachometer readin​g one pulse per revolution, and a max machinery fl​ow meter with a k factor of 12000. I can't seem to​ figure out how to sync the timing with my multiple analog inputs. I've be​en attempting to get the tachometer  to sync with ​the analog inputs first by following the example l​inked here. (https://decibel.ni.com/content/docs/DOC-10785) So far each time I run it I either get a timeout e​rror on the DAQmx read or a "Multiple sample clock​ pulses were detected" error (see attached image).  It seems if I slow the sampling rate way down to ​say 10 hz and ensure that the tachometer signal is​ over 800-1000 RPM (13-17 Hz) before starting the VI then the program will run without errors until ​the RPM drops below that threshold then the "Multi​ple sample clock pulses" error occurs.  The code is attached below.
    Does anyone know of a more effective way of syncin​g counter frequency inputs with analog inputs?  I'd like to have a VI that can show 0 RPM (and ev​entually 0 flow as well, but I think I need to fig​ure out the timing of one counter before I add ano​ther as it seems I can't have two counters in the ​same task). Any help on this would be greatly appr​eciated.
    LabVIEW version 13.0
    cDAQ-9178 Chassis with NI 9401 for the two counter inputs and NI 9205 for the analog inputs.
    Thanks!
    Richard
    Solved!
    Go to Solution.
    Attachments:
    SimpleDAQ.vi ‏44 KB
    LV_Error.JPG ‏31 KB

    Maybe third times the charm? 
    So I've finally got a good handle on why the VI is having problems at low RPM though I'm somewhat embarassed how long it took me to do that
    Because I have the counter time synced to my Analog input task if it doesn't see at least two pulses between the two clock pulses set by the analog input task I get the -201314 "Multiple sample clock pulses" error. This seems fine at first as it just sets a minimum RPM that I can measure and it's well below the area I'm interested in so no problems there.  I tried a simple error handler that would clear the error when it happend assuming the loop would keep iterating until the RPM went above that minimum at which point I would get a signal again. This is not the case, the read function just continues to spit out the -201314 error even after the RPM is back in the readable range. So then I tried adding two case structures so that when the error occured it would stop the task, clear the error, and then start the task again on the next loop iteration (Code Attached). This also doesn't work as the error shows up again on the stop task and then AGAIN on the start task on the next loop iteration. It seems this error is not actually being cleared and once it happens it stays with the task regardless of what the error cluster is carrying. 
    Anyone have any ideas?  The only solution I can think of is to just clear all tasks and recreate them each loop iteration until the RPM is readable again but that strikes me as a horribly clunky solution.
    Richard 
    Attachments:
    SimpleDAQ_1_Start Stop.vi ‏48 KB

Maybe you are looking for

  • Occasional hang up of IE and hibernation on Satellite A100

    Hello, I have a Satellite A100 with Windows Vista. It works fine, but I have two problems: -Sometimes Internet Explorer hangs up, often making the whole system "freeze". -The system does not recover properly from hibernation. It seems to re-initiate

  • One time Vendor _ Look for Invoices by VAT number

    Hi Guys, I am looking for a way to find out the invoices for one time vendor base on VAT number. I need a standard report, because I know that I can search the table BSEC, but I am wondering whether SAP standard offers you the option to look these in

  • Oracle User Type Mappings

    I have inherited an application system where all of the business logic takes place in the database. All of the application calls to the database interface with Functions and Stored Procedures and use Oracle User Data Types as both IN and OUT paramete

  • How to get download music to mp3

    I just got new Mp3 and try to download some music from itune music box.. I don't know where to start..And this MP3 is not apple product..

  • Aperture 3 and processor configurations

    My MBP  c2d developed the "Black Screen of Death" and is out of warranty and also that extra warranty for the extra defective Nvidia chips, so I need to upgrade. Since my only application which even remotely taxed the MBP was Aperture 3(and combining