Unable to measure frequency below 20 Hz on a NIDAQ 9178 chassis with NI 9402 even while using a hardware timed delay

Hello,
I am trying to measure frequency using NI 9402 in NI cDAQ9178 chassis. I am setting the clock for my counter channel to be my chassis ai Sample Clock.
I am able to measure frequency above 20 Hz. For frequencies less than 20Hz, I get the following error:
DAQmx Error: Multiple Sample Clock pulses were detected within one period of the input signal. Use a Sample Clock rate that is slower than the input signal. Ifyou are using an external Sample Clock, ensure that clock signal is within the jitter and voltage level specifications and without glitches.Task Name: _unnamedTask<0>
Status Code: -201314
Setting the Rate to 1 also not does resolve the issue.
OTHER DETAILS:
* Running on 64 bit, Win7 platform.
* NIDAQmx Driver Version: 14.5
I had posted regarding this earlier and I was told that this might be because the counter is armed immediately before the first sample is taken. The recommendation was to add a hardware-timed delay using the DAQmxSetStartTrigDelay method to the AI task. I have added this delay but I still receive the same error message. The previous post I had mentioned can be found below:
http://forums.ni.com/t5/Multifunction-DAQ/Cannot-measure-frequency-below-20-Hz-on-a-NIDAQ-9178-chassis/td-p/1537274
I have also attached my current code which has the delay. Is this a bug in the driver? If yes, can we have a CAR# to track this?
Thanks.
Regards,
Varun Hariharan
The MathWorks

Alright so I got everything working correctly in both C and LabVIEW code.
The problems is in fact with the first sample, as John_P1 suggested. You simply need to delay that first sample from being requested. It is simple to do this in software instead of hardware.
If you are using CVI, just add #include <utility.h> to the top of your .c file and then add a delay before your DAQmxErrChk (DAQmxStartTask(AItaskHandle)); line.
Comment out / remove the DAQmxSetStartTrigDelay(AItaskHandle,10); line, as it wasn't doing what we thought it would. (Hardware delay).
I added Delay (.05); to delay long enough for the full period of the input signal at 20 Hz.
Depending on your frequency, this value may need to be adjusted. 100ms wouldn't be a bad idea.
This is expected behavior, and I don't think we need a CAR.
Let me know what you think!
-CB

