How does buffer size affect double buffered waveform generation?

I had originally posted the following question:
"Why does the double buffered waveform generation pause after the first buffer before continuing?"
"I am using an AT-AO-10 board to generate a multiple channel waveform in double buffered mode. The board's DAC's are updated by an external clock signal. While the waveform generation performs well, I notice that after the first buffer has been generated there is a time delay before the next buffer is output. However the second buffer and thereafter perform well without any time delays. If anyone can provide me an explanation on why this happens I would appreciate it. I am using NI-DAQ API functions to generate the waveforms and my settings for the WFM_DB_Config function are 1 for oldDataStop to disallow regeneration of data and 0 for partialTransferStop to not stop when a half buffer is partially transferred."
-posted by Vadi on 6/7/2001
I received a response from Geneva as follows:
Geneva L. on 6/11/2001 says:
"Vadi,
The first thing is to make sure that you have the latest version of NI-DAQ installed, NI-DAQ 6.9.1. If you need to install it, make sure you completely uninstall any prior versions. Then, you will have examples installed in either the NI-DAQ or the CVI directory. In the AO directory, you should find the WFMdoubleBuf example.
Start with that to make sure the output appears as you expect. Then, you can modify it to apply your external update clock, following the idea presented in the WFMsingleBufExtUpdate example. You might even want to double-check that your external clock acts as you expect using an oscilloscope.
Finally, modify the example such that you can update on multiple channels, remembering that you interleave each channels buffer into one buffer for WFM_DB_Transfer. Whatever data is in the buffer will be updated on the output channels.
Regards,
Geneva L.
Applications Engineer
National Instruments"
I have checked my version of NI-DAQ and it is 6.9.1. I am generating the double buffered waveform according to the format shown in WFMdoubleBuf and with some modifications from WFMsingleBufExtUpdate to allow me to use my external update clock. However I continue to notice the same phenomena again and again. For a buffer size of 7500 or 10000 points there is a time lag meaning after the first buffer has been output there is a noticeable time delay before the second buffer and buffers there after is output. This time lag doesn't exist for the buffers that are output after the first buffer but it does exist for the first buffer. When I decrease the buffer size down to 5000 points the time lag disappears (Note: this phenomena also occurs when I use an internal time base as opposed to my external clock). Is there a reason for this? I am using a AT-AO-10 board and I know the on board FIFO is 1024 points deep. However from the documentation provided it doesn't indicate that double buffered mode uses the on board FIFO at all. In fact, the functions require that the FIFO mode be turned off (in WFM_Load) for double buffered waveform generation. Is there a reason why when the buffer size is increased that there is a time lag after the first buffer? Is this because of the functions themselves or is this because of the AT-AO-10 board?

Vadi,
Make sure that your buffer size is set to the same number of points that you're actually writing to the buffer initially. For instance, if you run the example as-is, the NIDAQMakeBuffer puts exactly the ulCount amount of data into the buffer. Then, it continuously writes out half buffers. Thus, if you are not writing enough data to fill up the buffer the first time, there will be that lag until the section where half buffers are output.
Regards,
Geneva L.
Applications Engineer
National Instruments
http://www.ni.com/ask

