How does data enter/leave the ni4351(pci) buffer?

I have recently begun using an ni4351(pci) for data acquisition. I'm using VC++ on a Win95 system. I've been digging through the documentation for the ni435x instrument driver, but I can't locate an anwer to the following question: How does the buffer for the analog input scans work?
It's stated in the instrument driver help that if the function to set the number of scans is not called, then acquisition will be continuous. My questions all revolve round the concept of continuous acquisition. I believe that I understand what's going on until i look at the fcns that read/check the acquisition.
What is the purpose of the timeout variable? I undertand its general purpose, but it seems (to me) that we must pass a ti
meout variable to functions that should never time out (e.g. check and read which only returns data that has already been collected).
How is data written into the buffer? is it sequentially added? (e.g. the first data point is buffer[0] and the last would be buffer[999] in a 1k element buffer?) or maybe the most recent acquisition is stored in buffer[0] and older data gets bumped back?
What happens to the data after a read (or check and read) has been performed? is the buffer cleared? does the data keep getting entered sequentially as if nothing has happened?
I apologize if this is in a document somewhere on your site. Thanks in advance for your help.

Data is written into the buffer sequentially. The buffer that the data is written to is a circular buffer. When the values are read into your program as an array, the first point that was acquired will be first in your array. The following tutorial explains what going on in hardware during a continuous acquisition:
http://zone.ni.com/devzone/conceptd.nsf/webmain/F2DDCBAD754C687C86256802007B8514?opendocument
I hope this answers your questions, feel free to post again if it doesn�t.
Best Regards,
Doug K
Application Engineering
National Instruments

