VI for capturing data at high frequency

Hi,
I have been trying to build a VI, which would read data from a machine at around 50KHz. I am accepting one analog signal from this machine, converting into digitized values and storing ALL the digitized values into a file. I could not afford to loose even one data. I would really appreciate if anyone has an example as to record data at such a high frequency.
Thanks in advance
Dhawal

One channel running at 50kHz is simple - in fact in the world of DAQ it's not even very fast. Check out the examples for seamless data acquisition. Basically, the idea is to set up a circular buffer that the DAQ writes to and LV reads from. As long as LV extracts the data faster than the DAQ is inserting it the process can run forever.
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

Similar Messages

  • Create PDF, Host on Website and Capture data

    I have been looking for a way to do the following:
    1. Create a new pdf (or form if a pdf isn't possible)
    2. Host/upload the pdf to our website (or html embed)
    3. Once the pdf or form is filled out on our website, I would like to receive the data the user filled out to me in a pdf form.
    I currently am operating from Mac version Acrobat XI 11.0.07
    From what I've see, this can be done, but the users data is emailed to me in just plain text format. Is there a way for me to receive for captured data in a pdf?
    Thank you!

    What happens when you navigate to the web page, then use File>Print and select the Adobe PDF printer?
    If that does not clear up the formatting issue then try printing to a normal printer. If the formatting is still of then, there's nothing you can do with Acrobat. It would be soething with your site (probably in the CSS).

  • Capture data from a http request

    i am really new learning abap and i just playing around so i looking a way for capture data from a http request giving the request value and submit for respont something like :
    put the url "http://www.imdb.com/find?s=all&q=" in some way and way for the data to request by the user
    val = 'user_entry'
    result =(any_Function)http://www.imdb.com/find?s=all&q=val
    write / result.
    pd: sorry for my bad english

    Welcome to SDN.
    If you are saying that you want to read some request from the HTTP page,then you have to do it with BSP instead of ABAP.
    Check this link for BSP.
    /message/1688265#1688265 [original link is broken]
    Regards,
    Amit
    Reward all helpful replies.

  • IO fails working for low frequency, but work well for higher frequency

    On our customized VU440 board, we did a IO performance test for each bank and found a strange problem, in the design,we send out 24bits Pseudo random data and loop back this data to the same bank with our testing board, on which the pins for tx and rx are only connected in short circuit, one differential clock is transfered to single-ended global clock in the design, using IBUFDS+BUFG to provide the global clock for tx module and rx module.
    howeve, we use vivado debug tool to check the data looped back, only found when the clock is 200MHz around, the data is correct, but if fails to get correct data when the clock is much lower, for example, 10MHz ~100MHz. And from the waveform we got, we identified the status for some pin was un-normal when the data bus failed to get correct data.
    we have found the problematic IO pins, but did not know why the problem come out, normally, we think it's normal for the IO pins fail to work when the frequency is too high, but in our case, the issue is on the contrary, we don't understand why it works for some higher frequency but fail to run when it's much lower.
    we now try to check our PCB also, but have no clue at present. 
    Some guys have any idea or suggestion to check for the reason?
    thx~

    Hi,
    What is the IO standard that you selected for the TX and the RX. How long is the loopback cable?
    Do you have proper terminations on the board? Because in general, all IO Standards need some terminations which are mentioned in the respective SelectIO user Guide for that device. Please check that.

  • OWB Support for Change Data Capture

    Hi All,
    Has anyone got OWB working with the Change Data Capture feature in the Oracle 9i database? I understand that CDC works by publishing changes through an advanced queue, which in theory OWB 9.0.4 upwards can have as a data source, but there doesn't appear to be any explicit support within the GUI for capturing CDC changes.
    I'm also working on the assumption that we're talking about Synchronous CDC as found in 9i. 10g comes with Asynchronous CDC which I guess presents a different interface to the receiving program.
    So - is there any support for 9i Change Data Capture in OWB, and has anyone got this to work in practice?
    thanks
    Mark

    Mark,
    There is currently no explicit support for the 9i CDC. You can use Advanced Queues to propagate the changes, but you will have to custom-build the capture infrastructure on the source side (set up the CDC, enqueue the changes in the appropriate form into the AQ etc.)
    OWB will explicitly support CDC (10g async, which is the least invasinve method) in our next major release currently scheduled to be release in November of this year.
    Regards:
    Igor

  • Function LabVIEW to acquire high-frequence data

    Hi,
    Actually, in a program created with LV 4.1, we use "AI Sample Channel" in a while loop to acquire data from 3 channels on a PCI-6025E card. But the frequence is limited to about 0.08s. Now, we try to port the program to LV 6.1. My question is what the function in LV we should use to perform acquisions at highest frequence. We found "AI Acquire Waveforms" in LV's standard library, but it implies a lots of modifications and we don't know if it's the fastest method.
    Thanks.

    I would advise you to study the data acquisition examples and the manual of LV.
    By using another way of doing DAQ, together with a slight modification of your program, your are able to at least a 10 or 100 times increase in throughput.
    The trick is that you don't have to re-initialise all channels, sample-rates,gains, etc, etc. when doing DAQ. This is what happens when you use some of the basic DAQ input vi's, but these are not intented for measuring data in a fast repeating way.
    Just let your LabVIEW application sample the 3 channels as a background job.
    Reading out buffers will give you the acquired values, one of the powers of NI-DAQ.
    Patrick de Boevere

  • Is it advisable to capture data through I/O for Balance sheet items

    Hi Experts
    Can you please advice is it normal practice to use Internal Orders for Balance sheet itmes since it is Cost Object
    Regards
    Sreenivasulu

    Hi Vijay
    Thanks for replying back
    I have requirement in my Project for capturing information for reporting purpose
    Basically i may use Internal Orders for only information capture nothing else
    is that advisable
    Regards
    Sreenivasulu

  • Capturing data instantane​ously after condition is met using 2 DAQ cards

    Hi all,
    I am wanting to sample a pulse and a sine wave at a low frequency of 1 kHz point by point sampling and upon a condition being met - the leading edge of the pulse being greater than a certain value - I the want to take a certain number (here 270) of samples of the sine wave at 50 kHz, multiple samples. I am doing this within a case structure and using a separate DAQ card. 
    The problem is that when the conditon is met is does not capture the data at the higher frequency straight away. It misses part of the sine wave before commencing capturing the 'window' of the 270 samples of the sine wave at 50 kHz. I want to know if there is any way of speeding this up? I am aware that using an FPGA could help but I don't have access to one. 
    The other solution would to advance the condition, i.e advance the pulse train by a certain amount so that I compensate for the delay in activating the high freq capture. I would need to set up this advance of the pulse train so that, after the delay in activation, it captures the data exactly where it is required to. What would be the best way to do this? I could delay the pulse train by a certain number of samples/ or delay the sine wave, or I have read that you can use the sample timer/counter within the DAQ card to change the 'trigger of the pulse train'. How would I implement this?
    Attached is my vi. I would be very appreciative if you could help. 
    Attachments:
    2 DAQ cards Low and High Freq Sampling.vi ‏29 KB

    I do not have DAQmx or any suitable DAQ devices so I have not tested this.
    This is a start on cleaning and speeding things up. Note that writing to the front panel indicators at 1 kHz will not work because the screen update rate is on the order of 50-100 Hz. Also charts take a considerable amount of computation beacuse they need to (1) store data in the internal buffer, (2) erase old data if the buffer is full, and (3) (slowest) recalculate all the pixels in the display for the updated data. The cart should be moved to the parallel loop. The condition True boolean will only be true for about 5 ms out of each 100.  Look at the 5 ms boolean.vi  attached. It runs close to 1 ms per iteration. The boolean is true about 5% of the time but I never see it change. Remove that boolean from your VI.
    With continuous sampling on the pulse channel and reading 1 sample every millisecond (assuming you get that fast) when the high speed sampling occurs it takes 5.4 ms to acquire the 270 high speed samples. So, ten times per second the loop takes >= 6.4 ms for an iteration. The next sample it reads from the pulse channel is the one which was measured (acquired) at 1 ms after the previous sample. Thus, this data point is read ~5.4 ms after it actually occurred. The next time you detect a pulse, it will be 5.4 ms late. The second one will be 10.8 ms late. Eventually you will get a buffer overflow, but your data will be useless long before the error occurs.
    The Dual Sampler Simulator.vi shows a possible approach to the issue. It simulates sampling both channels at high speed.  I generate both a sine wave and a square wave and sample both at 50 kHz. It simulates reading 4000 samples at a time (equivalent to reading 12.5 times per second or every 80 ms). The square samples are then processed for the transition using the boolean Implies function. I do not recall whether the Conditional terminal was available in LV2012. I did not get an error when saving for previous version so I think it will be OK. The same thing can be done with a while loop with some extra logic.  This does not handle the case where the transition occurs at the boundaries of the 4000 sample segment. To handle those cases use a shift register on the outer loop to pass the needed samples to the next iteration. The 800 ms Wait makes it run slower than "real" time but allows you to see what is happening.
    Lynn
    Attachments:
    2 DAQ cards Low and High Freq Sampling.2.vi ‏26 KB
    5 ms boolean.vi ‏10 KB
    Dual sampler simulator.vi ‏15 KB

  • High frequency

    Hi everyone, im pretty new with Labview, and I need a help. I would like to simulate square wave with high frequency (40MHz).
    1. Can anyone help me, how can I simulate the signal (test2.vi) in a moving (time) axis?
    2. I would like to catch the datas and write it into .txt or excel. I found this example (0807-LVM_Beispiel.vi). Can I get the datas like this from my 40Mhz frequency generator?
    A little help would be nice. Thanks.
    Attachments:
    test.jpg ‏525 KB
    test2.vi ‏29 KB
    0807-LVM_Beispiel.vi ‏88 KB

    thanks for your help.
    Ive been searching, and now I've changed my test2.vi into test CIC.vi and modified it. If you may see it, im trying to simulate the signal with frequency 40MHz and, with sampling frq. 800MHz and sample rate 1000samples or max. ~300.000samples (and save it in a txt.file). Actually, my task is, that im gonna need to make a labview program that can take as many points as possible, that might be not periodic. I mean, we gonna use NI card (in near future, not bought yet) to take some input datas, and to get all the data-samples in high frequency range. Is it possible to make such a program (capture the data) without knowing in the first place which NI card that we are going to use. But i believe, we gonna buy a digitizer, digital I/O and might also mxi controller (I've looked at the offered device list) from NI. Thanks a bunch. Is it much easier after buying the devices? (like getting the device's driver and maybe program that support it).
    One other question, in my test CIC.vi, im saving my points into .txt file (only the amplitude). How is the trick to take also the x-axis points (time axis) and save it in the same .txt file.
    Attachments:
    test CIC.vi ‏49 KB
    CIC 1 sub.vi ‏21 KB
    Save 1Data.vi ‏18 KB

  • What are the settings for capturing video from Canon HV20

    Hi All,
    I want to capture video from Canon HV20 with Premiere Elements 11. What kind of settings should I use to capture the video with full information?
    Here is what I did:
    1) According the manual, I went to Capture settings panel (Edit > Project Settings > Capture) and selected HDV as capture format, because my video is at high definition.
    2) In addition, I checked "Capture to Timeline" and "Split Scenes by cotent".
    Are these settings enough?
    Thanks.

    HV20user
    Sounds reasonable, using Add Media/HDV Camcorder, but....
    Have you reviewed the Adobe write up on Premiere Elements 11 DV and HDV capture firewire into it.
    http://help.adobe.com/fr_FR/premiereelements/using/WS5CDA0F91-60F1-4b79-ABF6-E9E75F498DB2. html#WS2AF26FB5-4C63-4c46-9DB3-7249558F6528
    The mention of Get Media instead of Add Media makes me wonder if the video's instructor was demo'ing from Premiere Elements 10, but...
    Major factors have always included having Premiere Elements project preset set correctly to correspond to your camera settings...For HDV data capture firewire...
    NTSC HDV HDV 1080p30 or PAL HDV HDV 1080p25 depending on if you are targeting a NTSC or PAL area where frame rates are typically a consideration.
    I had not done any DV or HDV data capture firewire into Premiere Elements. But, Premiere Elements 11's take over of the project preset setting would encourage me to encourage you to verify your project settings before the capture.
    There are probably many more, but the following is online discussion of one Canon HV20 issue
    http://forum.videohelp.com/threads/316970-video-capture-problems-HV20-camcorder-is-control led-but-no-video-capture
    If you experience difficulty with the HDV capture fireware into Premiere Elements 11, you might consider what some others have done in this regard, that is, use HDVSplit for the capture firewire and then import the split (.m2t) clips "Add Media" into Premiere Elements 11 with the appropriate HDV HDV 1080p (1440 x 1080 HD anamorphic 16:9) project preset.
    Please update us on your progress when you get a chance.
    Thanks.
    ATR

  • Best way for capturing HDV

    Best way for capturing HDV
    using easy setup setted to HDV1080 50i (camera is a Sony HDV HC1) captured video look like sh...
    and when exported with compressor is worst!
    some idea?

    Ok fantastic ! you are right (the frustration was talking for me)
    video is shooted in 16:9 HDV 1080 50i
    Captured video looks:
    full of orizontal lines (that look like scan lines) expecially evident on figure edges and on motion subjects
    and
    like it was resized 1440x1080i from a different lower resolution
    video is exported with compressor
    MPEG-2 3.7Mbps 2-pass 16:9
    Description: Fits up to 150 minutes of video with Dolby Digital audio at 192 Kbps or 120 minutes with AIFF audio on a DVD-5
    File Extension: m2v
    Video Encoder
    Format: M2V
    Width and Height: Automatic
    Pixel aspect ratio: default
    Crop: None
    Frame rate: (100% of source)
    Frame Controls: Automatic
    Aspect ratio: 16:9
    Field dominance: Auto detect
    Average data rate: 3.7 (Mbps)
    2 Pass VBR enabled
    Maximum data rate: 7.5 (Mbps)
    High quality
    Best motion estimation
    Closed GOP Size: 1/2 second, Structure: IBBP
    DVD Studio Pro meta-data enabled
    In these case the first problem is i can't obtain 16:9 format an the lines becomes more more evidents
    software is Final cut Studio HD
    camera is Sony HDV HC1e
    hope I wrote all the info
    Thx

  • High frequency power measurements

    Hey,
    I'd like to know if there are developments in measuring electrical high frequency signals with labview without using an extern power analyser. At the moment i'm using a yokogawa power analyser but i'd like to know if it's possible to log HF signals without the help of a power analyser... Are there NI products on the market for this purpose?
    Thx,
    Andy

    Hello,
    In the case of frequencies up to 200 KHz, NI can provide several solutions using the 'standard' data-acquisition boards or digitizers (scopes), from a low to very high accuracy solutions.
    A good solution can be one of the high speed M-series boards (PCI-625x).  These boards have up to 32 multiplexed channels with a resolutions of 16-bit at a speed of 1 MS/s  (500 KHz).
    A better solution would be a S-series boards.  These data-acquisition boards sample all input channels simultaneously.  We have boards with 2, 4 and 8 channels and sample frequencies of 10 MS/s  (up to 5 MHz if needed).  S-series board are the boards with product numbers PCI-61xx.
    The best solution is to use a digitizer (scope).  Also here a lot of possibilities going from low to higher bandwidth and resolution.
    The most flexible is the PXI-5922.  A 24-bit digitizer if you sample @ maximum 500 KS/s.  This board only exist in the PXI platform.
    Then NI has 8-bit digitizers (normal resolution for scopes) from 15 till 125 MHz bandwidth.  If you need a higher resolution they have solution up to 14-bit (very high for scopes) @ 100 MHz.
    Please give your local NI Office a phone call.
    They have technical engineers who can discuss your needs and provide you a solution.
    Best regards,
    Joeri
    National Instruments
    Applications Engineering
    http://www.ni.com/ask
    Make our forums great:
    If you like the answer, don't forget to "Kudos!".
    "Accept the Solution" if your question is answered!

  • High frequency quadrature decoder (NI PCI 6221)

    Hello, i would like to ask you about high frequency quadrature decoder. I am using module in DAQmx for measuring linear position. For this i am using NI PCI 6221. My problem is that i want to use this for my interferometer and we need really high speed. So I tried to use External timing whitch should be possible for this card up to 80MHz. Unfortunatelly i always will get error message that there is some kind of owerflow and my program crashes. So my question is how to get all data form this card. I know that the buffer size FIFO is only 2 so if it is impossible to get all data so i want find another solution. Is it possible let my card work alone on 80MHz and only repeatly rewrite all buffer and just sometime ask this card for sending current buffer. I dont really need all the data, but when i will ask i need to know reall position. This high speed is really necessary because my interferometer is sensitive and i dont wat to lose any steps. If there would be any possibility how to work on 80MHz and only sometime ask for sending data with position, it would be great. Sometimes i will ask not for only current position but for full buffer because i want so see what is happening during some time period, but this task will be only sometime. 

    Dear BMAJTZ,
      The counter frequency (the maximum speed available) is configured by the Task in the background. In our case, the counter is set to detect edges, so it always uses the maximum speed available. If an edge occurs, the count value increases by 1, and this accumulated count value (stored as a binary number) is read by the DAQmx Read VI, and converted to meters. So if your encoder input is slow enough for the 80 MHz card to handle, you won't miss any ticks, even if you only read the value occasionally.
    You can find further information about counters and encoders on these links:
    http://www.ni.com/academic/students/learnlabview/digital.htm
    http://www.ni.com/white-paper/7109/en
     Also if you can tell me the approximate frequency of your encoder signal, and how often you nedd the position info, I can do some benchmarking for you to see if your card is capable of the task.
    Best regards:
    Andrew Valko
    National Instruments
    Andrew Valko
    National Instruments Hungary

  • HQ vs standard pro res 422 for capture Help!

    This is my last question (I think).
    Would standard printed out on hdsr essentially look the same in this situation that I shouldn't bother with the HQ?
    A gentleman made a comment that I don't need HQ for capture but I am reading a lot of commentary on this.
    My feature film has a lot of effects, it is prepared for conversion from a 10bit digibeta sd file that was rendered out from an sd file.
    My end delivery is going to be cable broadcast and hdsr master, (though I know just for hdcam standard would be ok).
    I read different comments on here and on the web...and some of it comments if your end goal is broadcast you should have an HQ file if it comes from a 10-bit source and as well that more compression will happen down the road and taking that into consideration, as I'll be doing another render, I'd like this verified.
    And NOWHERE does it differentiate if that source is the file it's being converted from or the original footage it came from.
    And I will be effecting this last capture pro res file before another render to a final QT.
    I just want verification that standard will be ok as the individual who commented that it is I hadn't stated for sure what my delivery and end use would be and may have assumed I'd only be concerned with hdcam.
    Thanks.

    Nobody calls me a gentleman and gets away with it!
    There are many resources to heop you decide on a ProRes codec appropriate for your task. However, youmust weigh the processing cost of inadequate hardware against the possibly indiscernible difference in the HUGE difference in file sizes and heavy lifting.
    http://16x9cinema.com/blog/2009/7/31/sorting-out-the-apple-prores-family.html
    ProRes 422 (HQ)
    Visually lossless - highest-quality professional HD video that a (single-link) HD-SDI signal can carry.
    Supports full-width, 4:2:2 video sources at 10-bit pixel depths, while retaining its visually lossless characteristic through many generations of decoding and re-encoding.
    Apple ProRes 422 (HQ) can be used both as an intermediate codec to accelerate workflows for complex, compressed video sources and as an affordable, high-performance alternative to uncompressed 4:2:2 video.
    Has some subsampling of chroma, but retains very high quality.
    Supports 4:2:2 sources like DCVPRO HD, AVC-Intra,/100, XDCAM HD422/50.
    Data rate about 220 Mbps.
    ProRes 422
    Visually lossless, full-width 10-bit, 4:2:2 at lower data rate than ProRes (HQ)
    Offers better multi-stream RT editing performance. For most video applications, 422 is "good enough."
    Data rate about 147 Mbps
    The comparison in data density between HQ and vanilla 422 is 220/147.
    If you have the chops to KNOW you need to maintain this kind of image integrity then you have the hardware to accommodate the chore. If you have the chops but not the rig, forget it, you can't afford the time. If you have the rig but not the knowledge, forget it, you can't realize the benefits. It's a pretty simple decision matrix and, while you will get some recommendations, you're the only one who can pull this trigger. It's going to cost you time or money or both.
    Types of Apple ProRes Codecs
    The Apple ProRes format comes in five versions: Apple ProRes 4444, Apple ProRes 422 (HQ), Apple ProRes 422, Apple ProRes 422 (LT), and Apple ProRes 422 (Proxy). The following list describes the features of each version. For a complete comparison of the relative data rates of the Apple ProRes codecs, see Apple ProRes Format Specifications.
    Apple ProRes 4444 
    The Apple ProRes 4444 codec offers the utmost possible quality for 4:4:4 sources and for workflows involving alpha channels. It includes the following features:
    Full-resolution, mastering-quality 4:4:4:4 RGBA color (an online-quality codec for editing and finishing 4:4:4 material, such as that originating from Sony HDCAM SR or digital cinema cameras such as RED ONE, Thomson Viper FilmStream, and Panavision Genesis cameras). The R, G, and B channels are lightly compressed, with an emphasis on being perceptually indistinguishable from the original material.
    Lossless alpha channel with real-time playback
    High-quality solution for storing and exchanging motion graphics and composites
    For 4:4:4 sources, a data rate that is roughly 50 percent higher than the data rate of Apple ProRes 422 (HQ)
    Direct encoding of, and decoding to, RGB pixel formats
    Support for any resolution, including SD, HD, 2K, 4K, and other resolutions
    A Gamma Correction setting in the codec’s advanced compression settings pane, which allows you to disable the 1.8 to 2.2 gamma adjustment that can occur if RGB material at 2.2 gamma is misinterpreted as 1.8. This setting is also available with the Apple ProRes 422 codec.
    Apple ProRes 422 (HQ)The Apple ProRes 422 (HQ) codec offers the utmost possible quality for 4:2:2 or 4:2:0 sources (without an alpha channel) and provides the following:
    Target data rate of approximately 220 Mbps (1920 x 1080 at 60i)
    Higher quality than Apple ProRes 422
    Apple ProRes 422The Apple ProRes 422 codec provides the following:
    Target data rate of approximately 145 Mbps (1920 x 1080 at 60i)
    Higher quality than Apple ProRes 422 (LT)
    Apple ProRes 422 (LT)The Apple ProRes 422 (LT) codec provides the following:
    Roughly 70 percent of the data rate of Apple ProRes 422 (thus, smaller file sizes than Apple ProRes 422)
    Higher quality than Apple ProRes 422 (Proxy)
    bogiesan

  • Provide simple example for Arbitrary data sending through NI4551(DSA)

    We Converted NI-DSA function palette
    in LabVIEW under Application
    Examples>>Advanced>>Arbitrary Output Example.
    But, We not exactly getting arbitrary wave. Our arbitrary data is correct. I think there is a problem with FFT settings. So Please Provide simple example for Arbitrary data sending through NI4551(DSA)

    Hello Sateesh!
    First, what versions of LabVIEW and NI-DSA are you using.  I have been searching around for the example you are refering too and I am not able to find it.  Are you creating and arb. wave in the frequency domain and then performing an FFT to get it to the time domain?  Next, remember your wave will only be as exact as the AO specs. of the hardware...
    The output conversions occur simultaneously at software-programmable rates from 1.25 to 51.2 kS/s in increments of 47.684 µS/s. The analog output circuitry uses eight-times oversampling interpolators with 64-times oversampling delta-sigma modulators to generate high-quality signals. Software-programmable attenuation of 0, -20, or -40 dB is available on the output channels. The PCI-4451 has excellent amplitude flatness of ±0.2 dB within DC to 23 kHz, and a THD of -90 dB at 1 kHz.
    Now, as far as obtaining other examples If you use the LabVIEW example finder and goto Hardware Input and Output>>Traditional DAQ>>Analog Output.  I would also in the lower right hand corner of the Example Finder select your 4451 this will show you all examples that work with your hardware.  I hope this helps a little but please give me more details we will go from there.   Have a great day!
    Allan S.
    National Instruments

Maybe you are looking for