How to reset buffer pointer for analog output generation?

I am doing a finite analog output generation on a USB-6216
Sequence of events:
DAQmx Create Task
DAQmx Timing (finite samples, 1000Hz)
Use DAQmx timing property SampQuantamples per channel to set buffer size
Write buffer with DAQmx Write
Repeat
  DAQmx Start Task
  DAQmx Wait until done
  DAQmx Stop Task
Until finished
DAQmx Clear Task
I get a full waveform output on the first iteration of the loop. On subsequent iterations I get only a small section of the waveform, but no error. It seems that it is regenerating the waveform, because when I switch off regeneration I get an error at Start Task, but before it can regenerate all the data Wait Until Done.vi decides that the generation is done and exits, stopping the generation.
I have done this with a PCI device and it works fine; every call to Start Task generates the whole waveform again.
OK, so it looks like after every waveform generation completes I need to reset the pointer to the start of the buffer, so that the Wait Until Done vi does not think the generation is done. Or - maybe there is a way to reset the "Generation Done" state?
I'm sure there's an easy way to do this....?

Hi CDancer,
Many thanks for contacting National Instruments. If I can start by giving some general advice, it would be well worth posting your actual VI. This helps others on this forum in helping you with your application. 
From the sounds of things, you want to do continuous analog output generation. I have had a look at the examples that come with LabVIEW and I think you should look at the one below.
I would have a look at some of the DAQmx examples that come installed with LabVIEW. The following example would be particularly relevant I feel
Cont  Gen Voltage Wfm-Int Clk-non Regeneration.vi 
Please let me know how you get on.
Many thanks,
Andrew McLennan
Applications Engineer
National Instruments

