Increase sample rate analog output

I have a PCI-6221.  I am trying to output an sine wave from my computer.  The voltage output changes only once every 1/10 sec.  I there a way to increase the frequency?  Attach is sample program and a resulting graphs.  
Attachments:
SINE_OUT.vi ‏368 KB
Sine.JPG ‏29 KB
Sine_1.JPG ‏25 KB

You seem to have found one of the more convoluted methods of generating a sine wave. Have you looked at any of the example programs? Go to Help>Find Examples and for Hardware Input & Output>DAQmx>Analog Generation, look through some of them.
You major problem is trying to generate it one point at a time with the single sample mode of DAQmx Write. Not at all sure why you are using the Elapsed Time function or the Mathscript. There are built-in functions (even an Express VI) to generate a sine wave.
p.s. You have also posted to the wrong board. This has nothing to do with Counter/Timer hardware.

Similar Messages

  • Unsupported sample rate error?

    Randomly soundtrack pro has corrupted itself, I will be working on a project one day, close out open it the next day and when I try to playback I hear lots of chop. I then noticed that none of the sample loops will play, they just cut off after half a second of playing. In the general tab I enabled Alerts- I get the following error *"UNSUPPORTED SAMPLE RATE, The output device cannot support the sample rate of this project. The output will play at a rate of 44.1 KHz. When you export a project mix, it will be exported at the project sample rate."* any clues??

    Check the sample rate of your audio hardware.
    If you are monitoring through your Mac then look at *Audio Midi Setup.app* found in your Utilities folder, and make sure the audio output samplerate matches your project.

  • 3gs has very low audio sample rate

    Every time I listen to Pandora on my 3gs the sample rate is so low that i can barely tell what song is playing. The same thing happens on sirius and even on locally stored apps played on the ipod app. In Pandora there's a setting to increase sample rate, but that didn't work. Anyone else have this problem?

    Try another camera, it could be a quirk of your Sony.
    happy cutting.
    x
    New Discussions ResponsesThe new system for discussions asks that after you mark your question as Answered, you take the time to mark any posts that have aided you with the tag and the post that provided your answer with the tag. This not only gives points to the posters, but points anyone searching for answers to similar problems to the proper posts.
    If we use the forums properly they will work well...

  • Setting sample rate for sinus analog output

    Hello,
    I've been trying to do something very simple : using an analog output of the card PCI 6221 to produce a sinus curve of frequency 50 Hz. For this I used a Vi to create a sinus curve and the different DAQmx VIs. But I have difficulties understanding the principle of virtual channel and I think I'm doing a mistake setting the sample rate and samples number : one time for the sinus vi, second time for "DAQmx - Timing". Should I use the same values for both of these VIs ?
    On my oscilloscope, with frequency=50Hz and sample rate=1kHz, I get a null signal. Then depending on both values, I get differently rated signals. For example with f=1Hz and sr=10kHz, a sinus of frequency 0,7 Hz.
    Solved!
    Go to Solution.
    Attachments:
    Sinus analog output.vi ‏32 KB

    Yes, thanks for your advice. I used the structure given in the example and now it's working fine. I'm still not sure what I did wrong though.
    I would have a second question now (should I create a new topic?):
    I put a continuous sine wave on the analog output. As soon as this is running, (or maybe after a short delay) I want to measure a limited amount of samples on my analog input. How can I be sure, it's not going to start measuring before the output is properly set ?
    I don't think a trigger would solve the problem since I'm going to vary the output Amplitude.

  • Different Sampling rates for different channels in Analog Input

    Hi,
    I would like to acquire data at different sampling rates on different channels say ACH 0, ACH 1 and so on. I have a PCI 6052E board and NI DAQ 6.9.2. Also is it possible to simultaneously perform Analog output on two different channels along with the Analog input? What will be the problems/consequences as far as the system resources are concerned. I am a beginner in this area and would greatly appreciate any help/pointers for my queries.
    Thanking you in advance
    Deepak

    Search the eaxamples that ship with LV.
    Theer is one called simultaneous input and output or something like that.
    It will get you started.
    re: multiple scan rates. This is acoomplished by sampling all channels at the highest rate and throw away the expttra samples you do not need.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • MIO-16E-1 Output sample rate limited?

    I have a program that I have used successfully on some old Pentium 2 computers. I recently purchased a new PCI-MIO-16E-1 board, and placed it into an AthlonXP 3000+ (2.1 GHz) computer (HP a700n). It seems that I have to limit my output sample rate to be less than 5kHz, where on the old systems the rate could be up to 1MHz. I am wondering if anyone has ran into the problem before or not?
    I have tried the older MIO cards in this newer computer, and came with the same problematic result (no output).
    I have also tried changing the output between IRQ and DMA modes (making sure the input channel is opposite).

    Can you give some additional details of the behavior you are experiencing on the AMD computer? It sounds like if you increase the update rate beyond a certain rate, then your program executes but you don't see a signal on your AO channels. Is this correct?
    Yes, Jeremy, this is correct. It seems that if we go above a 400kHz output sample rate, the signal either doesn't make it to the output buffer, or simply never gets placed on the AO of the board.
    Are you checking for errors in your program? If so, do you get any errors? Are you using NI-DAQmx or Traditional NI-DAQ to communicate with your hardware?
    Yes, we are checking for errors, and we get none. Using Traditional NI-DAQ, all responses are (0) as expected.
    It also sounds like you are performing AO and AI in the same application. Have you tried to run a simple AO example that ships with NI-DAQ?
    I was searching for an example to try when I though about trying a Pentium PC to see if the same thing happened. As far as I know, anytime our software has worked on any computer, I need not go back to trying samples, as they are typically more complex than what we end up with. We simply make a voltage array, and shoot the array to the board (After setting output rate).

  • Labview myRIO Analog data sampling rate

    I have been using the myRIO to acquire audio input from a microphone.
    In LabView I'm using the Analog Input Express VI to acquire the data.
    I wanted to know if there was a way to increase the sampling rate of this data from this VI, or any VI at that?
    Solved!
    Go to Solution.

    Hi ykhali,
    Try putting the VI into a timed loop and set the loop rate to your sampling rate.
    Regards,
    Joel I.
    Applications Engineer
    National Instruments

  • PXI-7831R analog input max sampling rate?

    I'm using 5 of the analog inputs on the 7831R and seem to only be able to get a max sampling rate of 10K per channel. Looking at the specs it should do at least 10 times this per channel, also the time for the A/D loop is 228 ticks of the 40MHz clock so this would suggest a higher sampling rate than just 10K. I'm missing something here... Any ideas as to what the deal is?
    pete

    Hi Pete,
    You are right in saying that the 7831R boards should acquire data much faster than 10KHz. Infact you can take a look at the actual specs from the data sheet http://sine.ni.com/nips/cds/view/p/lang/en/nid/14757 as well as the product manual. However, I am concerned that you may be measuring the rate of acquisition on the RT VI (or any host vi) you are running as opposed measuring it in the FPGA VI.
    Your time critical loop may be running at 228 ticks of the 40 MHz clock but the data is buffered (at that rate) and has to be then transferred to the communication loop which then sends the data to the host vi (which may be your RT vi). Hence, the rate at which host VI receives the data will be much slower than the FPGA VI is acquiring data.
    Hope this helps!
    Prashanth

  • Buffered analog output puts out additional sample on aborting or stopping task

    I'm using DAQmx and LV 8.2
    I'm doing a buffered analog output operation where the sample clock is driven by pulses from ctr0 on the same device (PXI-6070E).  When I end the analog output task, either with the DAQmx stop task or DAQmx control task (abort option selected), the AO puts out one additional point from the buffer.  (I have checked by setting breakpoints and stepping through the code that the additional point is definitely generated when the analog ouput task is aborted)
    I need the output to remain where it was before the stop task command is issued.  How do I fix this?
    Thanks,
    Marc

    I'm watching to see if there hasn't been a sample output in a certain length of time, then terminating the task if there hasn't been.  Specifically, I have ctr0 outputting pulses to drive the task based on input from the AnalogComparisonEvent terminal.  I'm using a counter on a different PXI device to count the number of pulses and monitoring this count to determine if another sample has been output.  I'm outputting the ctr0 pulse to PFI3 as well, and I'm monitoring both the ctr0 output (which drives the ao clock) and the analog output itself on an oscilloscope.
    Basically I'm sitting in a while loop waiting for the monitoring counter to fail to increment.  Then I terminate the while loop and stop the analog output task.  I can watch the analog output on the oscilloscope while I step through the program.  Immediately before the daqmx control task - abort (or daqmx stop if I don't abort first, or daqmx clear, if I don't abort or stop) vi runs, the analog output remains outputting the last sample.  Immediately after the abort, stop, or clear, the analog output advances one sample in the buffer. 
    During this time, ctr0 does not output another pulse, so the scan clock should not advance.
    Thanks,
    Marc

  • How to change the update rate of an Analog output in a loop

    I have to generate a ramp at a decreasing frequency. I use a shift register in a "for" loop to decrease the rate of the analog output. Unfortunately, the loop or the analog output initialisation take a too long time delay..
    How can I solve this problem?
    Any help is greatly appreciated
    Thank you

    Hello;
    I'm attaching an example VI that shows how to change the output rate on the fly.
    Hope this helps.
    Filipe
    Applications Engineer
    National Instruments
    Attachments:
    aochangeonthefly.zip ‏47 KB

  • What is the optical output bit/sample rate of an Apple TV3 when using the wired network connection. 16/48 or 24/48.

    What is the optical output bit/sample rate of an Apple TV3 when using the wired network connection. 16/48 or 24/48.

    It doesn't matter what type of network connection it has its output is 16/48.

  • I'm trying to record in Adobe Audition and it keeps saying my the sample rates for my input and output devices do not match.  How do I correct this?

    I'm trying to record in Audition and it keeps saying my sample rates for the input and output devices don't match.  How do I fix this?

    I finally have communication between the ISA One and Audition. I moved the optic cable to another SPDIF on the computer and from the SPDIF to ADAT on the ISA One and it finally agreed that the communication was at the same clock speed. The audio was not intelligible so I moved the optic cable back to the original configuration and I can record voice that is clean.          

  • I need to increase the sample rate to 50KHz to allow for arc detection

    In an effort to get our arc detection software running we need to
    capture data with a sampling rate greater than 10kHz. Would setting the 'samples per cycle'
    to 512 (as opposed to 192) would allow us to use your re-sampled data at the
    RT-Controller (permitting us to use the FPGA VI un-altered) at a sample rate greater than 50KHz?

    The number of samples per cycle can be specified from 128 to 512 without having to recompiling the FPGA VI. But even with 512 samples per cycle, the sampling rate after resampling is about 512*50 or 512*60, still less than 50k Hz.
    Could that meet your arc detection requirement?

  • CS6 will not accept my condensed mic stating; 'the sampole rates of the audio input and output do not match.  Audio cannot be recorded until this is corrected.  Use the appropriate operating system or audio device control panel to adjust the sample rates

    !

    The first things we need to know in order to be able to help are what are your operating system and audio device?
    Also the FAQ Setting the Sample Rate in Windows Vista and 7 may help.

  • The sample rates of the audio input and output devices do not match.

    I am trying to record line-in audio and keep getting this error.  have a realtek sound card.  I have tried everything I know but cannot record.  please help if you can, thanks.

    Setting the Sample Rate in Windows Vista and 7

Maybe you are looking for

  • Field & Table name of tarnsport vendor in migo - Goods reciept

    Can anybody tell the table name and field name of transport vendor in MIGO Goods reciept. If I press the f1 then it shows the table name as GOFRIGHT field name VENDORNAME. but the GOFRIGHT is the structure not he table. Atul

  • Report including: GIT report = (not related to stock transfers)

    Dear Gurus We need a report which includes the following information by plant / material PO Quantity / delivry date  / GR quantity / GIT QTY / estimated arrival date / open Qty I have reviewed all reports under PO -> List display, and none of them gi

  • Extraction from TABLE  or VIEWS

    HAI,    can any one tell me the  procedure for EXTRACTING  the data from TABLES  and  VIEWS.. atleast basic steps is enough for me.. thank you @jay

  • RE: upgrade question

    Hello all, We are planning to upgrade our R34.7 system to ECC6.0.I performed the same upgrade in the past (ran 2a - 2d). Now this time we want to analyze before actually performing the upgrade to determine the number of transactions/authorization obj

  • Cloning of SAP R3

    Hi, In general, if I clone the whole SAP system from 1 hardware to another (same hardware sizing, same IP address, everthing the same), will the SAP start in the new hardware ? Is there any configuration that i need to change to get effect on the new