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

Similar Messages

  • Is there a way to preset the cFP-QUAD-5​10 module?

    Using MAX, there is a way to reset the cFP-QUAD-510 to zero.  However, is there a way to preset the counter programatically through LabVIEW to count values other than zero?

    Dave,
    With the 1-50 Hz range that you are trying to measure, you are correct in your assessment that the CTR-502 module would provide a more accurate reading.  Just for everyone's benefit, let me give a quick explaination of why this is. 
    The QUAD-510 module has only eight allowable timebase settings for velocity measurements.  The timebase is essentially the "window" over which your quadrature encoder signal pulses are counted, and is equivalent to the gate signal that is used when doing frequency measurements with the CTR-502.  The longest window that can be applied with the QUAD-510 is 26,214.4 us, which results in a velocity resolution (accuracy) of 38.15 counts/s or 38.15 Hz.  As such, when trying to measure frequencies in the range of 1-50 Hz, your accuracy will be very low.
    The CTR-502, on the other hand, can get much more accurate measurements at this frequency range because you can configure a much longer window.  There is a LabVIEW example that installs with the FieldPoint driver called "Frequency Measurement.vi" that shows how to do frequency measurements with the CTR-502. 
    Dave, if you would like to see better resolution for low frequency measurements with the QUAD-510, again, please feel free to submit a product suggestion for this functionality.  For now it sounds like you have the best hardware setup for your application.  I hope that the information I have provided has been helpful. 
    Best regards,

  • CFP-QUAD-510 won't read encoder inputs 5V

    I have a cFP-1808 ethernet interface with 7 modules attached.  One
    is a cFP-QUAD-510.  When I hook an encoder to this module and view
    velocity/position measurements in MAX, I only get valid results if I
    use the module's 5VDC regulator to power the encoder.  The encoder
    itself can take 5-24VDC, but when I try giving it 12VDC or 24VDC, I get
    no new updates in MAX (i.e. the status is successful, the velocity
    reads zero, and the time stamp doesn't change from when I first started
    the task).  While powering the encoder with these external
    supplies, I put a scope on the encoder outputs and verified that they
    are 90 deg offset square waves (with amplitudes at 11V and 22V
    respectively) as expected.    When I use the 12VDC or 24VDC
    power supply as input to the 5VDC regulator and power the encoder off
    that, everything seems to work perfectly.   The only
    difference between the two cases is the voltage level given to the
    encoder.  The manual for the cFP-QUAD-510 claims that it can
    accept encoder levels as high as 30V.   I'm testing now for a
    future application where I won't have the option of powering an encoder
    with the 5V regulator.  What could be causing this problem?
    Thanks,
    Jeff

    Hi Jeff,
    That seems peculiar that your device is not reading counts for the higher voltages.
    You may want to check out the following KB first:
    My FP-QUAD-510 Will Not Count
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • CFP-Quad-510 velocity configure

    Is there a way to programmatically configure the timebase for the quadrature channels from within the LabVIEW environment?
    Ryan Vallieu
    Automation System Architect

    I found the VI in the VI.lib under FieldPoint\Configuration\Configure Range.llb
    It looks like it will work - for clarity here is a picture of the VI and the Input Range constant and the Channel numbers that would apparently be needed.  Module address would need to be 1-to-[max module #] depending on which module in the system it is.
    I don't have a module right now to test this VI with, so if someone does have one and can verify that this VI works with the cFP-QUAD-510 as well as the original intended target of the FP-QUAD-510, I would appreciate it.
    I am really interested in knowing if this will work with cFP-QUAD-510 modules in a cFP-1804 chassis.
    Message Edited by RVallieu on 07-02-2008 09:36 AM
    Message Edited by RVallieu on 07-02-2008 09:37 AM
    Ryan Vallieu
    Automation System Architect

  • CFP QUAD-510 Programming in LV7.0

    I am trying to measure position using a cFP-QUAD-510. One problem is that there is no way to programmatically set the counter to a position. Another is that the counter sets itself to 2^32 counts when it goes from zero toward the "negative" direction then counts down. That is a problem when doing rotational position. Does anyone have a solution to this problem? I also have a problem finding the position using the given count because resetting after one rotation in the "negative" direction puts me bak to zero and then directly to 2^32 on the next count. My counts per revolution are 516131. So as you can probably tell I cannot divide the entire count evenly into revolutions either.
    Thanks for whatever help might be out there.
    James  

    Instead of trying to set a counter to a particular value, store your value in your program and add or subtract your offset value each time you want to read the counter.
    The counters are all 16 bit according to the manual and only store the counts of 0-65535,  combining two registers gives a 32 bit value.  Basically a U32.  If you want it to have a negative sign, try reading the value as U32 and subtract 2147483648.  Or try typecasting the U32 to an I32.

  • Slow Velocity Measurement Using cFP QUAD-510

    I want to use the cFP QUAD-510 Module with a 1024 Count Per Revolution Quadrature Encoder to get velocity, direction, and placement of a rotating shaft. The shaft is a VERY SLOW ROTATING SHAFT, about 1 revolution per 7 seconds, or .143 rps. The encoder frequency is 1024 X .143 which comes to 143.432 Hz. I have two questions:
    1. Since the velocity counter registers in the QUAD-510 are fixed in microsecond references, will I get a meaningful resolution out of the registers with an encoder freq. of 143Hz?
    2. Is 143Hz too slow for the QUAD-510 and should I just change over to an absolute encoder with a DIO Module and do my own velocity calculations with loops and longer time bases?
    I know the quadrature will work for placement and direction. But I am not sure if this is the right application for velocity.
    Ron Kocol

    Ron-
    Due to how slow your encoder is running, I can’t guaranty the accuracy of the velocity readings from the counter references.  A better way to do this would be to simply take the derivative of your position (dx/dt).  This way it will be as accurate as possible.
    Regards,
    Mike S
    NI AE

  • 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

  • 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

  • Velocity readings cFP-QUAD-510, explain limitations

    I am trying to understand the limitations of the Velocity measurements capability of the [c]FP-QUAD-510.
    Looking at the operations manual I see the maximum velocities that can be measured in counts/us.
    If I have a quadrature encoder tracking a shaft running at 1750 rpm, and the encoder is 60 PPR - this yields 1750 counts/second or 0.00175 counts/us.
    Would I thus have to use the longest timebase to obtain RPM +/- 38 counts/sec which with the 60 PPR yeilds +/- 38 rpm ? 
    Thus I would need to increase my PPR to get me a better Velocity Resolution.**
    **Is my understanding of the velocity Ranges correct?
    Message Edited by RVallieu on 07-01-2008 04:30 PM
    Ryan Vallieu
    Automation System Architect

    Hi Ryan,
    This is what I have:
    60 Pulses /revolution * 1750 revolutions/minute * 1minute/60 seconds = 1750 revolutions/second = 1750 counts/sec (1 revolution = 1 count)
    1750 counts/sec *1sec/ 10^6 microsecs = 0.00175 counts/microsecond
    Comparing this value to Page 11 of the operating instruction, the best time base for this would be 26214.14 microsecs.
    Velocity range means the highest velocity value that can be measured within that rage. So for your value of 0.00175 counts/microsecong, the range of +/- 1.25 counts/microsecond would be the most appropriate since you would get the best resolution. You can, of course measure values upto +/- 1.25 counts/microsecond within the range.
    I hope this helps!
    Warm regards,
    Karunya R
    National Instruments
    Applications Engineer

  • 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

  • Cfp-ctr-502 large counter

    How to configure multiple counters to operate as one large counter with cFP-CTR-502 ?

    Wire your signal into the input of counter 0.
    Set counter 0 attributes to the following:
    Count Source: External Count Input
    Terminal Count: 65535
    Gate Source: Always Enabled
    Read Reset Mode: Don't Reset on Read
    Noise Rejection: 50 kHz
    Set counter 1 attributes to the following:
    Count Source: Previous Channel
    Terminal Count: 65535
    Gate Source: Always Enabled
    Read Reset Mode: Don't Reset on Read
    Noise Rejection: 50 kHz
    Create a Control @Multi channel by checking both channel 0 and channel 1 and then clicking on Create Item in the Channel Commands section.
    Save the iak file.

  • Is It Possible To Use NI cFP-CTR-50​2 as Quad Encoder?

    Instead of going the route of using a Quad Encoder (which requires additional cost and work to install for a project), I was wondering whether is it possible to configure the cFP-CTR-502 to count directionally using a Digital Input for direction and a prox-switch?
    If I used the DI as a Gate to count the prox-switch on two separate counters, then read the count when the Gate was TRUE and FALSE respectively, then did a subtraction of these two counts - couldn't I get the overall count in a particular direction?
    Is there anything wrong with the above?
    If not, I am pretty sure I can do something like this in software but was wondering if the cFP Module could be configured somehow to do it?
    Cheers
    -JG
    Certified LabVIEW Architect * LabVIEW Champion

    Andy H NI wrote:
    Hi jgcode,
    I think what you're suggesting could work. If digital input TRUE indicates movement to the left, and digital FALSE is movement to the right, then subtracting the two counts would work (this is what a quad encoder does, after all). The catch is that you cannot count edges when the gate is false, so the digital state can't be directly linked to a single counter gate. You would need to use two digital outputs and two counters on the CTR-502 to get around this. Writing TRUE to the gate of counter 1 could be one direction, and TRUE to the gate of counter 2 could be the other. Then you'd just subtract the two counts in software to find your position.
    Hope this helps!
    Thanks for your reply Andy. I am glad you think the concept will work.
    On further brainstorming of the idea, we discovered the same as above (cannot gate counter on FALSE) so am thinking we can have a non-gated count and a gated count and just do some maths to get around it.
    Or we can do as you suggested.
    Cheers!
    -JG
    Certified LabVIEW Architect * LabVIEW Champion

  • Count(*) with group by max(date)

    SQL> select xdesc,xcust,xdate from coba1 order by xdesc,xcust,xdate;
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06
    RUB-A 11027 10-JAN-06
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06
    RUB-C 11027 08-JAN-06
    I want to make sql that result :
    XDESC     COUNT(*)
    RUB-A     2
    RUB-B 1
    RUB-C 1
    Criteria : GROUPING: XDESC XCUST AND MAX(DATE)
    bellow mark *** that was selected in count.
    XDESC XCUST XDATE
    RUB-A 11026 01-JAN-06
    RUB-A 11026 05-JAN-06
    RUB-A 11026 08-JAN-06 ***
    RUB-A 11027 10-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-A = 2
    RUB-B 11026 02-JAN-06
    RUB-B 11026 08-JAN-06
    RUB-B 11026 09-JAN-06 ***
    ---------------------------------------------------------COUNT RUB-B = 1
    RUB-C 11027 08-JAN-06 ***
    --------------------------------------------------------COUNT RUB-C = 1
    Can Anybody help ?
    I tried :
    select xdesc,max(xdate),count(max(xdate)) from coba1 group by xdesc
    ERROR at line 1:
    ORA-00937: not a single-group group function
    Thank

    This one is duplicate. see the following link
    Count(*) with group by max(date)
    Thanks

  • CFP-2120 & MAX 3.1.1

    Hi all!
       I've tried to install software on cFP-2120 with my old MAX 3.1.1 from my WindowsXP-based PC.  When it comes to software choose, Real-Time is not shown among other options.  So I'm unable to install Real-time software (RT 7.1) on cFP-2120.  If I connect to a cFP-2020, I can correctly install Real-Time on target.
       To fix this, I've installed MAX 4.1, unistalled newer VISA and Serial RT software (RT 7.1 seems not compatible with SERAIL RT 3...), and installed older Serial RT and VISA on new MAX 4.1.
       Is this behaviour expected? Is there a compatibility list of cFP modules, MAX, RT software and drivers?
       Thanks everybody!
    graziano

    Hi Graziano,
    maybe this is the document you need:
    http://digital.ni.com/public.nsf/allkb/B730A501736C999486256E59005A5BD7?OpenDocument
    The problem could be related to Field Point driver version.LabVIEW 7.1 and 7.1.1 RT components for the cFP-21xx were introduced with Field Point driver version 4.1.1.
    Clara
    AE Manager
    NI Italy

Maybe you are looking for