Similar Messages

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

  • Can i upgrade my laptop's graphic card? and how does this upgrading affect the other functions?

    is it possible to upgrade my HP Split 13-m111TU x2 PC's graphic card? how does one go about this upgrading process? does it affect the other functions and features of the laptop? 

    Hi:
    The graphics adapter in your model cannot be upgraded.

  • How to do another thing before returning of a buffered waveform generation?

    Hi There,
    The DAC0 and DAC1 of PCI-6024E are used to generate waveforms by the buffered analog output mode. We know that before the buffered generation is completed, the starting function of generating waveform, either "WFM_op" or "WFM_Group_Control",will not return, unless you call "Timeout_Config". In my application developed by Visual C++, I hope that after starting the waveform generation process, I can do another thing, for example, plotting data or data processing. Would you tell me how to do that? I greatly appreciate you for any reply and suggestions.
    Kylin

    Kylin,
    Actually, WFM_Group_Control() is not synchronous. It is asynchronous and will return immediately after the generation has been started. I would suggest that you take a look at the following examples. They are located in C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao:
    WFMsingleBufAsync.C
    WFMsingleBufSync.C
    WFMsingleBufAsync.C is an asynchronous generation that uses WFM_Group_Control(). On the other hand, WFMsingleBufSync.C is a synchronous generation that uses WFM_Op(). In your situation, you would want to follow the programming structure of WFMsingleBufAsync.C.
    Good luck with your application.
    Spencer S.

  • How does font size relate to font height

    Hi,Im getting confused about font size.
    If I use a font of say font size 12. Does that mean
    - its maximum height is 12
    - its maximum ascent above the baseline is 12 but it can also go below (descent) below the baseline making total height something else.
    - something else.

    The short answer is: "No".
    The font size is APPROXIMATELY equal to the ascent, or probably more accurately, the ascent is approximately equal to the font size. But if you check font metrics for any given font you will see that they are not exactly equal. Perhaps there is some definition somewhere that specifies a precise relationship, but if so, I don't know what the formula is. Even the font metrics are only something of a general hint: according to the API documentation, some characters can be taller than the ascent or drop lower than the descent. And of course character widths vary widely.
    My practice is to get the font metrics object and ask what I've got, rather than relying on anything.

  • How does time machine affect programs? ala Logic?

    Say I do a software update and it stinks, buggy, et-cetera, how would I grab Logic from TIME MACHINE and use that version (pre update) or does it update the whole computer? I'm thinking its not sophisticated enough (TM) to know that if I grab LOGIC that it needs to grab the preferences, package receipts, application support as well as the LOGIC application itself. If you do have to restore the desktop (ALL) again, is there a better way than time machine or can you somehow use time machine.
    • Or is it that sophisticated?
    Thanks!

    Time Machine is almost like a clone with archival capabilities. It will store a minimumal restorable version of your system on the backup drive with all the preferences, kernel extensions, and files and applications. Time machine is sophisticated enough to understand for a few Apple applications how to restore addresses, e-mail, and other files back into their applications from an archive. However, the only restore that I've read it is able to restore an application is an entire hard disk restore much like restoring a clone. This is especially true if the application is divided into drivers, extensions, preferences, and plugins across the hard drive.

  • How does image borders affect calculatio​n of "center of mass" of particles?

    Hi!
    I have a question about how borders in the images affect calculation of "center of mass".
    My original image (0) is a 640x480 grayscale image with border of 3.
    I make a binarized image (1) of the original image (0) to search for particles. For each particle I find, I use the ROI for the particle to extract a third image (2) from the original image (0).
    All of the images have borders of 3.
    When using the ROI from particles in image (1), are the boundingBox-coordinates related to the outer edges of the image (which makes the image actually 646x486), or is it related to the original origo of the image (making the image "logically" 640x480)?
    The same question goes for calculation of
    center of mass for the particle, when using image (2). After running a particle filter on image (2), I use imaqCalcCoeff() to calculate IMAQ_CENTER_MASS_X and IMAQ_CENTER_MASS_Y, stored in local_x and local_y. To get the global_x and global_y, which is the center point of the particle related to the origo of image (0), I say that:
    global_x = local_x + boundingBox.left;
    global_y = local_y + boundingBox.top;
    Do I need to make further adjustments since I am using borders, e.g. adding/extracting 3 from the global_x and global_y to have a correct answer, or is IMAQ vision taking care of this for me?
    Do I have to actually define that:
    global_x = local_y + boundingBox.left - borderSize;
    or
    global_x = local_y + boundingBox.left - 2*borderSize;
    I guess (and hope) that the answer is no, that I can use:
    global_x = local_x + boundingBox.left;
    -but I need it confirmed...
    Thanks,
    Torbjørn

    The image border is only used for processing (filters, etc.) It is not included in any coordinates or measurements. Therefore, don't include it in any calculations.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How does sy-tabix affect by binary search transforming no fields?

    1 report ztx1110.
         2 data: begin of it occurs 3,
         3           f1(2) type n,
         4           f2    type i,
         5           f3(2) type c,
         6           f4    type p,
         7           end of it.
         8
         9   it-f1 = '40'. it-f3 = 'DD'. it-f2 = it-f4 = 4. append it.
        10  it-f1 = '20'. it-f3 = 'BB'. it-f2 = it-f4 = 2. append it.
        11
        12 sort it by f1.
        13 do 5 times.
        14     it-f1 = sy-index * 10.
        15     it-f3 = 'XX'.
        16     it-f2 = it-f4 = sy-index.
        17     read table it
        18         with key f1 = it-f1
        19         binary search
        20         transporting no fields.
        21     if sy-subrc <> 0.
        22         insert it index sy-tabix.
        23         endif.
        24     enddo.
        25
        26 loop at it.
        27     write: / it-f1, it-f2, it-f3, it-f4.
        28     endloop.
    in this program changing value of sy-tabix as such sy-index.
    means in it's first loop it's value is 1, on second loop it's 2, and so on up to 5.
    okay that is due to binary search.
    but why binary search affecting this system variable?

    Hi Vinay,
    It is simple.
    This depends on your select query. 
    CASE 1: If you use select ..into table.....,  then there wil be nothing in your header ls_vbap. Now if you execute READ stmt..you will get nothing.
    CASE 2: If you use Select..... into ls_vbap.....append ls_vbap....clear ls_vbap.....endselect.   In this case also the output of READ will be nothing because you are clearing header.  So while READ stmt you are comparing ls_vbap-vbeln and ls_vbap-posnr , as nothing in it you will get nothing
    CASE 3: If you use case 2 without CLEAR stmt then always you will get the index of the last fetched record...i.e., the last record of the internal table before sorting..
    I think it is helpful for you....if you are not clear just reply me

  • Scale out question: how does instance name affect primary/secondary node

    Hi:
    OBIEE 11.1.1.6.4, Windows 2008
    On a test instance the following happened:
    1. Enterprise install of OBIEE 11g had problems
    2. Reinstalled OBIEE 11g, but the installer created an instance2
    3. All was well with this install
    4. Performed all necessary shared catalog and RPD steps
    5. On a second server, installed OBIEE 11g using the scale-out option
    6. On second server, this created an instance1 directory
    7. All components start up and we can log into OBIEE using either server1 or server2
    Question:
    Does OBIEE use the instance names in a scale-out? Our primary node is instance2 and the secondary node is instance1, though on a separate server. Will this cause a problem?
    Thanks for any help.

    Hello,
    This can be run on any of the replicas that the availability group participates in to return the primary instance:
    select primary_replica FROM sys.dm_hadr_name_id_map nim
    inner join sys.dm_hadr_availability_group_states ags
    on nim.ag_id = ags.group_id
    WHERE nim.ag_name = 'MyAvailabilityGroupNameHere'
    Sean Gallardy | Blog | Microsoft Certified Master

  • How does firewire cable affect quality?

    I am a new Mac user and new to video editing. I just recently purchased a MacBook and plan to begin editing my many many hours of miniDV video.
    To transfer the video from my camera to the Macbook, I pruchased an inexpensive cable (around $5) from a bargain internet site. I have seen cables for as much as $40 at the local Circuit City.
    How important is the firewire cable to maintain the quality of the video? Before I begin importing my video onto my new 500GB external drive I want to make sure I am retaining the quality.
    Thanks!
    MacBook   Mac OS X (10.4.9)  

    Thanks Klaus1 and Matt!
    I successfully imported one tape onto my Macbook. Everything seems to work fine with the cable. I can control the camcorder from the Mac and the video looks good.
    I really like how iMovie breaks the tape into several clips. I thought I was going to get one large file that I would have to parse myself!
    MacBook   Mac OS X (10.4.9)  

  • How does new computer affect ipods

    What needs to be done if I get a new mac and transfer my itunes to the new computer and get rid of the old computer. What should I do to insure the my ipods work on the new computer?

    Make sure your new computer is authorized in iTunes. Disable autosync in itunes, connect your ipod, right click on it in the device list and choose backup.
    This will save data, pictures and settings to itunes. See what's included in this backup here: http://support.apple.com/kb/HT1766
    Transfer your purchases the same way to copy all apps and bought media from the Store to your computer.
    Set up at least one contact and event on your computer to be able the merge your calendars and contacts after your ipod got wiped during the first sync.
    The rest of the data can be restored from the backup you made.
    Restoring: http://support.apple.com/kb/HT1414
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.

  • How does FireFox 4 affect AVG virus protection.

    I saw on your Fire Fox 4.0 possible problems. That downloading Fire Fox 4.0 would cause AVG virus protection to not work properly. What effect doe Fire Fox 4.0 have on AVG virus protection

    I think you need version 10 (also known as AVG 2011):
    '''Regarding AVG FREE:'''
    "...version 10.0.1209 is compatible with Firefox 4."
    http://forums.avg.com/ww-en/avg-free-forum?sec=thread&act=show&id=154821#post_154821
    '''Regarding AVG paid:'''
    "If Firefox 4 reports that only AVG Safe Search is incompatible with Firefox 4.0, please proceed according to FAQ 3271 to update your AVG.
    In case Firefox 4 reports that either AVG Security Toolbar or both AVG Security Toolbar and AVG Safe Search are incompatible with Firefox 4.0, please perform repair installation of AVG, according to FAQ 3251.
    Note: In case you meet this issue with AVG 9.0, kindly upgrade to AVG 2011 to rectify the issue."
    http://www.avg.com/us-en/faq.num-4222#num-4222

  • Does export size alter aspect ratio?

    Hi, I asked a smilar question in the imovie community but thought it would be better here.  Though the nuance of this question is a bit different...
    I created a montage of old pictures and video clips in iMovie '11 and need to eventually create a DVD in 4:3 aspect ratio.  I exported the movie in 1080p (1920X1080). 
    a few questions:
    1. Does the HD export size matter and will iDVD try to sqeeze the widescreen format into a 4:3 ratio?
    2.  Should I instead export it as large 960X540 to prevent problems when I make the DVD?
    3. How does export size affect the ultimate aspect ratio? ( saw some similar posts but not really what I need to know)
    thanks

    Since you're using iMovie 11 use the Share ➙ Media Browser menu option and, yes, select the Large size.
    Do not use the Share ➙ iDVD option since that throws away every other line of the movie resulting in a greatly reduced image quality.
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option.  This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image and launch DVD Player and play it.  If it plays OK with DVD Player the encoding was good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Double buffering daqmx

    I understand that DAQmx is supposed to do double buffering automatically.  When I run the example below in continuous mode, It will run continuously without error.  when I hit stop, it will give me a "Not enough memory to complete this operation." error.  This error occurs only when i've acquired greater than about 70M samples.  If I don't hit stop it will run to about 300M samples, give the above error and also an unspecified Labview error.  The rate does not appear to affect this.  Am I actually double buffering?
    Does it only do double buffering with the "Continuous Samples" mode?  I've been using the example below with both continuous and finite samples and in both cases it seems to acquire more samples the 64MB. 
    Does this have anything to do with what i'm seeing?
    http://digital.ni.com/public.nsf/allkb/7DF86CA91D739AD386256DF900785211
    Equipment:
    Labview 8.2
    NI-8350 Controller
    MXI-4
    PXI-6534

    You are creating the second buffer in your application. DAQmx is not at fault here. You are wiring the output from the DAQmx Read VI to an auto-index tunnel on the While Loop. As your program runs this auto-index tunnel builds an array of every value that was sent to it in every iteration of the loop. So as time goes on, this array gets bigger and bigger. Eventually you will run out of available memory.
    You should look into other ways of streaming data out of a loop, such as using Queues. You could then have a background loop to handle any data analysis or display.
    Jarrod S.
    National Instruments

  • Double buffering circle not round anymore

    I am making an applet where some circles are painted to the screen. When not using the double buffering scenario, the shapes appear correctly.
    The problem is when i use the double-buffering technique, the circles are still there, but they look like very ugly. I would call that some "squarcles".
    What is the bug here and how to get some decent double buffering with thoses circles?

    Ok, i had some problem with the running thread when closing the applet viewer, but now this situation is corrected by setting the animation thread to null before calling stop().
    Maybe explanation of the problem is not clear, so i made two versions of the same applet with only 2 lines of code different so that there is one applet that is not double buffered.
    You can check these by yourself at this place:
    Double buffered circles: http://www.geocities.com/xeneve/cooltrail/ demo_cooltrail.htm
    No double buffer:
    http://www.geocities.com/xeneve/cooltrail/demo_cooltrail_ndb.htm
    This is just annoying to get this result. I realise that maybe not many peoples are coding applets so i guess there is few people that may have a workaround for this.

