NI Scope 5122 Variable Sampling Rate

Hello,
I'm using an NI 5122 high-speed digitizer card to acquire data and would like to synchronize the sampling rate of the card to the frequency of the data.  For example, my first set of data will have a frequency of 13.6MHz so I'd like to sample at 13.6MHz.  When I connect a 13.6MHz signal to the CLK IN on the front panel of the card and write Labview code to sample at this rate (by either the sample clock or reference clock) I receive error messags.  Does anyone know if its possible to have a truly variable sample rate for this card?
Thanks,
Steve
Solved!
Go to Solution.

Hi Steve,
Thanks for the post and I hope your well today!
I noticed you've not had any support thus far.
Im not very familar with NI-scope, but with DAQmx once the task has commited you wouldn't be able to alter the sample rate. Now with pulse train generation you can (create) what effectively appears to be a didn't sample rate.
So unless NI-scope has built in this functionality, Im not sure it would be possible. 
Could you maybe attach your code and the error details?
Kind Regards,
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help!

Similar Messages

  • Shared variable sampling rate

    Hi, I would want to read some shared variable on the network at 1KHz on SignalExpress but I'm actually limited at 200Hz on it.
    Is there any possibility or not?
    Thanks.

    Hi pattegain,
    I'm not sure reading shared variables published on the network at 1kHz is possible. 
    I suggest you to read this :
    Buffered Network-Published Shared Variables: Components and Architecture
    http://zone.ni.com/reference/en-XX/help/371268P-01/expresswb/read_shared_variable_se/
    However, I tried the Shared Variable Examples (Reader and Writer) and I have been able to run the Reader with 0,002 sec (500Hz) as Sample Period parameter. Did you test those examples?
    Regards,
    Jérémy C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Pci 5122 minimum sampling rate

    what is the minimum rate at which i can do sampling from pci5122 card with external clock?

    Check out this thread - http://forums.ni.com/ni/board/message?board.id=150&message.id=529.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • 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

  • DASYLAB QUERIES on Sampling Rate and global variable

    hola
    i'm new user of dasylab and i would like to manipulate the sample rate through a layout ;
    using global variable seems good idea but the adress of sample rate is unknown .
    Hope that someone would be able to help.!
    also other small things when i use coded swich and i want modify  the text in the Switch Window i don't know how
    Lots of thanks!

    Hi,
    There is a dedicated place in this forum where you'll certainly get more answers than here :
    http://forums.ni.com/t5/DASYLab/bd-p/50
    Regards,
    Da Helmut

  • NI Scope Sample Rate Settings

    I think I found my problem with determining the frequency of my 1D DBL array.
    I'm using a PXI-5112 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 find a list of realizable sample rates for this card, I didn't see anything in the data sheet. Any suggestions?
    ~~~~~~~~~~~~~~~~~~~~
    Paul Johnson
    Renco Encoders, Inc
    Goleta, CA
    ~~~~~~~~~~~~~~~~~~~~

    Thanks, I just ran across this info in one of the help files as well.
    Do you mena a property node for the scope card? I use property nodes for programming objects, butI ahven't used one for a piece of hardware before.
    For now I'll just stick to integer divided clock speeds. It may also be better to aquire at full rate and then decimate the array. Still stuck with needing to decimate by integer though.
    ~~~~~~~~~~~~~~~~~~~~
    Paul Johnson
    Renco Encoders, Inc
    Goleta, CA
    ~~~~~~~~~~~~~~~~~~~~

  • Question about sample rate and PXI 5122

    Hello! i am new at using labview and pxi cards. i am trying to sample a signal from an analog gennerator with pxi-5122 so afterwards i can process the samples and extract the processed samples to an oscilloscope through pxi-5421. i tried to use the labview examples for pxi-5122 for sampling and processing( more precisely the example "digital filtering"). They are working perfectly for high sample rates (some MHzs), but when i try to sample low frequency signals (for example 20kHz) and use sample rate according to Nyquist criterion, the acquired samples dont reconstruct the initial signal at all. if you have experienced similar problems, how can i sample low frequency signals with sample rates according to Nyquist criterion?

    Nyquist criterion says: "sampling freq. should be at least twice the max. feq. component in the signal". For better reconstruction you should keep the sampling rate to some 8-10 times of max freq. component in the signal.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

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

  • How to build a array with high sampling rates 1K

    Hi All:
    Now I am trying to develop a project with CRio.
    But I am not sure how to build a array with high sampling rates signal, like >1K. (Sigle-point data)
    Before, I would like to use "Build Arrary" and "Shift Register" to build a arrary, but I found it is not working for high sampling rates.
    Is there anyother good way to build a data arrary for high sampling rates??
    Thanks
    Attachments:
    Building_Array_high_rates.JPG ‏120 KB

    Can't give a sample of the FPGA right now but here is a sample bit of RT code I recently used. I am acquiring data at 51,200 samples every second. I put the data in a FIFO on the FPGA side, then I read from that FIFO on the RT side and insert the data into a pre-initialized array using "Replace Array subset" NOT "Insert into array". I keep a count of the data I have read/inserted, and once I am at 51,200 samples, I know I have 1 full second of data. At this point, I add it to a queue which sends it to another loop to be processed. Also, I don't use the new index terminal in my subVI because I know I am always adding 6400 elements so I can just multiply my counter by 6400, but if you use the method described further down below , you will want to use the "new index" to return a value because you may not always read the same number of elements using that method.
    The reason I use a timeout of 0 and a wait until next ms multiple is because if you use a timeout wired to the FIFO read node, it spins a loop in the background that polls for data, which rails your processor. Depending on what type of acquisition you are doing, you can also use the method of reading 0 elements, then using the "elements remaining" variable, to wire up another node as is shown below. This was not an option for me because of my programs architecture and needing chunks of 1 second data. Had I used this method it would have overcomplicated things if I read more elements then I had available in my 51,200 buffer.
    Let me knwo if you have more qeustions
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    RT.PNG ‏36 KB
    FIFO read.PNG ‏4 KB

  • Is there any PXI oscilloscope card, with sampling rate 1Gs/s or higher

    Hi all
    In my test lab, I am using TDS684B oscilloscope. Is there any PXI card which can perform the same function as TDS684B? I searched the NI catalogue and they don�t have 1Gs/s sampling rate scope. Is there any other vendor for PXI and may be they might have. Please give me suggestion?
    Many thanks.
    Saw

    I would say that Acqiris is worth a look. They have very good software support for their hardware. One can actually simulate hardware using they software while debugging at home or consulting. I have also used Gage and that product was pretty pathetic in terms of software support and hardware flexibility (it was 4yrs ago so perhaps that has changed)
    Reinis Kanders

  • Maximum Bitrate/Sample Rate?

    What is the maximum bitrate and sample rate(44.1/48k) that can be read by my iPod? Does it depend on whether I use mp3 or aac encoding? Can I use variable bit rate (VBR)? If I can use a 48k sample rate, would that mean using a smaller bitrate?

    Thank you, that article was helpful, but it did not say what bitrates could be used with AAC. MP3 is from 32 Kbps to 320 Kbps, can I use 320 Kbps for AAC too? What about sample sizes for WAV and AIFF?

  • Why doesn't Premiere handle variable frame rate video?

    Variable frame rate video comes from many places these days: phones, live streamed video recordings.
    Adobe Premiere is a supposedly production level piece of software that cost a good chunk of change.
    How is it 2012 and Adobe does not still have an answer to this problem?  After trying to editing/convert/mux/edit variable frame rate videos for the past 5 hours I am just exhausted.  No amount of conversion apps, etc have saved us and THEY SHOULD NOT HAVE TOO. 
    We have spent thousands on Adobe software packages over the last decade, probably 10s of thousands, and the only answer I find consistently is to switch to Vegas. 
    Surely, SURELY someone at Adobe with real insight into the issue can help answer the question of whether users moving into different medium should find a place elsewhere in the software ecosystem...
    Message was edited by: Kevin Monahan
    Reason: to make article more searchable

    The file I am trying to edit was recorded in a streaming application called XSplit, very popular in the game / live streaming community. 
    The frame rate is variable, slightly I am guessing, because the real time nature of the recording/stream.  The issue is that while WMP and VLC play the file back 100% correctly, when played back inside Premiere CS6 the file drifts out of sync so at the end of a 2 hour clip, we are talking more than a full second or so.
    According to MediaInfo, here is the file detail:
    General
    Complete name                            : Y:\Live\2012-12-4 Farcry 3\2012-12-04_200413079.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom
    File size                                : 4.33 GiB
    Duration                                 : 2h 11mn
    Overall bit rate                         : 4 713 Kbps
    Writing application                      : Lavf54.0.100
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : [email protected]
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 2h 11mn
    Bit rate                                 : 4 574 Kbps
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Variable
    Frame rate                               : 29.970 fps
    Minimum frame rate                       : 5.000 fps
    Maximum frame rate                       : 30.303 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.166
    Stream size                              : 4.20 GiB (97%)
    Writing library                          : x264 core 125 r2200 999b753
    Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=13.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=5000 / vbv_bufsize=7000 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 2h 11mn
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 44.1 KHz
    Compression mode                         : Lossy
    Stream size                              : 120 MiB (3%)

  • NI-DAQmx frequency sampling rate

    Hi there!
    I'm working on setting up a data acquisition Labview VI, to measure different signals on a test rig.
    I'm using the NI-DAQmx assistance (the Express VI?) to continously measure analog signals (Variable current, voltage and temperatures). This is working just fine, and i can change the sampling rate by writing to the express VI. The idea is, that the user can change the sampling rate from around 1 to 500 Hz. 
    We do however have a sensor that transmittes digital signals (a frequency), and are using a NI-9423 module to "read" it. As this is a digital signal, another NI-DAQmx express VI is needed to handle it (that's ok), but so far we can't figure out how to alter the sampling rate - it's apperently locked at 1kHz. 
    Being that we want to merge the analog and digital signals to one array, we are recieving overflow errors from the "analog" DAQ, if it's not set at exactly 1kHz. 
    So, in short - is it possible to change the sampling rate of a DAQmx recieving frequencies? So that we to DAQ assistences have the same sampling rate?
    Help would be greatly appreciated!
    - Nicklas
    Attachments:
    DAQissue.PNG ‏64 KB

    Unlike voltage measurements, which tend to be (more or less) instantaneous, frequency measurements take a finite (and often variable) amount of time.
    If it is a slow signal then you measure the number of counts of your reference clock that occur in one period of your input signal. As your input signal varies in frequency, so does the measurement rate. If it is a fast signal, you can either measure how long it takes to get n cycles or your input (again variable) or you could count how many cycles of your input occur in a fixed time period.
    The NI help on frequency measurements describes three different ways you can configure a counter to measure frequency.
    The long and short of this is that generally counter measurements come at variable measurement rates which can be problematic to fit in with a fixed rate loggin system. If the measurement period is much smaller than your desired rate then you can wait and trigger a measurement at regular intervals. If not, you can let the counter run at its own rate, placing the latest result on a notifier, and in another loop just read the latest measurement from the notifier each time you want to record a result. Depending if you counter is running faster or slower than your desired logging rate you will end up with either missed samples or repeated samples. There are inherant timing inaccuracies in both approaches because, unlike analog measurements, the counter measurement is not made at 'that exact time, now!' but over a period of time which may be long or short compared to your logging rate.

  • Set variable samples per chanel from counter

    Hi, all. I have to set variable samples per chanel for sample clock. I want to take that samples from counter input with different number of edges for every second (different speed of metal plate). What can i do for that task? Is there a god example for this problem?
    Thanks.

    Hi, GerdW. Thanks for reply. I want Sample Rate and Samples per Chanel to come from couter. CI is a metal plate with 52 tooth. The speed of metal plate is 500 cycles/min but it is not constant ( may be 490-520). For example rate of cycles is 500/60=8.33 cycles/sec. Rate of edges (tooth) is 8.33*52=433 edges/sec, but when speed goes over or under 500 the rate is different. How to put that variable samples in sample clock on AI?
    P.S. Matlab script is to calculate max samples per chanel for mean function in while loop. In the picture control "Speed cycles/min" is that 500 cycles/min speed. I have to put in that control the variable rate of edges. Other solution is to set 1 sample per edge, but i have problem here to .  

  • How to adjust sample rate of data?

    I have some data collected at 1683 Hz (yes, that was what I had!) and would like to reduce the sampling rate to some meaningful number, say 1024, 500, 400, or similar.
    What should I do?

    Well, the calculation is the approximation of your channel (variables with index 0) to a new one (index 1).
    The freq(0) and freq(1) are the sampling frequencies for the channels for the case you have waveform channels.
    The n(0) and n(1) are the numbers of the data points inside the channels. The new created channel should have the number n(1), calculated from n(0) with regard to different sampling ratios.
    The real code is the line Call ChnSplineXYCalc(..... The properties swapping can be commented out, but then the new channel would have a "system name", something like "Approximated XY", and the same for description and units... Probably one can avoid it by changing of settings, but I use to do it by code.
    In short, here you copy the properties from the "old" channel and paste them to the new one.

Maybe you are looking for