Samples to read option in DAQ

Hello,
          I am new to signal processing and confused about the DAQ Assistance option "samples to read".
What I understand is about
 Sampling rate indicates the samples read per second, I run my vi for a second and I got 10K samples when my sampling rate is 10k. Frequency resolution is also depend on this sampling rate and Samples to read.
My settings in DAQ Assistance are
continuous acquisition, Samples to read--1K, sampling rate--10K and I run my Vi for exactly one second and I got 10K samples but I am confused about "Samples to read". What it is exactly?
Thank you.

You can't write "nothing" in that box. The value must be 1 or greater.
It is a bit confusing, because in Continuous Mode, it really isn't Samples to Read, it is a range of buffer sizes - which was described in the previous reply.
Check out the HELP >>> Buffer Size
How Is Buffer Size Determined?
Input Tasks
If your acquisition is finite (sample mode on the Timing function/VI set to Finite Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples per channel attribute/property. For example, if you specify samples per channel of 1,000 samples and your application uses two channels, the buffer size would be 2,000 samples. Thus, the buffer is exactly big enough to hold all the samples you want to acquire.
If the acquisition is continuous (sample mode on the Timing function/VI set to Continuous Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples per channel attribute/property, unless that value is less than the value listed in the following table. If the value of the samples per channel attribute/property is less than the value in the table, NI-DAQmx uses the value in the table.
Sample Rate
Buffer Size
No rate specified
10 kS
0–100 S/s
1 kS
100–10,000 S/s
10 kS
10,000–1,000,000 S/s
100 kS
>1,000,000 S/s
1 MS
Note  For performance reasons, the default buffer size for continuous acquisitions differs slightly when logging is enabled.
You can override the default buffer size by calling the Input Buffer Config function/VI.
NI-DAQmx does not create a buffer when the sample mode on the Timing function/VI is set to hardware-timed single point.
Note  Using very large buffers may result in diminished system performance due to excessive reading and writing between memory and the hard disk. Reducing the size of the buffer or adding more memory to the system can reduce the severity of these problems.
Richard

Similar Messages

  • DAQ Assistant: Clock Settings (Samples To Read, Rate) can affect signal readings?

    Dear all,
    I'm totally new to Labview, and recently I get confused with the equipment I'm dealing with.
    Technical details:
    The Labview version is 7.1; computer operate system is Windows XP;
    The equipment has a NI PCI-6220 and a 68 Pin Connector Block to read signals from the equipment;
    There are 4 channels in DAQ Assistant (2 pressure reading, 2 temperature reading);
    For the first pressure reading, Signal Input Range from 4m to 20m Amps;
    Clock Settings are Samples To Read = 5, Rate (Hz) = 20.
    Description of the problem:
    I use Labvew to monitor and record pressure readings and temperature readings. The Labview configuration was set up by my advisor several years ago. Recently, I found the pressure reading vibrated a lot; for example, 5.01 to 5.05 bar within a second. In order to get a stable pressure reading, my advisor suggested me to change "Clock Settings" in DAQ Assistant from Samples To Read = 5, Rate (Hz) = 20, to Samples To Read = 250, Rate (Hz) = 1000. In this case, she believed that since we increase sample numbers and sampling rate, we could have more data, and thus have stable pressure readings.
    At first I could have very stable pressure reading. The last digit (0.01) did not change within 20 seconds. However, somehow after a day the pressure reading became unstable and even worse than previous. (pressure reading vibrates from 5.01 to 5.30 within a second)
    This is not the worst case. We found that when we set Clock Settings: Samples To Read = 5, Rate (Hz) = 20, the pressure reading is about 8 bar. However, when we set Clock Settings: Samples To Read = 250, Rate (Hz) = 1000, the pressure reading is about 5 bar. In this case, we even don't know which pressure reading is correct.
    Labview records current, and transforms it into pressure reading. Thus my advisor tried to monitor the current reading by Labview, and she found the current reading changed when she changed the Clock Settings. (0.004 Amps (5 bar) when Samples To Read = 5, Rate (Hz) = 20; 0.005 Amps (8 bar) when Samples To Read = 250, Rate (Hz) = 1000)
    Since we only change the sample numbers and sampling rate, the average readings should still be similar. However, the reading are not similar. That is what confuses me.
    My questions are, if Clock Settings in DAQ Assistant could affect signal readings? If so, how it could affect the signal readings? What is the effect of "Samples To Read" and "Rate (Hz)"? How to determine these parameters to get the true pressure readings?
    Thank you very much for your help. Hope to have some feedbacks from you.
    Best regards,
    Cheng-Yu
    Energy and Mineral Engineering
    the Pennsylvania State University

    A 6220 cannot read a current, it can only read a Voltage, so you'll probably have some (or should have) a resistor accros the voltage input. (normally 50 Ohm for a 0-20 mA signal).
    My first step would be to measure this voltage with a multi-meter so you know what the actual voltage should be.
    Then I would read that same voltage with MAX (measurement and automation explorer) to make sure you have the right value
    Now about the changing of the voltage/current/pressure, how have you terminated the other signals? Have you provided a good earthing?
    If you sample with a high frequency (1 kHz), perform an FFT on the acquired data, I can imagine a dominant 50 or 60 Hz (depends on where you live) in the signal that might cause your problem.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • 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

  • Samples to Read and Rate (Hz)

    In the DAQ Assisant window, there are two options for reading samples:
    1. 'Samples to Read'
    2. 'Rate (Hz)'
    Could someone please define the meaning of these? the context help did not clearify the meaning of these for me.
    Examples would help also:
    for example right now I have the settings at:
    Samples to Read: 1
    Rate (Hz): 200
    what does this mean in terms of samples read per second?
    Am i recording data at 200 Hz?
    Any help would be greatly appreciated.
    Cheers,
    Oliver
    Solved!
    Go to Solution.

    What is your sample type (Continuous, Finite Samples, Single Sample)?
    If you are using Continuous, then the sample rate is how often a sample is taken.  Not sure in the DAQ Assistant, but with the DAQmx Timing VI, the number of samples sets the buffer size.
    If you are using Finite Samples, then the sample rate is the same as the Continuous, but the number of samples is how many samples you want in a single acquisition.  The DAQ card will not continue to gather samples between reads.  It only gathers the defined number of samples with each read.
    If you are using Single Sample, then neither of those settings are useful.  The card will just take a single sample and be done.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Samples to Read y Rate

    Buenas tardes, estoy trabajando con la daq ni6009, la utilizo para medir las rpm de un motor de inducción, a través de un swicth óptico. Con un samples to read de 10k y un rate de 20k la lectura de la velocidad me sale aceptable, el problema es que me salen solo dos o tres datos por segundo y yo necesito 20 datos/ segundo (en un archivo). Al cambiar el simple to read y el rate toma mas datos (hasta 10/seg) pero el valor de la medición es erróneo y tiene muchos saltos.
    Ah los datos de la medición los guardo en un archivo de Excel, y al guardarlos aquí es que lo hace 2 datos/segundo; ya que la tarjeta si esta adquiriendo bien los datos con el simple to read(10k)  y el rate(20k)
    Que podría hacer para tener una buena medición y más datos por segundo?
    Gracias

    Buen día.
    Le adjunto mi Vi, y unas imágenes en el cual le explico cual es el problema.
    De antemano Muy agradecido por quien pueda ayudarme.
    Attachments:
    Pregunta.docx ‏139 KB
    Tesina2.vi ‏483 KB

  • Open in adobe reader option doesn't appear

    I am unable to open PDFs in safari on my iPad air. I have the most recent version of Adobe reader installed and am using iOS 8. When I click on the "open in" option, nothing happens. There is no "open in adobe reader" option that appears.

    I can open the PDF document (http://www.state.tn.us/education/licensing/docs/EOC_Information_Sheet.pdf) in Safari on my iPhones and iPads without any problems.
    I am afraid that it is a Safari or iOS network connection problem with your iPad.  Adobe Reader for iOS is not the app fetching PDF documents for Safari for iOS.
    What is the iOS version on your iPad?
    Is your Internet connection relatively slow or sporadic by any chance?  Can you find a faster Wi-Fi connection at a different location to see if Safari fully loads a PDF document?
    You may be able to find similar problems in the Apple Support forum for iPad.
    iPad - Apple Support
    If the problem still persists, I'd recommend using (a) a different web browser (e.g. Google Chrome) on your iPad or (b) a Mac or Windows desktop computer to view PDF documents.

  • Can't seem to change the Document Properties Advanced Reading Options in a Form that was created in Adobe LiveCycle. This option has been "greyed" out - anyone know how to update this to English so I can pass Accessibility Testing?

    Can't seem to change the Document Properties > Advanced > Reading Options in a Form that was created in Adobe LiveCycle. This option has been "greyed" out - anyone know how to update this to English so I can pass Accessibility Testing?

    LiveCycle forms use a very different approach to create a PDF form than Acrobat and that approach makes many features for processing PDFs non-functional.
    You might want to ask this question in one of the LiveCycle product forums.

  • IPad safari reader option redirects to authentication page of the site.

    I used to read online magazine in ipad safari which is a paid site requires authentication.
    When i click Reader option in safari and back to normal page the site asks for authentication again. I have already saved the passwords in safari.
    Is there any workaround to get rid of this ?

    Yes it does Barry but only on some pages, check this page:
    http://www.team-insight.co.uk/georgie-blog/
    Tap them and you get an "accessible" simplified, large text version of the page. I want to use this for all pages but I can't figure out how.
    Graham
    PS you are looking on an iPad, not desktop?

  • Read options

    Is there any command to tell Siri read options?
    For example I tell "Call Peter" and Siri asks 'Which Peter' and displays three contacts named Peter. If I have my phone in the pocket or can't look at my phone while driving it is hard to tell what options I have. I couldn't find a command for Siri to read those options.

    Hi Form
    Yes Some day's ago In did post the form , but returned without results,So hence re posting the form
    I am working on NLS [ Natural Language Processing ] String sequence and would like to use the same along with EJB's ]
    There is a 3rd Party ( JWNL ) Package avaliable on Web which uses the FLATFILE Read capability and Free one in it's env.
    For the JWNL to work ,it has to read some FLAT Files for processing
    Synonyms,Cordinate terms...
    It this is the classic Scenerion to use within the EJB HOW TO HANDLE??
    Plz help
    With regards
    Karthik

  • Change reading option in Acrobat pro 7 not accessable.

    I'm trying to change the reading options in my acrobat document in Acrobat pr 7 for mac, but the "Change reading option" under Advance is not "clilckable".
    What can I do?

    You could try printing to a new PDF with the PDF printer, setting the page size to 8.5 x 11 and setting the page scaling option to 'Fit to Printable Area'.  This will hopefully leave the existing 8.5 x 11 ones about the same size (it may shrink them slightly) and scale the other sizes.

  • Named Destinations & Reading options- Binding

    When I open a pdf file using Pdf reader and go to file properties -> advanced tab.
    In reading options section, there is a setting named "Binding" and it's default value is "Left edge".
    I don't know which value in the pdf file should be mapped to this option.
    I guess it is Catalog -> Dests dictionary.
    But there is no default value for this dictionary.
    Can somebody tell me where I can find the info about this setting in PDF32000_2008.pdf ?
    Thanks.
    Victor

    12.2, Table 150, "Direction"

  • Post read option-archive  not working in SFTP proxy service in osb

    Hi,
    i created SFTP protocol based proxy in osb also make the following option in sftp transport page of proxy,
    Post read option :Archive
    Archive directory: sftp://vms.oracle.com:22/D2O/osbarchive
    Tested throuh WINSCP,files are picking up from input directory and it was succesfully going to output directory that i configured in business service,
    bUT ARCHIVE IS NOT HAPPENING,I checked the archive directory after testing but nothing aws therei tried options like checking remotestreaming in sftp transport,that one also not working for me
    ,Pls help me to solve this issue.
    Regards
    ABHI

    I never thought archiving to be on the remote side... I think archiving is designed to be local...
    Have a look at this...
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • Ios7 safari reader option where is it now, I liked the ease to use it before

    Before ios7 came out I could increase the readability of a web page by clicking the reader option that came up in the address bat, where has the (essential to me) functionality gone to?

    What I don't like is that in ios 7 you can only increase the font size a little in reader.  If I could uninstall it on my ipad I would in a second.  I hope they restore this function in an update.  I will not update my iPhone unless this problem is fixed.   I know they wanted the new ios to be "flatter" but this is ridiculous. Why take out a function that people use. The little paragraph icon is hard to see.  I preferred the old one better.o

  • Generate or Preview XML when Extending Reader Options using Adobe LiveCycle Designer

    Hi,
    I am trying to view the generated xml when reader options are extended. However, when I try to open the reader extended PDF in LiveCycle Designer, it says you will lose reader options. Is there any other way in which I can compare the generated XML before and after extending reader options?
    I am having issues processing PDF after extending reader options as the generated xml is generating the following error.
    "XmlException was unhandled by user code, Data at the root level is invalid. Line1, position1"

    May be you can try this way to get the XML before and after the Reader extensions.
    1) Place a Text field with multi line allowed.
    2) Place a button on the form with the following in click event.
          TextField1.rawValue = xfa.data.saveXML("pretty");
    3) Open the form in either Reader/ Acrobat and click on the Button. Save the XML data in a file that was assigned to the TextField.
    4) Reader extend the form.
    5) Repeat the step 3 again to capture the XML from the form after Reader Extensions.
    This way you can get the XML from the form before and after.
    Thanks
    Srini

  • PLEASE can a AE from NI take a look at my problem. Sound input read behave in strange manner then the buffer size is larger than 2X number of samples to read.

    On my computer I have discovered some strange behavior then reading data from the sound card. Then the buffer size is 2x samples to read everything is as expected. But since I read the sound card 10 times pr second I feel a .2 second buffer is to small. I am using XP, and XP is not a RTOS so with a buffer set to 0.2 seconds I may lose data. Therefore I set the buffer size (number samples/ch on Sound Input Configure.vi) to be in range of 2 seconds. The result then is that then reading from Sound input.vi, a reading often take more than 0.1 second. On my computer it is often 500mSec. Then the next 5 read follows with almost zero interval. I do not loose data. But on my front panel the graphs looks like an very early silent movie. This error was introduced in Labview 8.x. To be honest I think the labview 7.x sound system was much better in many ways.
    But before I point any finger NI. Other people has to verify the behavior I experience. I have made an example showing this error. It is a modified version  of the "Continuous Sound Input.vi" example. Then the "buffer in seconds" control is set to 0.2 every thing works OK. Changer this to a larger number will produce the mentioned above hiccup. The larger number in this control the larger hiccup. Is it any way to fix this? My solution up to now has to use a free 3. part software(http://www.zeitnitz.de/Christian/index.php?sel=wav​eio) But I guess it soon will be outdated. It may not work with newer windows versions.
    Any help at all will be appreciated 
    And yes I have the most updated version fo DirectX. Also I se this in Labview 2009 which I have trail version of. The VI I have made is in 8.6
    Message Edited by Coq Rouge on 09-07-2009 10:54 AM
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    Continuous Sound Input with timing.vi ‏23 KB

    macaba wrote:
    If you take a moving average of the 0.2s buffer vs. 3s buffer at an update rate of 10, then they are the same (just under 100ms), so the average refresh rate is the same. I agree that is odd behaviour that the time between sound reads go to zero quite a lot then take a long time once in a while (presumably to fill the buffer
    I guess it goes to zero because it is reading data from the buffer it do not has to wait for data from the sound card. The mysterious thing is the periodic delay. You are also correct then saying that average timing is correct. And in my application I have no data loss.
    If you search for sound in this forum you will find out that many people has reported trouble with the sound system.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

Maybe you are looking for

  • How do I add 2 Polynomials

    I have a school project that I have almost completed, but I am totally stuck on one part. The overall project is to write a program that reads in 2 polynomials from the user, sorts them in to 2 linked lists and then traverses those lists and adds the

  • How to Get the Parent Community of a Community Using PRC

    Greetings, Using the PRC, I am trying to build a heirarchy table of all of the Communities a particular user has access to. Stated another way, I want to be able to build a tree of all of the communities a user can access, and display them in an expl

  • Oracle WebCenter Forms Recognition

    hello ,, i need to know the steps i can follow in order to learn document via Oracle WebCenter Forms Recognition application

  • RAC on RAW device

    1) Hi I am configuring rac on raw device 9i on aix5.Whether i can create a datafile morethan 1 gb in raw device.Can anybody give one example with creating a tablespace with a raw device configuration.The steps have to follow 2) why we cannot store ar

  • PCI DSS Compliance - Requirements 5 & 6

    We are currently applying for PCI Compliance, and are required to answer the following questions. Since our solution is hosted on Windows Azure, are these questions relevant? Can anyone please suggest where we might establish the answers to these, wi