How to coerce the sampling rate??

I think I found my problem with sampling rate.
I'm using a PCI-5122 scope card, and in many of my aquisitions, I'm setting the sample rate to 40MS/s. Apparently, this is not a valid number and the scope reverts to 50 MS/s
Later when I try to calculate cycles per second based on cycles per sample, I need the actual sample rate, and 40 MS/s ain't it.
I'm trying to coerce sampling rate.
please,.

The digitizer coerces the sample rate because of how the sample clock is derrived from the Reference Clock.  The following information is on page 13 of the specifications:
http://digital.ni.com/manuals.nsf/websearch/C6B059C1BDD70101862574C8005567F1
The sample clock is created by dividing down the Reference clock (internal reference clock is 100MS/s) by decimation, and it divides it by N, which is an integer between 2 and 65530.  
Thus 50MS/s uses a decimation factor of 2, and 33.3MS/s is the next valid sample rate with a decimation factor of 3.  So when you specify a sample rate that is not possible, the driver automatically coerces the requested sample rate up to the next valid rate.  You can obtain the actual sample rate used in an acquisition using the NI-SCOPE property "Actual Sample Rate", or the LabVIEW VI "niScope Sample Rate.vi".  Using this property, you can get the values you need for your calculations.
I hope this helps!
Nathan
Product Support Engineer
National Instruments