Similar Messages

  • How to building a multi-channels analog output task in visual c++ 6.0 (without Measurement Studio)?

    Hello!
     I have a PCI 6251 card, and using DAQmx C function to generate a wavwform. (single channel ).
    But, how to creating a multi-channels analog output task, and had a different frequence in each channels?
    Thanks.

    This is getting to be a common question!
    The answer is, you can't.
    If the rates have common factors, you can use a higher overall rate. The slower waveform will simply have extra points in it to make up for the higher update rate.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Use soundcard for analog output

    Is it possible to use soundcard for analog output with LabView6?

    nicke wrote:
    > Is it possible to use soundcard for analog output with LabView6?
    Have a look in the examples under Hardware Input and Output|Sound (LV6.1)
    Dunno where it is under 6i, but the files are there.
    Impressed the crap out of some Fortran hackers by showing them how
    easy I could turn my laptop into a spectrum analyser.
    Remove "spamkill." when replying to this message

  • How to caluculate buffer size for import/exports in oracle

    Hi DBAS,
    how to caluculate buffer size for import exports,here is the formula but how can we use if there is a 100 of tables and datatypes,is the any query to find out rows_in_array ,maximum_row_size total schema and datbase
    buffer_size = rows_in_array maximum_row_size*
    Thanks,
    tmadugula

    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm
    Search "buffer"

  • How does one get points for articles

    how does one get points for articles

    You submit your article, it is reviewed by an SDN content manager and then published,  about a week after you should see some points for your efforts.  If not, contact [email protected]
    Regards,
    Rich Heilman

  • Designing digital filter for analog output

    Hi all,
    Iam working on pci-6723 NIDAQMX 7.3 LABVIEW 7.1 ENVIRONMENT.I have designed 16 channel data acquisition system.in order to supress glitches in the analog output signal ,which filter i have to adopt to the analog output generation. since i dont want to design hardware low pass filter , if i adopted digital filter will it improve the output signal performance ,kindly suggest me.with some example.
    Regards
    labview boy

    Hello,
    If you are talking about a software digital filter with the program that is producing the analog output, that will have no affect on an analog output signal. The glitching comes from the digital to analog converter (DAC). Check out this knowledge base article:
    http://digital.ni.com/public.nsf/allkb/3BB2D5D837F6C9FE86256EAC007C123B
    Really, your only solution is hardware.
    If you are acquiring this signal on another data acquisition system and you want to remove the glitches from what you are seeing, you could use software filtering there.
    -Alan A.

  • How do you get apps for the 1st generation iPod touch

    How do I get apps for the 1st generation iPod touch?

    By updating the iOS on the iPOd.  The 1G can go as high as 3.1.3.  That works with a lot of apps.  But some apps require a higher iOS and/or newer iPod.
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

  • How to structure the DMA buffer for PXie 6341 DAQ card for analog output with different frequencies on each channel

    I'm using the MHDDK for analog out/in with the PXIe 6341 DAQ card.
    The examples, e.g. aoex5, show a single Timer  (outTimerHelper::loadUI method), but the example shows DMA data loaded with the same vector size.
    There is a comment in the outTimerHelper:rogramUpdateCount call which implies that different buffer sizes per channel can be used.
       (the comment is: Switching between different buffer sizes will not be used)
    Does anyone know what the format of the DMA buffer should be for data for multiple channels with different frequencies ?
    For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
    With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?

    Hello Kenstern,
    The data is always interleaved because each card only has a single timing engine for each subsystem.
    For AO you must specify the number of samples that AO will output. You also specify the number of channels. Because there is only one timing engine for AO, each AO will channel will get updated at the same time tick of the update clock. The data will be arranged interleaved exactly as the example shows because each AO channel needs data to output at each tick of the update clock. The data itself can change based on the frequency you want to output.
    kenstern wrote:
    For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
    With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?
    In your example, you need to come up with an update rate that works for both waveforms (1 KHz and 1.5 KHz sine waves). To get a good representation of a sine wave, you need to update more than 10x as fast as your fastest frequency...I would recommend 100x if possible.
    Update Frequency: 150 KHz
    Channels: 2
    Then you create buffers that include full cycles of each waveform you want to output based on the update frequency. These buffers must also be the same size.
    Buffer 1: Contains data for the 1 KHz sine wave, 300 points, 2 sine wave cycles
    Buffer 2: Contains data for the 1.5 KHz sine wave, 300 points, 3 sine wave cycles
    You then interleave them as before. When the data is run through the ADC, they are outputting different sine waves even though the AO channels are updating at the same rate.

  • How to avoid delay during analog output generation by changing its frequency?

    Windows XP
    LabVIEW 7.1
    PCI-6036E + BNC-2120
    Hi,
    I am going to create a vi to generate an engine speed sensor signal (a simple square wave with specific missed pulses, in my case 58 pulses “teeth” and 2 missed pulses “missed teeth”) as an analog output but in addition give me the opportunity to control parameters for example frequency online to simulate the engine speed changes during running that vi. For this purpose I have started with “Continuous Generation.vi” which is available in NI Example Finder under the following path:
    Hardware Input and Output > Traditional DAQ > Analog Output > Continuous Generation.vi
    Then I modified it towards above mentioned goal, all related vi s are attached. The main vi is: "Motor Signal Generator_1.12.vi"
    At the first try it looks that it works properly but when have a look on that more accurately with Oscilloscope (fortunately I have a good one: Agilent 54621A – 60 MHz, 200 Ms/s) obviously there is a gap (delay or Jitter) whenever I change the engine speed. It is also attached in Signal generation_problem report.doc file.
    Note: Small gaps are OK and related to predefined missed teeth but the big one is happened during changing engine speed.
    As far as I understand it is related to the time which case structure in AO C-GEN sub-vi needs for AO reconfiguration each time after changing the engine speed (update rate). How can I get rid of this delay or gap during signal generation and generating completely continuous signal?
    I have to mention that obviously I changed the frequency by changing the update rate. The other possibility is to change the number of updates in one period (refer to "generate arb frequency.vi" in NI site: http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E48F56A4E034080020E74861) which resulted in no delay however then I can not change the frequency continuously but step by step (for example jump from 5Khz to 2.5KHz immediately) and this can not pass to my application.
    Any hint is appreciated.
    regards
    Attachments:
    Signal_generation_NIsupport.zip ‏81 KB

    Hi Roozbeh,
    The following example will allow you to vary the pulse train frequency during run time.
    Thanks,
    Lesley Y.
    Attachments:
    GenDigPulseTrain-ChangingSpecs.vi ‏75 KB

  • How to configure notification emails for reports output or alerts for all users in r12

    Hi,
    I need to configure notification emails. I have provided settings in OAM-> Workflow and SMTP IP address in settings and only Outbound. I am able to test for my user ID.
    I want to know how to redirect emails or alerts for users like when a user runs a report he should get notification email in his outlook about the report output and details. In settings it only points for one replyto field. How do I mention all user ID's?
    Regards,
    Mohammed

    Hi Mohammed,
    You may check on XML bursting for XML based reports.
    In addition, also see links:
    http://oracle.anilpassi.com/email-output-of-concurrent-program-request.html
    Anil: Oracle Apps Concurrent program Output as Email
    Oracle ERP World: Email the output of a concurrent program as Attachment
    Also see:
    How to Redirect Output from Printer to Mail Message after Running Report (Doc ID 1036586.6)
    Thanks &
    Best Regards,

  • How to extract error message for each output type.

    Hi All,
    Need your advice on the problem that I have.
    Expected Solution:
    1. Create an extra column for displaying header output error message from VF02 into a report program.
    Steps that i have did:
    1. Go to transaction VF02.
    2. Enter a billing document number.
    3. Hit enter. Click "Goto" > Header> Output
    4. Click on the status that is red colour. Click on "processing log".
    5. Press "F1" on the red colour message type. (Found out that it is a structure).
    Need your advice on the question that I have:
    1) How do we know that which "not successfully" process output type belong to which error message class?

    Hi Brad Bohn,
    Thanks for your advice. I am so sorry about that. Thanks so much for your advice. And i have follow your advices and steps given by you. Appreciate it very much.
    But for this issue about how to extract message for each output type. I have follow your steps by using SE30 to trace VF03 and I managed to found out that they are using this function module "WFMC_PROTOCOL_SHOW". Need your advice on this, how do we know each different output type with different error message is pulled from?
    From my further research and in depth debugging into this function module, i  manage to find this global internal table "PROTO_TAB" which stores all the text messages for each output.  How does this internal table is populated?
    Thanks in advance.
    Regards
    Shawn

  • PCI Card for Analog output in the range of 10mv

    dear ni,
                    I want to know about the PCI card that can be generate analog output in the range of maximum 10mv. i  am going to use for caliberation of loadcell, strain gauges devices.
    could you tell me on which PCI card will support this type of application.
    Regards,
    Balaji DP

    Try:  http://www.ni.com/dataacquisition/
    These have analog output voltages < 10V:   http://sine.ni.com/nifn/cds/view/main/p/sn/n12:7604,n3:7853/lang/en/nid/1036/ap/daq
    You need something with a high bit count to get good resolution at 10 mV, such as the PCI-6010 which has a 16 bit D/A.   
    Here are the minimum voltage specs for the 6010:
    Minimum Voltage Range
    -0.2..0.2 V
          Range Accuracy
    283 µV
          Range Sensitivity
    6.4 µV
    Message Edited by vt92 on 11-18-2009 07:56 AM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Help! How to reset the answer for security question while the email is wrongly typed for the reset part?

    Please help!
    I forgot the security answer. While the email i give to Apple is wrong(there are typos) then how can i reset them?

    Alternatives for Help Resetting Security Questions and/or Rescue Mail
         1. If you have a valid rescue email address, then use this procedure:
             Rescue email address and how to reset Apple ID security questions.
         2. Fill out and submit this form. Select the topic, Account Security. You must
             have a Rescue Email to use this option.
         3. This is the only option if you do not already have a valid Rescue Email.
             These are telephone numbers for contacting Apple Support in your country.
             Apple ID- Contacting Apple for help with Apple ID account security. Select
             the appropriate country and call. Ask to speak to the Account Security Team.
         4. Account security issues almost always require you to speak directly to an
             Apple representative to securely establish your identity as the account holder.
             You can set it up so that Apple calls you, either immediately or at a time
             convenient to you.
                1. Go to www.apple.com/support.
                2. Choose Contact Support and click Contact Us.
                3. Choose Other Apple ID Topics and choose the appropriate topic for
                    your issue.
                4. Follow the onscreen instructions.
             Note: If you have already forgotten your security questions, then you cannot
             set up a rescue email address in order to reset them. You must set up
             the rescue email address beforehand.
    Your Apple ID: Manage My Apple ID.
                            Apple ID- All about Apple ID security questions.

  • Synchronize two PCI Board for Analoge Output

    Hi All
    Has anyone a good example for synchronizing two MIO Boards over RTSI cable.
    I found a lot examples to analoge input but nothing about analoge output.
    Thanks

    Hi Reto.
    I posted to this once, but looks like it didn't make it. I checked the examples, and Ir eally didn't see anything that did what you wanted over the RTSI bus, so I made one. Check it out.
    Mark
    Attachments:
    RTSI_AO.vi ‏95 KB

  • How to increase Decimal Points for the BOM Component Quantity

    Hi All,
    While creating BOM:
    Can anyone help me to know how i can increase the Decimal points for the BOM components quantity.
    I can able to give only upto 3 decimal points, but the requirement is more than that.
    I have increased the Decimal point value to 5 in transaction Code CUNI. but still it is allowing me to enter only upto three decimal places.
    Thanks and Regards
    Khadeer

    Khadeer,
    You would be better off changing the base quantity of the parent part.  Instead of "1 EA  parent contains .00003MG of  component" you could say "100 EA parents contain .003MG of component".
    Alternately, you could use different units of measure for your parent or component parts, which would be more suitable for the 3 place decimal limitation.
    I agree with Anil in that if you elect to change the decimals from standard, you could end up with huge changes that will propagate through every module in the ERP.  In my view, there is no need of this kind of headache.
    Best Regards,
    DB49

Maybe you are looking for

  • SAP R/3 Problem

    I need some detail solutions and suggests about below these problems [SAP R/3] : Problem 4: Problems in the installation of SAP R/3 Server • Problem 4.1: Computer Name of the SAP R/3 server has been changed after the full installation of Oracle 9i an

  • I want to download a trial of in design, but it states i do not have the right system requirements? I am running windows xp, is this to old?

    I have been trying to download in design and it keeps thinking, thinking, thinking and then does nothing.. So then i tried to go online and download a trial version from there and then it states i don't have the right system requirements, i am runnin

  • Download TableView in Excel

    Hi, Is there any way to download whole TableView Data in Excel,which have more than one pages . Looking forward your response. Regards Sachin S M

  • Outline Load Log

    Hello, I am trying to find the errors in my dimension build jobs using outline load. I have these jobs automated. I am not able to see the error details in the log file, it just says how many rejections. I can see the details of error when I manually

  • Is it necessary to create a seperate window for a pop up view

    Hi Experts, Is it necessary to create a seperate window for a pop up view? I don't want to create a seperate window for a pop up view. As I don't want to make much changes in the present program logic. My only problem is following code. This code fin