High sample rate data acquisition using DAQ and saving data continuously. Also I would like to chunck data into a new file in every 32M

Hi: 
  I am very new to LabView, so I need some help to come up with an idea that can help me save data continuously in real time. Also I don't want the file to be too big, so I would like to crete a new file in every 32 mega bytes, and clear the previous buffer. Now I have this code can save voltage data to TDMS file, and the sample rate is 2m Hz, so the volume of data increase very fast, and my computer only have 2G ram, so the computer will freeze after 10 seconds I start to collect data. I need some advise from you briliant people.
Thanks very much I really appreciate that. 
Solved!
Go to Solution.
Attachments:
hispeedisplayandstorage.vi ‏33 KB

I am a huge proponent of the Producer/Consumer architecture.  But this is the place I advise against it.  The DAQmx Configure Logging does all of it for you!
Note: You will want to use a Chart instead of a graph here.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
hispeedisplayandstorage_BD.png ‏36 KB

Similar Messages

  • Linking errors whlie running C examples of data acquisition using niScope and visual C++

    hello,
    I have an NI PXIe-1071 chassis with 2 PXI 5154 digitizer cards and NI PXIe 8102 controller.
    I am trying to acquire data using the same. Right now I am trying to compile some of the C based examples given in the documentation of niScope. But I am unable to do so. for instance when I tried to run "ConfigureAcquisition.c ". I am having many errors like the one given below.
    error LNK2019: unresolved external symbols _niScope_init@16 referenced in function _niScope_GenericConfiguredAcquisition@0
    for every niScope based function used in the example it is showing the same error. 
    I have only 2 files niScope.h and niScope.lib. In niScope.h there are declarations for each function but their definition is not there and I came to know that I also require source file of the same to avoid the error. Is this true????
    if I dont reqire source file please suggest me how to avoid such errors. and if I require source file from where I could find it as I talked with NI people and one of the application engineer told me that this is not available with them. 
    Please help me with the same.
    regards
    Sagar

    Try adding the appropriate source files from C:\Users\Public\Documents\National Instruments\NI-SCOPE\examples\c\common. With the errors posted by vijay, I would suggest adding asciiplot.c and GenericMultiRecord.c.
    National Instruments
    Product Support Engineer

  • Standalone application for data acquisition using NI DAQ card

    I have made a standalone application in labview GUI for data acquisition and signal processing. if i have to run this application in any other computer what all softwares should be installed other than labview runtime engine...NI DEVICE DRIVER CD alone is to be installed or do i have to install any other software for data acquisition using NI daq card??
      thanks and regards
    Solved!
    Go to Solution.

    You should only need the run time engine, The device drivers for the device, maybe need VISA drivers if you are doing serial or something of that nature, You may need the channels or tasks created in NI measurements and automation if you created them there.
    There may be other things that you will need depending on what you include in your code and what tool kits that you have installed.
    Tim
    Johnson Controls
    Holland Michigan

  • 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

  • Data acquisition with daq card 6533

    Hi all,
    i need to develop a c++ (visual studio .net, no measurement studio)
    program that performs data acquisition at a sampling rate of 10Khz
    using a windows xp laptop and the daq6533 card.
    The program must sample 8 digital signals. Each signal has a limited
    time duration, say a few seconds, and acquisition should start on the
    first rising edge of a signal, and terminate on user input. Browsing
    through the code provided with the driver, i found the examples in the
    cdio folder. It seems to me they almost do what i actually need.
    Unfortunately, many of the functions used there are not supported by
    the 6533 card, in particular the GPCTR_* family. I've read somewhere
    else that this card does not have an hardware counter, is that exact?
    I'm a beginner in this field, so i don't know what are possible alternative solution to my problem (if any).
    Thanks for any help.
    walter

    Thanks for your reply.
    I don't know actually whether i need to use counter-related functions. My problem is the following:
    I need to sample 8 digital signals with a frequency of 10khz. Every signal have a duration of a few seconds in time, and they come from sensors attached to a train's railway. Acquisition begins on the first rising edge of a signal (which coincide with the passage of the train), and end with user input (which should be after the train has passed).
    It would be of great help if you can point me to a relevant example, or give me some basic guidelines on our to proceed. If you need more information, please just ask.
    thank you very much.
    walter

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

  • 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

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

  • 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

  • Multiple data acquisition using PXI-5124 digitizer

    I have a system in which I do data acquisition of the present state of the physical system (using PXI-5124 digitizer),
    give the system some change (using labview program itself) and do data data acquisition again corresponding to 
    the changed state of the system.
    So I need to do two data acquisitions in one loop. How do I do this ? Labview examples have some programs (attached file) that
    does one data acquisition in one loop but I need to do two.
    I tried to make some changes to this program but it doesn't seem to work well.
    Thanks
    Attachments:
    PXI5124-data-acquisition.vi ‏46 KB

    From the explanation you have given about reconfiguring the digitizer,
    I think the example you are looking at is the one you want.
    The digitizer is reconfigured with new settings every time with in that loop,
    so the user can change the settings such as triggers and vertical range on the fly.
    The original state of the example showed how it was reconfiguring the digitizer,
    was there something else you wanted to add  to that example?

  • I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup

    I have my catalog "Back Up Each Time Lightroom Exits" checked, and always have. That means the catalog should have been backed-up and saved everyday, if not more than once on some dates. So with a a major problem now and needing to use the Catalog backup from last Friday, I go to my Lightroom Backups folder - and the most recent one showing not only isn't yesterday, it's OCTOBER 28 !?? Where the hell are the daily backups between October 28 and November 14?

    Oh wow - JET LAG strikes agin - my apologies; I have located the missing weeks of back-ups. After getting home from a 30-day trip to Europe, I had changed the location of my LR catalog back-ups to an external drive, and forgot that I did that. I have found them, and all is good. Never operate Heavy Machinery without enough rest. Cheers

  • How to display table data without  using ALV  and table element.

    Hi,
            Its possible to display table data without using ALV  and table element.
           Every time i am fetching data based on (customer,status) fields and displaying these data in my output using alv
           (every time i am fetching single row data ),
           But problem is alv occupying more space in the output , i want to display data part only i dont want field names,
           settings and header data etc..things.
          Give solution to  display data part..
    Regards,
    Rakhi.

    Hi,
    Does you mean that you need ALV without default Function Toolbar...? If this is the case, the easy solution would have been to use Table Element rather. But, if you need to use ALV only without Function Toolbar, you can do away with that as well.
    In that case, after calling GET_MODEL, you need to add few more lines of codes to achieve your goal. Those lines are --
      DATA LV_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
        LV_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
    * Standard Filter Function setting to FALSE
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_COMPLEX_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_FILTERLINE_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_DISPLAY_SETTINGS_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_SORT_HEADERCLICK_ALLOWED( ABAP_FALSE ).
        LV_VALUE->IF_SALV_WD_STD_FUNCTIONS~SET_HIERARCHY_ALLOWED( ABAP_FALSE ).
    * Standard Filter Function setting to FALSE Ends
    Here as you can easily notice that LV_VALUE is instantiated on CL_SALV_WD_CONFIG_TABLE. Now, using this LV_VALUE, you set standard functions as False to dis-allow their display.
    Hope this answers your query.
    Thanks.
    Kumar Saurav.

  • I burned a playlist to a data CD using itunes 11 but what is best way to get it import it into another computer with itunes running?

    I burned a playlist to a data CD using itunes 11 but what is best way to get it import it into another computer with itunes running?  I get an "X" when trying to copy to the "automatically add to itunes" folder on the 2nd computer.

    ok... so i i just made sure all my music is all together in 1 folder and i am going to trash my old music folder that is in the itunes folder... and follow your directions - let itunes start w/new library and bring my music in. Well, last little hurdle/question. I noticed that the place where my itunes library is - on an external drive doesnt have much space left on it. The place where i gathered all my music together in order to start fresh - is a different external drive and has LOTS of free space on it.
    SO... i now would like to just keep all that freshly compiled clean music right where it is but in advanced preferences I want to point to that new folder on the drive that has so much more space. So... should i delete the old music then go into itunes with a blank library and change the folder in preferences - quit and go back in and then follow your steps to loading my music? If i change the setting of where itunes looks for the music - that doesn't wipe out the old stuff... it just mixes it all up together right? I dont want that!!
    i promise this is the last question - i would love to fix this problem tonight and just be DONE!
    Thanks in advance for your patience and knowledge!!
    Lisa

  • I am using Garageband and saving my tunes as iTunes files but can´t find them in iTunes on my computer after syncing. Where are they?

    I am using Garageband and saving my tunes as iTunes files but can´t find them in iTunes on my computer after syncing. Where are they?

    My answer in the older thread is still valid
    Maybe the "iTunes Music" folder is hidden.
    Please open Terminal and issue the following command
    ls -ladO /epoche/Music/iTunes/iTunes\ Music
    you should get a line similar to this
    drwxrwxrwx  13 yourusername  staff  hidden 442 12 Mar 21:49 /epoche/Music/iTunes/iTunes Music
    Numbers, date and time may differ.
    If you see hidden then the folder is hidden. To unhide "iTunes Music", in Terminal issue the following command
    chflags nohidden /epoche/Music/iTunes/iTunes\ Music

  • HT4623 I have an iPod with iOS 4.2.1 and would like to up date version 5. The pc I normally sync with has XP operating system. So I can't up date to iTunes 10. And my iPod doesn't show the software update button shown in the article. What can I do?

    I have an iPod with iOS 4.2.1 and would like to up date to version 5. The pc I normally sync with has XP operating system. So I can't up date to iTunes 10. And my iPod doesn't show the software update button shown in the article. What can I do?

    You cannot update it if you can't get the latest version of iTunes. Actually, the latest version of iTunes will run in XP if you have Service Pack 2. Also, you posted in the iPad forum, and your profile shows you have an iPad, but in your post, you say it is an iPod. Is it an iPad or an iPod?

Maybe you are looking for

  • Cost of sales accounting & period accounting

    Hi folks, I want to know the difference between cost of sales accounting & period accounting. where do we use them and which is preferable. thanks in advance. Regards, Vijay

  • HD Video from iTunes

    Hello, I am interested in purchasing the TV series "Vampire Dairies" from iTunes. I want the HD version to be on my MacBook Pro and also be able to watch it on my iPhone. I know the MacBook Pro can play the HD video no problem but my question is if I

  • IPad Video app - bypass info screen

    I make presentations to existing and potential distributors in order to make sales in the $100K - $200K range. This  makes a smooth, uninterrupted presentation very important. When I want to play a QT movie for a presentation, instead of playing the

  • FMS2 on Linux almost working!

    Hi there, I've been testing FMS2 on Linux (CentOS). I figured that since CentOS is in essence RedHat that I shouldn't have any trouble. The good news is that it all seems to have installed nicely. When I attempt a ./fmsmgr list it gives me a couple p

  • Query re permissions result!

    Hi all, hope you can help! On verifiying permissions on my MP i go the followig result: Verify permissions for "Disc 3" Permissions differ on "private/var/log/secure.log", should be -rw------- , they are -rw-r----- . Warning: SUID file "System/Librar