Similar Messages

  • Firefox is unable to establish a complete connection with Facebook game apps while using the tethering method between PC and Android

    Although there is no problem loading the page, there seems to be a problem with the save feature. I can go in the game and perform my tasks but when I exit and return it is as if I was never there. In the bottom left hand corner of my monitor I notice that the site is continually trying to connect, verify, read profile, transfer assets, connect, verify...it is like a continuous loop. Is there a setting I need to adjust to allow access?

    Although there is no problem loading the page, there seems to be a problem with the save feature. I can go in the game and perform my tasks but when I exit and return it is as if I was never there. In the bottom left hand corner of my monitor I notice that the site is continually trying to connect, verify, read profile, transfer assets, connect, verify...it is like a continuous loop. Is there a setting I need to adjust to allow access?

  • How to measure frequency

    hi i have made FM Jamer circuit in multisim 13 , my circuit image you can see below , now i want to measure the Measure Frequency which is Generated it L1 Inductor , so i do not know how to measure frequency in multsim , please help me , or also it would be good to use Antena instead of inductor or not , i have not see any Antena component in multsim 13 

    Hi Zahis,
    The measuring probe measures frequency, this video shows how you can use a probe in Multisim:
     http://www.youtube.com/watch?v=xKEQ3EXEaP8
    Tien P.
    National Instruments

  • How to Measure Frequency to RPM NI-DAQmx Tasks

    Hello,
    I am trying to measure frequency using NI DAQmx task and then convert this to an RPM if at all possible.
    I have the following hardware options at my disposal.
    I have SCXI 1126 Module along with a SCXI 1327 terminal, as well as a PXI 6289 Multifunction DAQ.
    I have wired in a mag sensor to ai7 on my 1126 and when I pass a metallic object I get a amplitude of 6  - 8  so I am able to read the mag sensor.
    What I am trying to do is to somehow convert this analog measurement into a RPM while only utilizing the NI DAQmx task.
    Any help would be appreciated.
    Tim
    Solved!
    Go to Solution.
    Attachments:
    Freq Set Up.jpg ‏2993 KB

    So I would select new in "Custom Scaling"
    Then would I select linear?
    Your calculations are simple but I am unsure if this would give me the desired result.  From my attachment I am seeing an input amplitude of 6 Hz for each pulse.  What I mean by this is that every time I bring a ferrous object near my mag pick up I get a pulse, this is what I was trying to illustrate in the attachment.  The analog pulse comes in a 6 Hz so I would simply multiple this pulse by 60 (assuming I get one pulse per rotation) to get RPM?
    How would this make sense if I only input one pulse for a long duration of time? 
    I have notice the amplitude of the pulse input increases with increased pulse frequency.  Does this mean the lowest RPM I can record is 360 RPM?  
    Tim

  • Measure Frequency C#

    Hi,
    There was a question posted earlier asking about measuring frequency using C# and a multifunction DAQ that got my interested in th e topic.
    I found this example using a counter but it throws an error at startup.
    https://decibel.ni.com/content/docs/DOC-16563
    There are 2 tasks, an AITask and a counter task.
    The error occurs when trying to setup the input frequency terminal.
    counterTask = new Task();
    counterTask.CIChannels.CreateFrequencyChannel(counterComboBox.Text, "",
    Convert.ToDouble(minValueTextBox.Text),
    Convert.ToDouble(maxValueTextBox.Text), edge,
    CIFrequencyMeasurementMethod.LargeRangeTwoCounter, 0.001,
    (long)divisorNumericUpDown.Value, CIFrequencyUnits.Hertz);
    counterTask.Timing.ConfigureImplicit(SampleQuantityMode.ContinuousSamples, 1000);
    // Setup the Counter Input Frequency Terminal to be the Start Trigger from the AI Task
    counterTask.CIChannels.All.FrequencyTerminal = aiTask.Triggers.StartTrigger.Terminal.ToString() ;
    Here's the Error
    Error 1 'NationalInstruments.DAQmx.StartTrigger' does not contain a definition for 'Terminal' and no extension method 'Terminal' accepting a first argument of type 'NationalInstruments.DAQmx.StartTrigger' could be found (are you missing a using directive or an assembly reference?) 
    I'm using Visual Studio 2008, Measurement Studio 2008 Ver 8.5, DAQmx 9.5.5 and NET 3.5.
    Am I missing something?
    Thanks
    Curt

    Hi Curt
    Do you have the proper references included in your project? I am able to run this code as it is with no errors. You should see NationalInstruments.DAQmx under the references of your project.
    This reference is in this path. 
    C:\Program Files (x86)\National Instruments\MeasurementStudioVS2010\DotNET\Assemblies\Current\NationalInstruments.DAQmx.dll
    regards 
    Chris S.
    Attachments:
    Screenshot_1.jpg ‏26 KB

  • How do you measure frequency using the onboard counter on PCMCIA 6024-E

    I am using LABView 6.1 and NI-DAQ 7.2 with a SCXI-1000 chassis and a PCMCIA 6024-E on a laptop. I need to measure a frequency of about 3KHz and would like to do that using an 1180 direct through connector.
    Firstly, should I see this 1180 in MAX like any other module?
    And secondly, how do I use this 6024-E card to measure frequency? Which pins are supposed to be used on it to measure, and will I see the counter run in the test window in MAX according to the frequency measured?
    I know NI also have a frequency module for the SCXI chassis. So lastly, will it be better to use that, rather than measure directly off the 6024-E?
    Any help, advise or comments will be greatly appreciated!
    Thanks!

    Hello,
    I think I can help out with some of your questions. First, the 1180 module won�t show up in MAX since it is really just a feedthrough cable which allows you access to your unused signals from the DAQ card.
    You definitely can measure frequency using your 6024E. An example installs with NI-DAQ 7.2 which shows how to accomplish this. To access this example go to the LabVIEW start up screen and hit the Find Example button. When the Example Finder opens up browse to the following location: Hardware Input and Output -> DAQ -> Counters -> DAQ-STC -> Measure Frequency (DAQ-STC).vi
    This example measures frequency and has a connection diagram on the front panel. The documentation for the example can be accessed by going to File -> VI properties -> Document
    ation, after you have opened the VI.
    You are correct that we offer a frequency input module for SCXI (SCXI-1126). This module would be useful if your input voltages are non-TTL, or if you need to measure more than one channel of frequency signals. This module has an input range of +/- 250Vrms and 8 input channels.
    I hope this helps! Let me know if there is anything I can help with or clarify.
    Ken S.
    Applications Engineering
    National Instruments

  • REP-1213:  Field F_1 references column EMPNO at a frequency below its group

    Hii guys
    My goal is to display my desired database column where ever i want to on the report layout.For this Purpose
    I ran the following query
    1.SELECT * FROM EMP WHERE EMPNO='7369' in the Data Model.
    2.I then created a field in layout view and gave field source as EMPNO
    3.On Report Run following error was encountered.
    REP-1213: Field F_1 references column EMPNO at a frequency below its group
    Kindly help me in fixing this problem
    Regards
    Fahad Hameed

    dsegard
    Thanks for the tip.I fixed that and now i feel i've some control over my layout.
    How can i apply an image as a water mark throughout my report ??
    Regards
    Fahad Hameed

  • Rep : 1213 Frequency below  group error

    Hi,
    How can I solve the error in a 6i reports having error ' Rep : 1213 Frequency below group error'.
    It occurs when I am putting a ' field' in to the header part of the report. and the source setting as
    the CREATION_DATE , ie 'AMMI_PO_REQUISITION_ALL_V.CREATION_DATE.
    And same error showing when putting field at footer side also. source as AMMI_PO_TO_PEOPLE_V.NAME.
    How can I solve this problem?
    The query of the report is giving below:
    SELECT ALL AMMI_PO_REQUISITION_ALL_V.REQUISITION_HEADER_ID,
    AMMI_PO_REQUISITION_ALL_V.REQUISITION_NO, AMMI_PO_REQUISITION_ALL_V.REQUISITION_LINE_ID,
    AMMI_PO_REQUISITION_ALL_V.CREATION_DATE, AMMI_PO_REQUISITION_ALL_V.LINE_NUM,
    AMMI_PO_REQUISITION_ALL_V.ITEM_ID, AMMI_PO_REQUISITION_ALL_V.QUANTITY,
    AMMI_PO_REQUISITION_ALL_V.PREPARER_ID, AMMI_PO_REQUISITION_ALL_V.SUPPLIER,
    AMMI_PO_REQUISITION_ALL_V.ITEM_CODE, AMMI_PO_REQUISITION_ALL_V.ORGANIZATION_ID,
    AMMI_PO_REQUISITION_ALL_V.DESCRIPTION, AMMI_PO_REQUISITION_ALL_V.PURPOSE,
    AMMI_PO_REQUISITION_ALL_V.BALANCE, AMMI_PO_TO_PEOPLE_V.NAME
    FROM AMMI_PO_REQUISITION_ALL_V, AMMI_PO_TO_PEOPLE_V
    WHERE (AMMI_PO_REQUISITION_ALL_V.PREPARER_ID = AMMI_PO_TO_PEOPLE_V.PERSON_ID)
    and AMMI_PO_REQUISITION_ALL_V.REQUISITION_NO=:P_requisition_no
    and AMMI_PO_REQUISITION_ALL_V.ORGANIZATION_ID=(select ORGANIZATION_ID from AMMI_ORGANIZATIONS_V where name=:P_organization)
    with regards NASEER.

    Hi
    Thanks to the reply.
    In Data modeler I put one placeholder column in side the group. and write function
    as given below.
    function CF_1Formula return Char is
    X VARCHAR2(30);
    begin
    select name into x from AMMI_PO_REQUISITION_ALL_V where REQUISITION_NO= :p_requisition_no;--from parameter form
    return(x);
    end;
    but it is showing Error like 'identifier AMMI_PO_REQUISITION_ALL_V must be declared'
    AMMI_PO_REQUISITION_ALL_V is a view used in the report.
    1. Why this error ?
    2. Where exactly shall I put this placeholder column in data modeler? in side the group or out side?
    With thanks
    Naseer

  • REP - 1213 Reference column frequency below its group

    Hi,
    In a report (6i) it is showing Error like "REP - 1213 field F_SUM_COLLECTIONS_RATIO
    Reference column CS_COLLECTION_RATIO at a frequency below its group"
    As I know this is a problem of repeating frame problem:-
    1. How can I check this error ? And How can resolve this problem?
    Note:-
    In this sales_ratio,collection_ratio,sales?coll._ratio I added Corr. formula columns and create summary
    columns corr. to each.
    This summary columns having problem.

    Good morning,
    What I have found is that every time I have this problem, it is because during the manipulation of report items, I have inadvertently moved an item outside of its parent block.
    If you expand the size of your report layout editor (control-key and PLUS key [ ctrl+]), you can usually see where the item has strayed outside of its parent report block.
    I hope this helps,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)

  • REP-1213: Field  references column at a frequency below its group

    Is there a way of making a field which is on a lower level group to be displayed in a group which is at a higher level in the report?
    I have a field which is within a lower level group on a report and I want it to appear as a header, within a group which is a level above its own group. The field should remain in its original group but should not appear on the report as a column within its original group but should appear as part of the heading.
    I have tried it and got error REP-1213: Field references column at a frequency below its group, but how can I achieve what I want to do without getting this error? Is there a way of showing this field on the header without actually moving it into the header group? Should I create an alias or a function or what and how?
    Please help.

    user8655468 wrote:
    Sorry, I don't seem to get you. MY report has 2 repeating groups. The first group has student_name, course_code, course_name and the 2nd group has academic_year, module_name, module_code and module_grade. Academic_year which is in the 2nd group has to appear as a heading together with the items in the first group but it can not be moved from its original group as it goes together with modules. The report displays a history of a student's modules from 1st year to current year so the Academic year on the header will have to show the current Academic year for a student.
    I don't understand how I should use a summary column to achieve what I want to do. Please can you explain further. Thanks.I think you know about summary column. If your academic year is number filed, you can use it at summary column. Where summary function is sum. You take this summary column at 1st group and select source from 2nd group. Then display it at 1st frame.
    Hope this will help you..
    If someone's response is helpful or correct, please mark it accordingly.

  • How to Measure frequency of less than 300 Hz

    Is it possible to measure frequency without a counter module? All I have is a cDAQ with 9205, 9221 and 9263 modules.

    Hello,
    I am assuming that you want to measure analog frequency, since you have analog input and output hardware.  There is a useful LabView Help file titled Measuring Analog Frequency.  You will be able to measure analog frequency using just software and no counters.  However, this involves using Fast Fourier Transform (FFT) functions that are only available in LabView Full and Professional versions.  Please also take a look at the examples in the Example Finder.  Some helpful ones are titled … Signal Generation and Processing.vi, Spectrum Measurements.vi, and Simple Spectrum Analyzer (sim).vi.  These example’s block diagrams are a little busy, however you can see how they are using simulated signals with the FFT Power Spectrum.vi.  Note that the example titled Spectrum Measurements.vi uses express functions.  These functions are going to involve less programming, but offer lower program efficiency.
    Samantha
    National Instruments
    Applications Engineer

  • Measure Frequency of Digital Signal from DAQ-Board

    I'm using a National Instruments DAQ board and I need to measure the
    frequency of a digital signal from my data acquisition board.
    I know the measure frequency.vi (In diagram - data acquisition -
    counter), but i don´t understand yours implementation mainly in input
    "counter". Because i don't understand the relationship of board channel (for
    signal acquiring ) and the measure frequency.vi.
    Thanks in advance,
    [email protected]

    Hi,
       Attached is a vi which models your signal, and provides a way to measure the average frequency over a window of time. It converts the signal to a sequence of periods. I usually start with this approach because you can save the data in a much more compact form if your sampling rate is high. Obviously over a specified period of time, if there are no zero crossings the frequency is zero, so I was a little incoherent before. The real issue is the latency caused by averaging. Your frequency measurement is most accurate half your window size before the current time, so smaller windows give you more up to date measurements, but also more noisy. If you need the most up to date measurement, then you have to use the time since the last crossing which is the case where the frequency never goes to zero. That's probably not a realistic situation. If you needed less latency, you could use a prediction algorithm.
    Also, there are a number of signal measuring and processing vi's that LV gives you, for instance pulse measurements that could be used to partially implement this or other approaches, but I normally steer clear of them unless they fit exactly due to having to convert back and forth to the waveform data type.
    Have fun!
    Attachments:
    DigRandFreq.png ‏62 KB
    DigitalRandomFreq.vi ‏34 KB

  • Can I measure frequency with a SCXI-1120 module and SCXI-1320 terminal block?

    I am attempting to measure a square wave from a directional encoder to display RPM of a dynamometer. The waveform will have a frequency of 0-4KHz, with 3.6KHz being nominal, at about 5volts RMS. How can I measure the frequency of this waveform with the hardware I am currently using? In addition to what is listed above, I am using a PCI6034E GPIB card and LabView software.

    In order to measure frequency, I would not recommend to use the SCXI-1120, but the SCXI 1126, which is a programmable isolated F-to-V module.
    If by any reason you do not want to use SCXI-1126, then I would suggest to use the counter/timers of your board. The counter/timers are TTL compatible, and are the devices that we mostly recommend for doing precise frequency measurements.
    In order to have access to the counter/timers of your board through your SCXI chassis, you will need SCXI-1180, which is basically a feedtrhough panel for your DAQ board.
    Once we have access to the counter/timers through the SCXI chassis, we can proceed with the coding.
    I found a pretty good webpage that clearly explains how to perform frequency measurement with the DAQ-S
    TC counter/timers (DAQ-STC is the type of counter/timer chip that you DAQ device has). Here is the link to it:
    Pulse Width & Frequency Measurements
    As you will see, this link contains tutorials, application notes and example programs. I would recommend to pay special attention to the example program called: DAQ-STC: Measuring frequency.
    Good luck with your application!

  • How do i measure frequency?

    lets say theres this signal in volts. if you plot the signal it forms a sine graph. is there any way to use labview to determine the frequency of the signal? i've tried to use the "measure frequency vi" but my device is connected to a virtual channel, and i dont think that VI supports that...

    Hi Polly,
    There are several ways to measure frequency in LabVIEW. You can measure the frequency of a pulse train using DAQ hardware (counters). You can also just take a buffer of data and simply use LabVIEW functions to read the frequency of the buffer. An example function would be Extract Single Tone Information.vi. There are many other functions as well. Hope that helps.
    Ron

  • Pins at a PCI MIO-16E-1 to Measure Frequency(DAQ-STC).vi?

    I want to measure frequency with the
    "Measure Frequency(DAQ-STC).vi".
    Can't find the appropriate connector pins
    in the manual of my PCI MIO-16E-1.
    Can someone confirm or correct me?
    Signal - PFI1/GPCTR1_SOURCE
    SignalGND - PFI9/GPCTR0_GATE
    PFI8/GPCTR0_SOURCE - PFI4/GPCTR1_GATE
    Thanks in advance
    Manfred

    Manfred,
    You can find this information by going to the http://www.ni.com/manuals site and viewing the E-series manual. There is a table which shows the pin number, name, and function for each pin.
    Pin 10 - PFI1/Trig2
    Pin 11 - PFI0/Trig1
    Pin 43 - PFI2/Convert
    Pin 42 - PFI3/GPCTR1_Source
    Pin 41 - PFI4/GPCTR1_Gate
    Pin 40 - GPCTR1_out
    Pin 6 - PFI5/Update
    Pin 5 - PFI6/WFTRIG
    Pin 3 - PFI9/GPCTR0_Gate
    Pin 2 - GPCTR0_Out
    Pin 4,39,35,36 - DGND
    Mark

Maybe you are looking for

  • Apple Loops Are Gone, But Still In Folder

    All my apple loops have disappeared from Logic Pro, as well as a lot of plugin presets. However they're still in the "/Library/Audio/Apple Loops/Apple/" folder in the following folders Apple Loops For Soundtrack Pro iLife Sound Effects Jam Pack 1 Jam

  • Ipod being recognized as a digital camera

    After months of perfectly sound use in syncing etc suddenly my ipod is being recognized as a digital camera. I have followed all the instructions in the help sections, I have been to the Authorized service centre, I and the service centre have remove

  • Exporting from FCP to STP!!!!

    I had a video clip in FCP, I used the razor tool to cut the portion that I wanted to work with. When I send the file to STP, it takes the whole video clip whole video clip, instead of the portion I intended to work with. Is this normal? Am I doing so

  • Flash and .htpasswd

    I am building a flash content editor, which loads data from php scripts from a server. It loads sucessfully when the swf is on the same server, and when I test the project locally from inside Flash. But now I've thought that it would be a good idea t

  • HT2534 credit card no "none" choice

    i wan creat a new apple id without credit card.. but the choice no have "none" only have " VISA , MASTER , XMAS" how to i create ?