Similar Messages

  • How to store the sampling rate into the header of the data file?

    I want to store the data parameters such as sampling rate to the data file. Now I am using the Write Labview Measurement File VI, the data is saved, but like the sampling rate this kind of parameter is not in the file. How can I store this parameter?

    If you want the sampling rate to appear in a different location of the header, then it and it's subVIs can be modified to write anyway you want. Right click on the Express VI and slect Open Front Panel. Then you have a VI that can be modified. If you want to use an unmodified Write LabVIEW Measurement File, you could use that, read the whole file back in with one of the file read functions, insert a string with the sampling rate and then write the whole thing back out again. It might be simpler though, to use Write Characters to File to create your own header and then use Write to Spreadsheet File to write the data. There is also the function Export Waveforms to Spreadsheet File on the Waveform>Waveform File I/O. This uses a slightly different format than a .lvm file. It too can be modified if you don't like the default header.

  • How to know the sampling rate for NI6624?

    Dears,
    I am trying to measure a transient signal that is a time-vary counter train.  The target frequency is increased from 0 Hz to 50 Hz when the measurement time rises to 1 s from 0 s.  The NI 6624 card and the LabVIEW DAQmx have been adopted.  In the block diagram, the terminal of measurement method “Low Frequency with 1 Counter” is set in “DAQmx Create Channel (CI-Frequency).vi”, and the “Finite Samples” mode is chosen in “DAQmx Timing (Implicit).vi”.  Then the transient signal points (increasing-frequency points) will be got successfully within 1 s.  Now I have a question: how do I estimate the time step “dt” between these data points?  Knowing the default sampling rate of the card seems a better way to help me to define the "dt", and calculates the time stamp at each data point.  If the foregoing concept is true, how the internal sampling rate in NI6624 obtains?  Beside, for the transient counter signal, any way to get the time stamp of data points is also welcome.
    Thanks for anyone comment,
    Adan

    Adan,
    When selecting "Implicit" as the DAQmx Timing type, you are indicating
    that a data point will be taken for every measurement the counter
    performs. When you create a task of type "Low Frequency with 1
    Counter," the counter simply uses the card's internal timebase to
    measure the period between edges of your signal. It then takes this
    period measurement and converts it to a frequency. Therefore, the
    spacing between the samples you read out is simply the inverse of the
    subsequent frequency measurement sample.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • [Q] How to set the sampling rate separately?

    Hello,
    I'm using LV5.1 in Windows98 with SCXI-1200.
    I want to set different sampling rate in each input channel.
    I've ever used "AI acquire waveforms.vi" only.
    Anybody can help me?
    Example codes are highly appreciated.
    Regards,
    Hyun-ho Lee
    [email protected]

    The inputs of the SCXI-1200 are multiplexed to a single Analog-to-Digital converter. Because of this, the only difference in sampling rates that are achievable would be integer divisions of a common high frequency. This is functionally identical to acquiring all channels at the highest rate, and decimating (throwing away) data from channels that need lower data rates.

  • Sampling Rate- How do I check and adjust the sampling rate on my Laptop?

    For the purposes of matching the sampling rates on my laptop to my usb microphone, (recording in garageband) how do I find out what the sampling rates are on my 2009 macbook?  Many thanks!

    GarageBand '11: Set the audio resolution: http://support.apple.com/kb/PH1873

  • How can I change the sample rate (delta X)?

    Hi, I create vi which can measure resistance, it will record the data and write to a file.
    however, I want to change the sample rate which is delta x. is that anyway I can do?
    I have try to put a clock inside the loop, it does slow down the speed but not the sampling rate.
    Please help me!!
    Thank you!

    Hello Shan405,
    Adjusting the Reading Rate of a DMM
    As noted in the above DeveloperZone article, there are a lot of factors contributing to a reading rate of a DMM. 'Sampling rate' can only be configured in digitizer mode, which can only be achieved on the flex DMMs
    Using the NI PXI-407x DMM as an Isolated Digitizer
    Regards,
    Glenn

  • The sample rate in my code is too low. Is there a way to make it run faster?

    Dear Sir,
        I am a LabVIEW customer, and just have a question about LabVIEW.
        We are running a code of "Wirebonder Project", but find the sample rate is too low. I'm wondering if there is a way to make it run faster. (I have
    attached the code here.)
        Thank you very much!
    Yours Sincerely,
    Xian Zhang
    Attachments:
    Wirebonder_Project_Code.zip ‏169 KB

    Hi Xian,
    What system are you running this code on and are you using the LabVIEW Real-Time Module? There is a presentation online on Optimizing and Benchmarking Real-Time code with useful related links as well as other articles in the DevZone on things like Benchmarking an Application Using LabVIW Real-Time and DAQmx.
    As you can see, this is not a simple question, so take a look at the information in these links and see if you can narrow down what in your code is running slowly and how much you might be able to improve the speed.
    Regards,Stephen S.
    National Instruments
    Applications Engineering

  • Dynamicall​y changing the sample rate

    hello!
           usually we can't dynamically change the sample clock when the program is running.So I want to ask how to dynamically changethe sample rate when program is running,Can  you give me a example?
         Thank you!

    I think there is no such example.
    But i think you could add a while loop structure outside your main program. In the front panel, add a button named change sampling rate, when you press the button, the program stops the present acquisition and into a new acquisition configuration and start acquisition.

  • How to set the sampling interval using DAQ device?

    Now I have a capacity sensor and a 24 bit DAQ device (http://www.mccdaq.com/usb-data-acquisition/USB-2404-10.aspx).
    The DAQ device has the maximum sampling rate of 50kS/s . My question is how to set the interval of data collection. For example, if I set the sampling rate to 2000, in continuous sampling mode, I use DAQmx read.vi in a while loop and set the 'number of samples per channel' to 100. I want to plot these data as a function of time by using a XY graph and also save these data. So I add a 'Mean' function to get the average of the 100 samples per each loop (than means, there are 20 data output per second). But when I set the 'number of samples per channel' much smaller (to get more data per second), there are some problems. It seems that the program cannot read so many data and get the average at a higher frequency. I don't know where the problem is. All in all, how to collect data more frequently?Maybe I didn't express my question clearly. I'll upload a simple program later if necessary. Thanks.
    Solved!
    Go to Solution.

    Another question is in continuous mode, NI DAQmx uses Samples per channel to determine the buffer size. But according to the website you specified, it says if the acquisition is continuous (sample mode on the DAQmx Timing.vi is set to Continuous Samples), NI-DAQmx will allocate a buffer according to the following table. And for sample rate between 100 - 10,000 S/s, the buffer size is 10 kS. So if I set the sample rate to be 5000 S/s, and set the Samples per channel to be 20000, then what exactly the buffer size is? 20 kS or 10 kS?
    Thanks.

  • HT5848 What is the sampling rate and codec for iTunes Radio. Is it lossless encoded?

    What is the sample rate and codec for iTunes Radio? Is it lossless encoded?

    I have to agree with you.  There are several forum discussions on bit rate being as high as 256 kbps but I don't see how it could be more than 96 kbps based on the poor sound quality I'm hearing.  I'm comparing it to an internet radio station that is 128 kbps and sounds much better.
    Am I missing something?

  • Changing the Sampling rate

    Hi,
       May I know how do I change the sampling rate on a Thermocouple node dynamically through a VI on the host ? 
       I notice there is a Config node in the "Start" case where I can set the "Sample Interval Mode" to "Host Driven" but I do not know how to continue after that...
       Thank you very much !
    Regards,
    Xinke

    A user message is created by simply right-clicking on the node and selecting "Create User-Defined Variable."  Once you set it up, that variable will update over the network automatically.
    Once you've got that setup, you need to figure out how you are going to use that variable.  You should probably start here: The LabVIEW Wireless Sensor Network Module - Under the Hood
    Note: User-defined variables are only available in LabVIEW 2011 for WSN.
    Chris
    Certified LabVIEW Architect
    Certified TestStand Architect

  • ADjusting the sampling rate on a FIR filter?

    How do I adjust the sampling rate on a digital FIR filter? Thanks in advance.
    -David

    You should really start a new thread instead of posting to one that is 5 years old.
    To answer your question, it depends on your data. I don't use the DFD but with the filter functions in LabVIEW, if you pass a waveform data type to the function, then the waveform data type contains a dt value. So, set the DAQmx Read to return waveform data. If you are using low level filter functions where the input is a 1D DBL array, then the filter has to be configured. With the low level functions in LabVIEW, you use the various coefficients functions that have a sampling frequency input.

  • The sampling rate of FP-AI-110

    How can I change the sampling rate of cFP-AI-110 in Labview 8.5?
    And the filter settings of cFP-AI-110 (50,60 and 500Hz) is equal to the sampling rate?

    Hi!
       I've found this on cFP-AI-110 Operating Instructions, pag. 8:
       "The filter setting determines the rate at which the [c]FP-AI-110
       samples the inputs. The [c]FP-AI-110 resamples all of the channels
       at the same rate. If you set all of the channels to the 50 or 60 Hz
       filter, the [c]FP-AI-110 samples each channel every 1.470 s or
       every 1.230 s, respectively. If you set all of the channels to 500 Hz
       filters, the module samples each channel every 0.173 s. When you
       select different filter settings for different channels, use the
       following formula to determine the sampling rate.
       (number of channels with 50 Hz filter) ×184 ms +
       (number of channels with 60 Hz filter) ×154 ms +
       (number of channels with 500 Hz filter) × 21.6 ms =
       Update Rate"
    graziano

  • The sampling rate of Multimeter Protek 508 via RS232

    Hi everyone. I have the multimeter Protek 508. I want to take the data from it via RS232. The default detail of RS232 is:
                    Baud rate: 1200
                    Data bit: 7
                    Stop bit: 2
                    Flow control: None
    I write the code and get the data from it. But i only have the sampling rate is 2 data per second, that mean 500 ms per data. I want the sampling rate more than that. Can anyone help me to solve this problem. 
    Thank you.
    Attachments:
    186148720-Multimeter-Protek-506-pdf.pdf ‏553 KB
    Protek 508 RS232.vi ‏35 KB

    You are probably getting everything out of this device that you can. First, it is old, make that, very old. Back in the day, it might have been quick, but that was then. This is now.
    Second it's a multimeter. Very often meters like that would do running averages to make the reading appear more stable. That averaging slows down the rate at which you get new data.
    How fast are you needing to acquire data?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Conflict between the saved data and the sampling rate and samples to read using PXI 6070e

    Hello, I am using PXI 6070e to read an analog voltage. I was sampling at 6.6 MHz and the samples to read were 10. So, that means it should sample 10 points every 1.5 um. The x-axis of the graph on the control panel was showing ns and us scale, which I think because of the fast sampling and acquiring data. I use "write to measurement file" block to save the data. However, the data was saved every 0.4 second and as 35 points data at the beginning of each cycle (e.g. 35 points at 0.4 sec and 35 at 0.8 sec, and so on) and there was no data in between. Can anyone help me how there are 35 reading points every cycle? I could not find the relation between the sampling rate and samples to read, to 35 points every 0.4 second!
    Another thing, do I need to add a filter after acquiring the data (after the DAQ assistant block)? Is there anti-aliasing filter is built in PXI 6070e?
    Thanks for the help in advance,
    Alaeddin

    I'm not seeing anything that points to this issue.  Your DAQ is set to continuous acquire.  I'm not sure if this is really what you want because your DAQ buffer will keep overwriting.  You probably just want to set to Read N Samples.
    I'm not a fan of using the express VIs.  And since you are writing to a TDMS file, I would use the Stream to TDMS option in DAQmx.  If you use the LabVIEW Example Finder, search for "TDMS Log" for a list of some good examples.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Urgent : Character set problem

    We have one test server in India and another one in Europe. The character setconfigured in Indian server is US7ASCII and in Europe it is configured as WE8ISO8859P1. We have a routine that encrypts the password using 'crypt' command of HP-UX 10.20. In

  • How to use SAML in JDeveloper?

    Hi, I am trying to secure the information send between a Web Service secured with an OWSM Gateway and client proxy in JDeveloper using SAML. I can find the security setting in the security wizard for the proxy where you can setup the SAML details but

  • JDeveloper 10g with OA Extension

    I am currently working on Jdeveloper version 9.0.4.x and oracle release is 11. Can I use JDeveloper 10g with OA Extension on oracle release 11. .. I saw on oracle site .it's mentioned that JDeveloper 10g with OA Extension is only applicable for oracl

  • How to deploy flex in web server

    hi there.      im newbie flex developer and im having problem in deploying my project in web server.

  • Schedules tab locked

    I'm unabled to open the schedules tab in OBI Publisher ! My security model is set to XDO ! I have set the six roles in the Administration tools! that is, I have created six groups in the 'security manager' : XMLP_ADMIN, XMLP_ANALYZER_EXCEL, XMLP_ANAL