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

Similar Messages

  • How to build a array with collected data

    Hi,
    I have collected data from serial port with VISA. Now I want to build a array with 100 date points. Should I connect VISA Read with Build Array directly? How to do it?
    PS: All of them are in a While Structure.
    Thank you!

    An inefficient way to create the array is to use the build array and a shift register as shown below. It's more effecient in terms of memory management to create the array and then use the replace array subset as shown in the other image. Of course, if you don't need the array inside the loop, just wire the value out of the while loop and on the exit tunnel, right click and select 'Enable Indexing'.
    Message Edited by Dennis Knutson on 07-03-2007 10:25 PM
    Message Edited by Dennis Knutson on 07-03-2007 10:26 PM
    Attachments:
    Crude Build Array.PNG ‏4 KB
    Better Build Array.PNG ‏6 KB

  • Lock in Amplifier with high sampling rates on non DSA hardware

    Hi,
    I plan to use the NI lock-in amplifier startup kit to detect a harmonic signal of around 400kHz. I plan to use the digitizer PCI-5105 ( I have not purchased it till now, but I will soon). I have downloaded the lock-in start up kit and unzipped the folders and was hoping to give it a trial run with a NI USB-6363 however the vi does not open because it says there are a lot of subvi's missing (subvi's like AI read.vi, AI clear.vi, etc.). Also the LockinDemo.vi seems to use NI 4472 as a default hardware. My questions are 1) Can the NI lock-in-amplifier startup kit be used with PCI-5105 and 2) can the missing vi's be downloaded from somewhere or be replaced with other blocks on my own?
    Thanks in advance for any help
    Avishek
    Solved!
    Go to Solution.

    Dear All
    I have plotted waveform graph frequency vs amplitude of real time signal. I am using measurement computing USB1208FS. I used fft.vi to plot the graph and get the waveform which is attached. On X-axis frequency is form 0 to 0.49HZ. But I want to increase that from 50 to 500 hz. When X-axis scale is in auto select mode then it automatically adjust to 0 to 0.499 hz. When I deselect autoselect mode and edit x-axis from 50hz to 500hz then no waveform comes on display. I have set the sapling rate of 1024 and count of 500. Please guide me how can i get the desired waveform graph.
    The waveform which i plot is shown in attch1 and my desired waveform is shown in attach2.
    waiting for response
    Kind Regards
    Urfee
    Attachments:
    result that i got.JPG ‏17 KB
    desired values for scales.JPG ‏35 KB

  • How can I improve the speed of my VI to work in real-time at higher sample rates?

    I am currently trying to implement a multi-channel control system, the vi of which is attached. It effectively consists of a number of additions and multiplications in the processing subvi (also attached), however, for 7 inputs and 7 outputs I cannot get it to work at sample rates higher than 3kHz without experiencing an overwrite error. Does anyone have any tips as to how I can get the processing to work more efficiently such that I can get it to work at higher sample rates?
    Attachments:
    Simul_AIAO_Buffer(Two_Boards)_control_FXLMS_for_1_leaky_no_SCXI.vi ‏128 KB
    FXLMSsub_leak_v2.vi ‏70 KB
    filtered_ref_1_chan.vi ‏39 KB

    Hi mattwilko,
    I believe the first issue that you should address is the building of arrays.
    This is mainly happening on the edge of your loops.
    This is my reasoning.
    Allocating memory in RT to handle an array that is growing will blow away your determinism.
    I would suggets pre-allocating all of your storage and work with the data in-place.
    In LV 7.1 there are some great new tools that will help nail down issue of this type.
    If you have LV 7.1 you may want to upgrade so you can take advantage of the new tools.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to build a screen with master detail data

    Hi ,expert ,
    Someone can teach me how to build a screen with master detail table ?
    I wnat to build a screen for user to maintain FERT group  and  FERT detail list  in one screen .
    just like this ..
    MASTER Block
    FERT1      
    FERT2 
    FERT3
    DETAIL Block
    FERT1A1
    FERT1A2
    FERT1A3
    when I double click FERT1 in the Master Block the detail view will show FERT1A1  A2 A3
    Thanks for your help ....
    Moderator message : Not enough research before posting. Spec dumping not allowed. Thread locked.
    Edited by: Vinod Kumar on Jun 13, 2011 1:38 PM

    An inefficient way to create the array is to use the build array and a shift register as shown below. It's more effecient in terms of memory management to create the array and then use the replace array subset as shown in the other image. Of course, if you don't need the array inside the loop, just wire the value out of the while loop and on the exit tunnel, right click and select 'Enable Indexing'.
    Message Edited by Dennis Knutson on 07-03-2007 10:25 PM
    Message Edited by Dennis Knutson on 07-03-2007 10:26 PM
    Attachments:
    Crude Build Array.PNG ‏4 KB
    Better Build Array.PNG ‏6 KB

  • How to populate an array with random text files.

    I am making a Jeopardy program. I have my program set up so that it retrieves 5 random text files. I just want to know how I populate one array with all the lines from the text files my program is retrieving.

    You can read a textfile line by line and add each line to an ArrayList. An ArrayList is very much like an array only that it's "open ended". You can start adding lines without first knowing how many you're going to get. If you still want an ordinary "static" array when you're finished reading lines you can easily get one from the ArrayList and then drop the ArrayList.

  • How to create 2D array with 3 rows and unlimit column?

    how to create 2D array with 3 rows and unlimit column?

    Here are images of what I described in my previous post
    Message Edited by JoeLabView on 11-14-2007 07:56 AM
    Attachments:
    2D-array_code.PNG ‏7 KB
    2D-array_values.PNG ‏13 KB

  • How can I continuous​ly streaming data to disk with 1MHz sampling rate with PCI 6110?

    I can only save 3 seconds data with 1MHz sampling rate using PCI 6110. Is it possible to continuously save longer time data (say 1 minute)?
    Many thanks

    if the binary file is big the ASCII file is very very very big.
    1 measurement is coded in a I16 => 2Bytes ( 4bit is not used 611X is 12bit
    card)
    if you use +/-1V range the quantum is (2 * 1V) / 4096 = 0.0004883V or 0.4883
    mV you need to use 8 digits minimum.
    And If your binary file is 1 Mo your ASCII file is 4 Mo.
    You can use this VI for inpiration you need to add the translate I16 to DBl
    to make a real value before saving.
    For Help you can mail inthe newsGroup.
    I'am a french user and my english is not good Sorry..
    Fabien Palencia
    Ingenieur d'etude ICMCB CNRS
    "StephenZhou" a ?crit dans le message de news:
    506500000005000000A5AF0000-1031838699000@exchange.​ni.com...
    > Hi, Fabien Palencia
    >
    > The program is great.
    Do you happen to know how to convert the big
    > binary file to ascii file? Thanks
    [Attachment recup data I16.vi, see below]
    Attachments:
    recup_data_I16.vi ‏57 KB

  • Is it possible to detect low frequency signals with a high sampling rate?

    Hello everyone,
    I'm having an issue detecting low frequency signals with a high sampling rate.  Shouldn't I be able to detect the frequencies as long as the sampling rate is at least 2 times the highest frequency I will measure?  The frequency range I am measuring is 5-25 Hz, and I use Extract Single Tone.vi to measure the frequency.  The sampling setting I am using is 2 samples at 10 kHz.  Is there a method I can use to make this work?
    Attached is the vi.
    Attachments:
    frequencytest.vi ‏21 KB

    You are sampling at 10Ks/S, but only taking two samples. What do you expect to see? If your signals are binary (On or Off) you would only see either an on or an off, or if the rise/fall time was fast and you were Extremely lucky, one of each. If you want to see a waveform you have to sample for at least the period of a waveform. So you should take samples for at least 0.2 seconds to capture an entire waveform at 5Hz, ideally longer.   Think of looking at a tide change at a dock. If you want to see the entire tide change you will probably have to measure repeatedly over 24 hours, not just run out on the dock, measure the height twice and leave. That wouldn't tell you anything other than at that precise moment the tide height was X, but not that it was at high tide, low tide, in between, etc.
    I type too slowly, I see that a more technical answer has been given, so mine will be the philosophical one!
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How can I find out the audio sampling rate of BetacamSP tape?

    Hi guys
    I'm trying to digitize BetacamSP tape. But I'm afraid if I might choose wrong setting...
    This tape is from very long time ago so we don't know which audio sampling rate we recorded with..
    How can I find out the audio sampling rate of this BetacamSP tape?
    Thanks:)

    The sampling rate is set by the Sony DVMCDA2 you are using, when the conversion is made from the analog input to the digital (DV) output. You should be outputting standard DV which is 16bit 48khz audio.
    Assuming you are in the US, your Easy Setup for FCP should be DV-NTSC, and then open the Log and Capture Pane and set the Capture Settings Device Control to Non-Controlable Device and you should be good to go.
    You will have to roll the deck manually and start and end your capture manually.
    You can download a user manual for the DVMCDA2 by clicking here.
    MtD

  • Need to Import Audio Books at higher sample rates in iTunes 8

    Folks,
    In iTunes 7, I could import audio books at 32k mono and they would sound good (after all, it's just someone reading - doesn't need stereo or high sample rate). However, in iTunes 8, for 32k the sound crackles and is distorted. Quality is OK at 64k mono but obviously now the files are twice as big. Am I right in slating the blame to iTunes 8? Is there some way I can use iTunes 7 encoding?

    I wouldn't have believed it if I didn't try it. To get a non-crackled 32kb mono AAC you have to:
    - Select the AAC Encoder's "Custom..." from the drop-down
    - Change the (stereo) bit rate to 64kbps
    - Leave sample rate on auto
    - Change channels to mono
    - (And most importantly) keep the "optimize for voice" box UNchecked
    I tested it several times with different audiobook CDs and settings and it seems that the voice optimization causes mono tracks of any bit rate to be garbled and crackle. Hope that helps!
    (And I'm pretty sure OS 10.5.6 is out. Check your Software Update under the Apple menu.)

  • 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

  • Cannot create slideshow with high frame rate

    I have just bought QuickTime Pro version 7. I am using Windnows XP SP2 on a Pentium D machine.
    I am trying to create a movie with still images I captured from my digital camera. I created a 10 seconds slideshow and set the frame rate to 30 frames per second. I then saved the file as a Quicktime movie. When I played the movie with my QuickTime Player, I could see actions for the first two seconds only. After that, the picture didn't change eventhough the progression bar was moving. Once the movie reached the end, the player then changed the frame to show the last picture of my slideshow.
    In short, only the first 60 images are shown in the first 2 seconds. Then the slideshow was stuck with the 60th image, until it changed to the 300th image at the very end.
    Does anybody has the same experience? Did I do anything wrong?

    One more thing. If I set the frame rate to be less than 10 frames per second, it works fine. It just won't work with high frame rate.

  • How do I determine that my audio sample rate matches my tape?

    How do I determine that my audio sample rate of my capture preset matches the sample rate of my tape?

    You've really got two issues.
    DV records audio and video differently and if the camera is substandard, you will have drift over long captures. Solutions: new, better camera or capture in small (max 10 minutes) chunks.
    The other issue is the 32k sample rate, which will exacerbate issue 1. You can duplicate the 48k preset and modify the copy for 32k and work in that until you are ready to deliver. Then copy it into a 48k sequence, render and output.
    It's funny, sometimes I get that pop up but everything is fine.

  • NI 5761 with low sampling rate

    Hi,  is it possible to change the NI 5761 sampling rate without programming FPGA? Thank you very much!

    Hi, as mentioned above you can play with the sample rate by using an external Sample clock. Take a look at the picture attach for the general idea. Simply replace the Boolean buttons for digital input ports. I hope this helps
    Alejandro | Academic Program Engineer | National Instruments
    Attachments:
    Capture.JPG ‏256 KB

Maybe you are looking for

  • How to give planners read only access to Planning cube for ad-hoc analysis?

    Hi Everyone, I am trying to issue smartview reports to the planners. Most of the reports are coming off Essbase (reporting) application. However, we have to generate one report from planning server because of the text fields. Currently, on planning s

  • Cannot find how to export from Pages to ePub

    I have Pages '09, and looked on Apple's tutorials for how to export as an ePub file... It says just click share, export, ePub, but I do not have an ePub option. My only options are PDF, Word, RTF, and Plain Text. Am I missing something very obvious?

  • JRE versions - Vista Compatible

    I would like to know wich versions of Sun Java 2 Runtime Environment are compatible with Windows Vista. Or at least I have to know if the Sun Java 2 Runtime Environment 1.4.2_06 is compatible with Windows Vista. Thanks all. Bruno Miyabara.

  • How do i close excel.exe in order to install Acrobat XI Pro? Thanks!

    I dont have any application opened, even though the Adobe Application Manager still asks to close excel.exe in order to continue installing the Acrobat XI Pro trial version. How do i solve this? Thanks in advance!

  • IMPORT_ALIGNMENT_MISMATCH

    Hello Friends, Kindly Help me to solve the ABAP Runtime Error: IMPORT_ALIGNMENT_MISMATCH I am not getting to their soluction. Transaction:  "VC05 " Program Name: "SDCAS75C " Error when importing object "P_CLASS". What happened? The current ABAP/4 pro