Similar Messages

  • How does waveform graph downsamples the data before it is plotted

    Hi,
    I'm interested in how does waveform graph downsamples the data before it is plotted and what algorithm is used for this purpose? My goal is to plot 30 plots that have 1M samples each and I would like to downsample them before plotting onto a graph. I tried several VIs/algorithms for resampling and none of them gave the same result as seen by waveform graph (when all the samples are plotted).
    For example, if only one sample of 1M samples is 1 and all others are 0, then after downsampling to 1k samples the sample is not visible on the graph anymore. However, if I plot all 1M samples directly onto the graph, then also this 1 sample is visible (see attached example). 
    Solved!
    Go to Solution.
    Attachments:
    WFGDownsampling.vi ‏19 KB

    Hi andrej,
    LabVIEW draws plots in the way that draw every pixel affected by signal. So for example if there is zero-valued 1M samples and even one equals to 1, you will see the peak. That is the reason why you do not get the exactly same behavior comparing to interpolating. But if you set FIR as interpolation mode in Resample Waveforms (single shot).vi, result is really similar, but of course amplitude is 1000-times smaller than original one (because there is dt set to 1000). Keep also in mind that in Graph 2, there is different Y-scale and it should be considered as noise, not relevant data, I would expect 1000-times smaller amplitude as in Graph 3, it is many more times smaller.
    I would also like to say something about downsampling (decimating) the data. If you have 1M samples, you can see the peak even that there is only one value. But bigger problem is that with this graph resolution (I guess that is not more than 1000px), it is problem to find position of this peak. It means that still the zoom is needed to know where the peak is. Usually, when there is that big set of data, you are extracting different data (statistical information, peaks in FFT, etc.) not just visual data in graph.
    Mariaaa:
    I do not understand your question, can you please describe more your needs? You mentioned saving the data into a file, you can use Write to Measurement File express VI or see Write to Text File.vi in Example Finder and try to appropriately modify it.
    Best regards,
    Martin

  • I just discovered that data entered in the "Notes" application on my iPhone is syncing to the notes section in my yahoo mail account.  How do I prevent this from syncing?

    I just discovered that data entered in the "Notes" application on my iPhone is syncing to the notes section in my yahoo mail account.  How do I prevent this from syncing?

    Hi
    On your iPhone, go the settings app. Then select Mail, Contacts, Calendars on the left column. On the right column under Accounts select your Yahoo mail account. A popup with show up and then you have to turn the the Notes switch to the off position.

  • Dates entred in my Calendar on the iPhone do not sync and then appear on iCloud on my Mac. Dates entered on the Mac sync perfectly OK on the iPhone Calendar. What is happening here?

    I enter dates and appointments on my iPhone Calendar but they do not sync with my iCal or iCloud Calendar on my Mac Pro. BUT dates entered on the Mac Pro do sync and appear on my iPhone Calendar. What am I doing wrong please? How do I resolve it?
    Everything synched fine before under Mobileme!

    Me too me too!  Please answer!

  • Data entered in the custom field in the SRM portal not getting saved..

    Hi Experts,
    I have added a custom field in Contract Screen of the SRM portal by adding the field as an append structutre in structure INCL_EEW_PD_HEADER_CSF_CTR.
    The custom field now appears in the header (basic data ) of the 'Process contract' screen.
    NOw It allows me to enter data in the custom field .
    The problem is ..
    When I  'CHECK' or "RELEASE'   the contract, the value entered in the custom field disappears..
    How do i capture the data entered in the custom field ...please HElp!!!
    Thanks in Advance.
    Vidya

    Hi Pradeep,
    Thanks for the reply!!
    We have upgraded our SRM system from 3.0 to 5.5
    I have added the custom field in structures INCL_EEW_PD_HEADER_CSF_CTR  and
    INCL_EEW_PD_HEADER_CSF  as the field has to appear in the basic data tab of 'Process Contract'.
    Regarding debugging:
    1. I tried to debug in BBP_DOC_CHECK_BADI by calling the FM BBP_PD_CTR_GETDETAIL. inside the badi and the parameter e_header of the function module contained the custom field but had no value...!!
    2. I tried to debug the badi BBP_CUF_BADI_2  method MODIFY_INPUT..
       The import variable iv_fieldname contains the field name amd the variable iv_value has the value entered in the custom field .........but another import structure ls_header also contains the custom field but no value....
    Method  MODIFY_INPUT has only one export parameter ev_value,,,,,,,,,,,,,,,,!!!!!!!!!!!!
    Edited by: vidya vidya on Apr 24, 2009 6:06 PM

  • When using time capsule on a PC based network, how does it appeare on the network ? like a normal shared external HDD ??? or what ?

    when using time capsule on a PC based network, how does it appeare on the network ? like a normal shared external HDD ??? or what ?

    Yes, it will show you the main directory.. so if you link in windows explorer it will be..
    \\TCname\data
    Or \\TCipaddress\data
    Data can be whatever name the main (root) directory of the TC is called.

  • How does condition category affect the price procedure

    Hello Gurus,
         there is a case as following:
    if the condition type in the pricing analysis says in a billing document that the ‘‘condition is found and set,” and one is using the condition requirement number 024 (which only determines the price in billing document) yet still has to do new pricing in order to obtain the condition record, Should the condition category be blank, the system would propose the message “condition is found and set” but does not provide an actual condition record.
       the fault would be that the condition category on the condition type should be equal to L.
       so my question is " how does condition category affect the price procedure" ? thanks very much!

    Hi Zhang,
    -->Condition category is a classification of conditions according to predefined criteria.
    -->These categories include packaging costs, delivery costs, output taxes and discounts.
    -->The classification of conditions by condition categories can be used for analysis.
    I hope it will clear for you
    Regards,
    Murali.

  • HT4314 i'm new and i don't know haw to access a new crossword puzzle, the one i already completed keeps coming up...how does one get to the next puzzle?

    in crosswords how does one advance to the next puzzle please, thanks

    Re: That garbage is unreadable.
    If you really want help, stop messing with the fonts and post so that others can read and offer suggestions.
    Or better yet... try a search, I'm certain you'll find a solution to whatever issue you're experiencing.
    I have found that many times it is the things that make you most angry that push you to action. This was the case here. Thank you for causing me to get so angry that I found the answer myself.

  • Sorry if tis is naive.  I have just bought my first iPad Retina Display.  I have WiFi at home but it has taken ages for me to connect as I needed all sorts of codes, passwords, detauils etc.   How does one connect to the web (Google) when one is out and a

    Sorry if this is a bit naive.  I have just bought my first iPad (Retina Display).  I have WiFi at home but it has taken me ages to get on-line as I needed all sorts of codes, passwords, numbers etc.
    How does one connect to the web (Google) when one is out and about?
    Thanks

    haha, You're welcome
    Maybe these links will be useful
    ipad manual/user guide
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    ipad support page
    http://www.apple.com/support/ipad/
    ipad assistant
    http://www.apple.com/support/ipad/assistant/

  • How does one tell if the J2EE services are running with Unlimited

    How does one tell if the J2EE services are running with Unlimited
    security? We have applied the export Policy to the server but we do notsee any reference to it running with it. .we apply the Service packs SAP now upgrades that JAVA as well . Do that process treat the JAVA
    lib/security area correctly.

    Just out of curiosity... Is there something you do
    like about Mac/Apple?
    To answer your question: no, not really. However, the points that I made here were about Safari and accompanying utilities, not about Apple in general.
    If it makes you feel any better, I am just as, or even more, critical of Micro$oft as the occasions arise...Windoze Vista is the most recent occasion and has given sufficient reasons and opportunities to vent my spleen that I actually have eased up on Apple, politicians, nut-case religious extremists, cell phone owners, and the Department of Homeland Paranioa, etc., due to an exhaustion of creative energy.

  • How does apple know what the fault is with my iphone?

    How does apple know what the fault is with my iphone when sending it to them on apple care. My sleep/ wake button seems to be stuck so I sent in for a repair on the website and they sent me a apple care box and said send it back but I Carnt remember if I told them the fault or do they know by the repair ID number? Please help as I'm sending it off in a couple of day.

    Include a note in the shipping box describing in detail the issue you have with the phone. Include your name, address, phone number, email, iPhone model and serial number, and a detailed explanation of the problem.

  • How does Mac OS calculate the charging Cycle count?

    Hello, Guys
    How does Mac OS calculate the charging Cycle count? I just used my MBP for about 15 min without power plugged in and I saw it left about 90% battery. However after the battery be recharged, I checked system profiler. It shows charging cycle count increased 1. I do remember that last time I left almost the same percentage of battery and plugged in. After the battery was fully charged, profiler did show cycle count increased.
    So I am wondering How does Mac OS calculate the charging Cycle count? Basing on the percentage left or something else?
    Thanks,

    Ok,
    But does it count continuously or separatly? I mean One time I used 10% and recharged full; and next time I used 20% and fully recharged again. Does the OS increase the cycle count when the usage adds up to 100% no matter how many times of recharge?
    Thanks,

  • How does one know if the latest Camera Raw is included Photoshop CC?

    How does one know if the latest Camera Raw is included  with Photoshop CC?

    Help>About Plug-In>Camera Raw...

  • How does Imac connect to the internet?

    How does Imac connects to the internet?

    Through your ISP (internet service provider); once you set up an account with them, you can decide to connect via ethernet cable to their modem, or, if you have a router (which is connected to their modem, you can connect wirelessly.
    Is that what you were wondering about or did I misunderstand your question?

  • How does dust get in the screen?

    ad for two years and noticing dust in the screen, for example a pretty big dust dot that can be seen on white or light backgrounds.
    How does dust get in the screen? The middle of the screen? And will it eventually go away?
    Is it through the vent? Like how does dust get in?

    Is there an AASP near you?  AASP's Outside of the USA 
    How to find your nearest Apple Authorized Service Provider (AASP)
    Apple does repairs on all of their products.  Either way, if you are out of warranty, you will be responsible for all repairs no matter who does the repairs. 
    If you want to try DIY repairs - Do-It-Yourself Laptop Repair 
    Research YouTube's 'How To' video tutorials
    FixYa

Maybe you are looking for

  • Nokia N95 8GB takes ages refreshing even for one t...

    Hi All. I have had this REALLY frustrating problem... Every time i add a track to my phone, then i refresh it takes AGES to update the library. Does anyone know how to fix this? Nokia N97 Mini V: 10.0.020 : 14/10/09 RM-555 Old: N95 8GB : V 20.0.016 :

  • How do you move photos from one album to another?

    I imported a few photos from my iphone 4 into my new ipad using Bump. The ipad put these photos into an album. I'd like to be able to organize some of these into different albums and also name the albums. I don't want to sync all my photos from my ph

  • [JS] [CS3] How do you find an insertion point's paragraph index #?

    This is probably a very simple thing to do, but I haven't been able to find a way to reference this. Thanks in advance for any help provided. Len Swierski

  • Uninstall Premiere Element 10

    I have both Prem Element 10 and 12 installed on the same computer. Can I uninstall PE 10? 

  • Need help with X-Fi XtremeGamer (Sound proble

    Hey all i have an issue with my X-Fi XtremeGamer?, Today i wanted to start Broadcasting games on the internet using webcam max+ a site called JTV, I get 2 options of sound to pick Mic, Are Digital-in so i pick Digital-in since i want sound from my ga