Maybe you are looking for

  • Can't sync iTunes music to an iPad?

    I am a student with a school issued iPad. When I got my iPad a year ago, I backed it up to the my apple ID. I didn't sync anything to it. So, now, nearing my next year in school, I wanted to sync my old content to my iPad. I successfully backed up al

  • Firefox Browser window will not open or start.

    Sorry that this is long, but I wanted to make sure you knew as much as you needed to know. I click on the icon in my Windows taskbar, and the firefox browser window will not open. This was not the first of my problems. At first, Firefox would open im

  • Linux.32bit.Cyrillic encoding problem.

    Hi! In flash player 10 under Linux 32-bit v.10.0.22 (Slackware-current, if it helps) there is a problem with displaying cyrillic fonts. It could be solved by changing system encoding from default UTF-8 to ru_RU.CP-1251. But it is a great headache, yo

  • Can non-Macs be used as nodes ?

    would love to use my C2D hotrod PC... 2.4Ghz with 2Gb RAM. Anyone happen to know if non-Mac workstations can be harnassed for the purpose of distributed computing ala Logic Pro ?

  • 4.6b ides installation-users cration

    Hi i am new to SAP installation.i have 100% succeeded in installation. but i couldn't create new program after login. i have logged in using client:000 user:DDIC pwd:19920706 language:EN after this any transaction code is not working. like i gave SE3