Sampling rate of onboard ADC of spartan 3e

hello
I am doing a project on FIR filters. For filtering data , i need to convert it into digital form. I am using the onboard ADC of Spartan 3e.Plz tell how can i change the sampling frequency of the onboard ADC? what really controls the sampling frequency of  ADC. I know its very unlikey to go beyond the maximum 1.5Mhz per channel, but i can reduce the sampling frequency of the ADC? I have read the datasheet but i couldnt find it...Please help me here and alos tell me under what conditions we can  have maximum frequecny.And if anybody can share its code in Verilog it will be huge help...
Thanks

The Spartan 3E doesn't have a built-in ADC. Are you using a particular Spartan 3E development board that has a separate ADC chip? If so, you should refer to the board's data sheet and/or schematics to see how the clock is generated and whether this clock is programmable.

Similar Messages

  • Relation between resolution and sampling rate of an ADC

    Dear sir,
    Is there any relation between the resolution and the sampling rate of an ADC. If so please explain it in detail.
    If I use NI 9237 Module for the acquisition of signal from load cell, then what is the minimum time required by it to acquire one sample.If the sampling rate is 50KS/s and resolution is 24 bit, how will you caculate the minimum time required by it to acquire one sample. Please explain it in detail.
    According to my knowledge it would take 20microseconds. Is this is correct?
    Will this resolution also plays a role in that time?
    Thanks and Regards
    A.Giridhar yadav

    Hi Giridhar,
    For 9237, resolution is fixed to 24 bits and doesn't not effect by sampling rate.
    Therefore, you can measure up to 1/50k=20us time between sample at 24 bits with 9237.
    Regards, Kate

  • How to improve sampling rates in mega samples spartan 3e board

     I am trying to acquire data in spartan 3e board in mega samples rate can you post me any examples for this purpose
    Solved!
    Go to Solution.

    If you're trying to get analog samples in that range, the issue that you're going to run into is that that sort of sampling rate is right at the bleeding edge of what you're asking for (it's a 2-channel @ 1.5Msps chip, the LTC1407A-1). If you actually want to capture at these rates, you're going to need to pull some interesting LV-foo using single-cycle timed loops in the FPGA diagram or drop some code down into an IPNode/CLIP Node, with outputs from those IP blocks hooked to the IO in a SCTL.
    Please let us know a bit more about your specific design.
    -Brad

  • Decrease NI 5791 ADC/DAC sample rate

     Hello all, I am using  NI 5791 and want to decrease the ADC/DAC sampling rate from 130MHz to a lower rate. I am a little confused about whether it is possible, since the manual says the ADC/DAC works "AT" 130MHz, but it also says the clock distribution IC AD9511 is programmable. So if the output (ADC/DAC sample clock) of AD9511 is programmable, doesn't that mean ADC/DAC can work at any clock rate? And if it can, how to program the AD9511 (I searched online, but there is no clue at all)?
    Any help is appreciated.

    Hi!
    On the 5791, the only way to change the clock output from the AD9511 would be to change the clock source to use CLK IN and use an external clock. You could do this by using a Timing and Sync module (or some other clock source) to generate your new sample clock and then connect that to the CLK IN BNC connector on the front of the 5791. From there, you can select CLK IN as the clock source in LabVIEW. I would recommend taking a look at the 579X sample project that you can access by clicking "Create Project" on the LabVIEW splash screen.
    If using an external clock is not an option, you will have to manually decimate your incoming IQ data on the FPGA. You could do this by only reading the data on specific iterations of your Single Cycle Timed Loop. As an example, your SCTL will be running at either IIO Module\Data Clock or IO Module\Data Clock x2. If you are using IO Module\Data Clock of 130MHz, then you will be sampling every 130MHz with no decimation. If instead, you use a case structure with an alternating boolean flag to govern when you acquire, you could read at every other iteration of IO Mod Clock, sampling at 65MHz. If you need to sample at a frequency of say 4/5 x 130MHz =108MHz, you could have some other logic to  read the IO Node four out of every five iterations.
    Does this help answer your question?
    Rob B
    FlexRIO Product Manager

  • Can't change sample rate for digital input on Mac Pro

    Hello all,
    on my Mac Pro with 10.4.10 I can't change the sample rate for the digital input. Whenever I choose 48000 or 96000 Hz it returns to 44100 Hz after a few seconds. Feeding a 24 bit/96000 Hz signal from an external ADC into the optical input doesn't help. No input signal is available for digital recording software such as Sound Studio or Cubase. After changing the sample rate in audio midi configuration to 96000 Hz the sound can be heard for a few seconds but when the setup returns to 44100 automatically the signal is, of course, lost.
    I've deleted all relevant preferences and restarted with resetting paramter RAM. Still the same. With external hardware such as M-Audio Firewire equipment setting the sample rates works properly.
    Thanks to all for helpful clues.

    Hi,
    when E&M signaling is configured on digital interface like the VWIC is, 2 or 4 wires operation is not applicable because there are no wires at all, and reported only for compatibility with the analog E&M card.
    Consequently, you cannot configure that and it will not make any difference to effect of the connection.
    Please rate post if it helps!

  • How to force digital input sample rate?

    Does anyone know how to force a Digital Input sample rate and/or tell Core Audio which conversion clock to use... internal or external? Apparently both things can be done from Pro Tools, but I don't have it.  My problem is locking onto an A/D converter's 48K Toslink output.  I can set 48K in 'Audio - Midi' setup and the audio is perfect, but a few seconds later  Core Audio returns to the default 44.1K.  I need to force it to stay at 48K, or clock on the signal rather than internal clock.

    Braver,
    Let me clarify a few things. First, the 6733 supports correlated digital I/O. This means that the digital operation does not have its own clock. You can correlate the digital operation with the AO clock, which will allow a digital operation up to the max AO rate. You can generate a pulse train with an onboard counter and use that as your digital clock source. Also, you can use a completely external clock source to achieve the max digital rate of 10MHz. The knowledge base, linked below, points you to a couple of examples that ship with LabVIEW. Be sure and read the documentation associated with each example.
    Knowlege Base
    As for
    the example CDI Single Point clocked by Counter (E).vi, notice how the output of...

  • How to use on board counter to change sample rate dynamically on pci-6134

    Hi,
    I am relatively new in LabView.
    I am making power quality measurement system and I need to vary the sampling rate of my pci-6134 dynamically (all channels simultaneously). What I need is to have a constant amount of samples in each period of measured signal (grid voltage), which changes slightly all the time. Therefore I will have to measure the voltage, find its exact frequency and then adjust the sampling rate of daq accordingly. I know that there will always be some delay, but I would rather like not to go into any predictive algorithms...
    I have found an information in the Forum that one of possible solutions is to use an onboard counter to change the sampling frequency but I have no idea how to make that. Can someone help me or possibly show an example? 
    Is there a simple way to solve that problem?
    Thanks in advance
    Andrzej

    At least at a glance, the code generally looks like it ought to work.  Two thoughts:
    1. Instead of getting into PFI3 vs PFI8 routing stuff, can't you just specify "Dev1/Ctr0InternalOutput" as the AI Sample Clock source?  (You may need to right-click the terminal to get at the menu that exposes the so-called "advanced terminals").
    2. Try writing both the freq AND duty cycle  properties when you want to update the freq.  Or try using the DAQmx Write vi instead of a property node.  My past experience suggests that writing only the freq property *should* still work, but writing both isn't hard to try and may turn out to help if the behavior of your version of DAQmx differs somehow.
    -Kevin P.
    P.S. Bonus 3rd thought.  I just went back to reread the thread more carefully, including your first screenshot.  I'm now thinking that maybe the hardware actually WAS behaving properly, and that you just weren't aware of it.   When you query the AI task for it's sampling rate, all the task can know is whatever rate you told it when you configured it outside the loop.  So even as you change the counter freq to change the actual hardware sampling rate on the fly, the AI task will continue to report its orig freq.  After all, how is *it* supposed to know?
           Try an experiment:   Set your original freq very low so that the AI task produces a timeout error without getting all the requested samples within the 10 sec timeout window.  Run and verify the timeout.  Then run again, but after 3-5 seconds set a new frequency that will produce all those samples in another 1 sec or less.  Verify that you get the samples rather than timing out.  That should demonstrate taht the counter freq change really *does* produce a change to the hardware sample rate, even though the task property node remains unaware.

  • Low sample-rat​e measuremen​ts on the PCI-6115 DAQ card

    I need to measure an analog signal at a sampling rate of a few tens to hundreds of Hz in sync with the rising edge of an external clock. I have a PCI-6115 DAQ card w/ Labview 6.1 and NI-DAQ 6.9.2. The PCI-6115 is a high speed card and has a minimum sample rate of 10 KS/s. Is there any way of implementing a low sampling rate measurement using the PCI-6115 in sync with an external clock?
    Thanks in advance.

    Kuldeep,
    It is possible to do what you are describing above (in fact I don't think an external clock is required to do this), however, bear in mind that the reason for this minimum sampling frequency is due to the ADCs used on this high speed board. The ADCs used are pipelined ADCs, meaning that when a signal is digitized, it is digitized in distinct stages within the ADC (in the case of the 6115, I think there are 3 stages involved). Data is moved from one stage of the ADC to the next each time a sample clock pulse is recieved. If too much time elapses between these clock edges, the signal to be digitized can actually 'leak' off of the ADC. This can result in improper digitization, which can lead to less accurate measurements. So, while it is possible to mak
    e the device sample below it's minimum rate, it may be advisable to sample faster than the rates required by your application, and either average multiple data points per measurement, or throw away extra points taken.
    I hope this helps,
    Dan

  • Sample rate for digital sampling (cDAQ-9172 & NI 9401)

    Hi!
    I have a cDAQ-9172 with a NI 9401 C-series module (digital). I would like to sample the digital inputs with a sample rate of e.g. 400 kHz or 200 kHz. My problem is that I can only select a the 100kHzTimebase clock, and therefore only get a 100 kHz sample rate. The 20MHzTimebase clock is too fast, since it gives me a sample rate of 20 MHz). Is it possible to get a user defined sample rate of e.g. 200 kHz, by e.g. dividing down the 20MHzTimebase clock?
    Solved!
    Go to Solution.

    The cDAQ-9172 chassis does not have an internal timing engine for digital input however you can use one of the onboard counters to generate your clock.  Set your pulse train generation counter to be one of the internal counters, such as "cDAQ1/_ctr0" and your digital input sample clock source to be /cDAQ1/Ctr0InternalOutput". 

  • Why is it that I can't do a continuous streaming to disk with a 5102 scope card (PCI) when I can do it with a DAQ Card of much lower specs (my requirement is for small sampling rates only)?

    I am told that the 5102 Card (PCI) does not support continuous streaming of data to the hard disk. My application requires only very low sampling rates. If I can do it with a low spec DAQ Card using LabView why can't I do it with this card?

    Hello,
    The PCI-5102 is a high-speed digitizer card that has a slightly different architecture than the DAQ cards and was not built with the ability to stream data to the PC. However if you are sampling at low rates you can still acquire up to 16 million samples, which is done by using dma to tranfer data from the onboard memory on the 5102 to the PC memory. However, you will not be able to save the data to disk until the acquisition is complete.
    Another option would be to purchase either a DAQ card or a PCI-5112. Both boards can continuously stream data to the host PC and you should not run into any PCI bus limitations if you are stream to disk at relativiely slower rates.

  • Possible sampling rates of a PCI-MIO-16E-1 with DASYLab

    Hello!
    I'm using a PCI-MIO-16E-1 DAQ. It's maximum sample rate is 1.25MS/s
    My questions:
    - What does maximum output rate of 1MS/s mean? I need 3 channels at 400kS/s.
    - What are the possible sample rates? Can I use e.g. 3 channels with 105 kS/s each?
    - If not what are the fixed sample rates of that card?
    Thanks a lot

    Hi matadler,
    The E-Series boards have one DAC for each output, therefore you can use the full output rate with all output channels.
    The PCI-6070 (formerly known as PCI-MIO-16E-1) has 2 analog outputs, which can be used at up to 1 MS/s. If you need more analog outputs, you need another board.
    Analog inputs on the E-Series boards are multiplexed. This means you have only one ADC which is used for all analog input channels. You have to divide the maximum sampling rate by the number of channels you actually use.
    For your application, this means you can use up to 416kS/s with 3 channels. There are no fixed sample rates on the board, so it's no problem to use 105kS/S.
    Regards,
    Richard H.
    National Instruments

  • MyRIO aggregate sample rate

    Hi Forums,
    Quick question, the myRIO AI sample rate is 500kS/s aggregate on the MXP connectors (A and B).
    My current thoughts are that connecting to inputs on AI0-AI3 on MXP connector A, would give me 125kS/s per channel, therefore ~ 62.5kHz bandwidth (please correct me if I'm wrong).
    What I'm trying to work out, is whether the 500kS/s gets split between the total inputs shared between MXP A & MXP B; or is it 500kS/s aggregate per connector? I.e. If I split my inputs to AI0-AI1 on MXP A; and AI0-AI1 on MXP B, would I be able to increase my sample rate per channel?
    Kind thanks,
    Tori
    Tori
    Student
    Solved!
    Go to Solution.

     Hey Tori,
    Here is a thread on a similar question: http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/Question-about-myRio-Hardware-ADC-DAC/td-p/...
    Any I think my answer in that thread (copied below) should answer your question:
    The best way to think about the myRIO hardware is as if it has two ports the MSP and MXP (don't distinguish between A and B on the MXP connectors).
    The MSP AI, MXP AI, and Audio In (ie all the AI) share the same ADC.
    The MSP AO and Audio Out each have their own DAC but share an SPI line.
    The MXP AO has its own DAC and has its own SPI line
    Let us know if you have additional questions!
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • Optical digital input (S/PDIF) problem (sampling rates)

    I have a huge problem with my 2009 iMac's digital input that I didn't run into on my older MacBook running the same OS (10.6.x), and it's driving me nuts!
    Basically, I'm trying to record a digital feed from an ADC hooked up between my hand-built tube amps/turntable and my iMac, with the goal being the transfer of some of my LP records to 48/24 LPCM for archiving and editing. The ADC's output rate is fixed at 48000Hz and cannot be changed. My iMac, however, refuses to lock on to the device rate, instead forcing 44.1kHz in the audio/midi setup. In fact, I can't get it to do anything but 44.1kHz on anything I plug in (even my DAC's passthrough) despite the fact that I need to use 48kHz. The audio is correct for a few seconds, then forces back to the wrong rate again. No matter how many times I try, the computer insists on using the wrong sampling rate, which has rendered impossible any hope of using my iMac as an audio recorder.
    I've tried setting up an aggregate device, but to no avail. Nothing I do seems to work, and since the problem is with Core Audio, any program used to catch the audio records gibberish. Is there a way to force Core Audio to use 48kHz in the terminal? It's not like the computer can't do it, as I get about 2 or 3 seconds of correct audio when changing the sampling rate manually. I just can't get it to stick!

    Seeing the exact same thing here. External digital source is 48kHz, and this Mac Pro Desktop will only stay on that setting very temporarily (for about .10 or .15 seconds) then it reverts back to 44.1kHz. Even if I don't have a signal or even a Toslink cable plugged in to the input.
    (I'm surprised you are getting 2 or 3 seconds of correct audio, when I'm getting about 1/10th that before it reverts back to the wrong sample rate. Maybe related to a buffer size option somewhere?)
    I have tried every known option to reset or re-configure this, and even to the point of creating a new user, resetting PRAM, resetting SMC, etc. I was going to try upgrading to 10.6, thinking maybe it was a 10.5.x problem, but now I'm not sure that will help.
    Had I the choice to set the setting to be 48kHz and lock it in, it should stay on that setting - (even if the chance exists that what I'm getting is not correct.)
    More often than not, I know what I'm doing more than Mac OS does, and I want to force it to do what it needs to.
    There really needs to be a "do it because I told you so" option for most of the Mac audio configuration system. This automatic "the hardware decided to do something for you" stuff is absolutely horrid for a system that is marketed as "Pro". A real "Pro" system would let me edit the configuration once, with the tool (text editor hopefully) of my choice, rather than attempting (and failing) to automate things.
    +1 for another instance of this being "a huge problem" and "it's driving me nuts!"

  • Audio sample rate does not match (HDcam to dvcam)

    I'm trying to import clips and keep getting this message:
    "The audio sample rate of one or more of your captured media files does not match the sample rate on your source tape. This may cause the video and audio of these media files to be out of sync. Make sure the audio sample rate of your capture preset matches the sample rate of your tape."
    Footage was originally shot on HDCAM and transferred to DVCAM elsewhere. Using FCP 5, am importing via firewire from a Sony DSR-11 deck. Using DV NTSC 48kHz Anamorphic as capture settings (though I've tried everything that I thought might possibly work with no success). The audio does not seem to drift over the course of several 5 minute or so clips. Clip settings show audio at 48 kHz (don't know if that's from capture settings or from actual data). Seems to me all audio should be 48 kHz 16 bits, so can't figure out what's going on. I have to export an EDL for the project to be finished in HD. Read some similar threads that ended in December, seemingly without much resolution. My broader concern is why this is happening; my immediate concern is do I need to worry about this right now since the media files will need to be recaptured in HD anyway. Any thoughts?
    Thanks

    A little more info. I'm having this problem on 4 tapes (from different cameras) that were transferred to DVCAM in a squished format to appear full screen on a 4x3 monitor. Video that was letterboxed and I can bring in with the standard DV NTSC capture settings does not have this problem. Still have the problem if I try to import the clips from the squished video with standard settings. Any thoughts?

  • Sample rate off the audio input and out devices do not match - what to do?

    This is fundamental, I know, but nevertheless I can't find my way around it. I get this error message when trying to recor:
    Sample rate off the audio input and out devices do not match
    and am asked to do this:
    Use the appropriate operating system or audio device control panel to adjust the sample rates of the input and output devices to use the same settingt.
    I have defined the sample rate to 44.1/16 bit in accordance with my inbuild soundcardt.
    I am trying to record from LineIn.
    When running on a M-Audio sound card I don't face any problems.
    HP 8560W, sound card IDT/High definition audio Codec
    Any suggestions?
    Knud
    Copenhagen

    You're sure you have set BOTH the input and output settings to 44.1 16 bit?
    Which version of Windows are you running?  There are a number of posts on this forum about how to fully access both the Windows Mixer and the Mixer for your soundcard.  Especially, you need to ensure that all "Windows Sounds" are turned OFF.

Maybe you are looking for

  • HUM with Serial Numbers

    Hi, i did the pgi with wrang qty (that is Hu no should have 10 qty but after pgi we found only 6 there) so we did the reversal in vl09 and now when i going to take the pgi again it is not picking the rigt qty. it is picking 6 qty again.. in outbound

  • Hi Gurus, I want to know about SAP Insurance Certification course

    Hi Gurus, I want to know about SAP Insurance Certification course.  Can anyone guide me how to proceed. Regards Raghu

  • Could not commit transaction

    Hi, I am creating an approval procedure for SO, checking balance, due inovices and payment terms. The approval should not be trigger when the SO is cash basic. The payment term cash basic has code -1. This is my query. I got the error Could not commi

  • How to run swing on mac

    Hi there! Please can anyone help me through this problem? I have an java application, using swing, which runs perfectly on a windows machine But when i try to view the same application on mac it gives me java.land.NoClassDefFoundError I have installe

  • Is it possible to view AVI files in iTunes?

    is it possible to view AVI files in iTunes?  If yes, what codecs are required ?