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.

Similar Messages

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

  • Can't change sample rate for digital input on Mac Pro

    Hello all,
    on my Mac Pro with 10.4.10 I can't change the sample rate for the digital input. Whenever I choose 48000 or 96000 Hz it returns to 44100 Hz after a few seconds. Feeding a 24 bit/96000 Hz signal from an external ADC into the optical input doesn't help. No input signal is available for digital recording software such as Sound Studio or Cubase. After changing the sample rate in audio midi configuration to 96000 Hz the sound can be heard for a few seconds but when the setup returns to 44100 automatically the signal is, of course, lost.
    I've deleted all relevant preferences and restarted with resetting paramter RAM. Still the same. With external hardware such as M-Audio Firewire equipment setting the sample rates works properly.
    Thanks to all for helpful clues.

    Hi,
    when E&M signaling is configured on digital interface like the VWIC is, 2 or 4 wires operation is not applicable because there are no wires at all, and reported only for compatibility with the analog E&M card.
    Consequently, you cannot configure that and it will not make any difference to effect of the connection.
    Please rate post if it helps!

  • I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel?

    I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel? In attach I send a example of my vi to control one chanel, but i need to control both but with diferent waveforms.
    Is the vi correctly programed to this propose?

    Yes you should be able to do that. look at the signal generation examples shipped with LabView
    You can create a 2 D array, with each row representing a wave form per channel. The number of points of the wave form (per row of the 2 D array) represent the number of points in the output buffer
    The wave forms can have different amplitudes/shapes, and therefore they are independent in this sense.
    However, you need to set the update rate,which is the same for both channels. The update rate together with number of points per buffer determines the frequency of the wave forms. This means the two wave forms will have the same frequency.
    To have different frequencies, you need to have say, on wave form with one cycle per buffer, and the other waveform have 2 cycles
    per buffer. in a case like that the frequency of the second channels is twice that of the first channel, and so on
    The two wave forms are then not truly independent, they may have different amplitudtes/shapes, but related in frequency.

  • 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

  • Set sampling rate and bits on Audigy 2 Va

    Hi guys, I really need your help:
    I dont know how to set sampling rate from 6bit 48KHz, which the audigy 2 can be set upto 24 bit 92 KHz.
    Please help me
    thank you

    Can you check the rear output on the soundcard with a set of headphones, to check if that works? As long as the speaker selection is set correctly (5.), then it should work.
    Cat

  • Audio Sample Rate for Video Clips?

    How do you check the audio sample rate for a clip of video?
    Thanks.

    scroll over in the browser until you get to the column for audio. That's one way.

  • 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

  • Why does the sampling rate for my DAQCard-70​0 max out at 6578Hz regardless of the number of channels I'm sampling?

    My DAQCard-700 is acting funny. I am using LABView 6.0.2 on a Dell Inspiron 8100 laptop for continuous analog input. For some reason my DAQCard-700 won't let me acquire multiple channels unless I create virtual channels in max and then run AI Config with a list of the virtual channel names. That's fine (but weird), but I max out my sampling rate at 6578 Hz, which is the max sampling rate if I would have sampled all 16 (Referenced, single-ended) AI channels. But I'm not -- I'm sampling 6 channels, as proven by the "number of channels" indicator in AI config and just looking at my data. If I sample just one channel, I can get up to 105248Hz. Is my card f
    ried, or am I missing a hidden setting somewhere? I have the latest NIDAQ.

    Hello;
    By the description of your problem, everything is pointing us to a hardware failure.
    There aren't any tricks to acquire multiple channels with that card.
    The best way to go about this is to have NI to fix the board for you.
    Regards
    Filipe

  • Separate sampling rate for two different channels for a USB-6009 daq

    Hi, 
    I am using a USB-6009 and incorporating the 'daq assistant' to change the sample rate.  I am trying to find a way to set the sampling rate to two unique values for two separate channels.  I've tried setting up two daq assistants and adjusting the sample rate different for each channel, though this does not work.  Is there any way to set the sample rate high for all channels then reduce the rate for a different channel - or an alternative?  I would appreciate any input on this, thank you!
    - Anthony
    Solved!
    Go to Solution.

    All tasks on a DAQ board that use a sampling clock must use the same clock.  Therefore, you cannot have two tasks on the same DAQ board sample at different rates.
    Alternatives would be:
    1. to combine all of the channels into a single task and just accept the extra data
    2. get an extra DAQ board to use in parallel
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How does Core Audio set sample rate?

    When I play a particular movie in QuickTime, the audio and video are out of sync. The movie plays fine on other computers.
    This Mac Pro (OS 10.6.8) is used exclusively for Pro Tools and Final Cut Pro. The audio hardware is a Pro Tools HD Native card:
    Native card --> Pro Tools Digital I/O boxes --> Lavry D/A converters --> monitors
    The sample rate of the Digital I/O boxes is set by an external master clock, a Lavry Gold A/D converter.
    I opened the DigiDesign Core Audio Manager and it says:
    Connected @ 44.1K, 32 In/32 Out, Buffer Size 512
    Yet the movie is at 48K (I know because I created it in Final Cut Pro), and the external clock is set at 48K. So, I don't know where the 41K in the Digidesign Core Audio Manager came from. This is why I am guessing the problem is sample rate.
    Please help me understand what sets the sample rate.
    Does the application using Core Audio set it?
    If so, how is this made consistent with the sample rate set for the hardware by the external master clock?
    Do I have to be sure I always change the external clock setting to be consistent with the movie being played?
    BTW, I have not had a sync problem when I play video in Final Cut Pro..........it is always in sync. So, I have never worried about how Core Audio works. The sync problem is only with QuickTime.

    Well, here is more information:
    - I reinstalled QuickTime 7 and did many other things (trashed preferences,etc)
    - I set the audio hardware (Pro Tools/HD Native card) to 48k
    - I checked the Digi CoreAudio Manager and it said "Connected at 44.1K", even though the hardware was set to 48K
    - I played the problem videos, and all are now in sync
    - I check the Digi CoreAudio Manager and it still says 44.1K
    - I checked the hardware and it is now set to 44.1K
    I know that the videos are 48K, because I created them in Final Cut Pro X.
    Does this mean that QuickTime 7 always converts videos to 44.1K, regardless of their sample rate?

  • Can't set sample rate 1609

    Hi,
    we've recently upgraded to LV 8.6 and DAQmx 8.7 and then got problem with the data aquisition that uses the DAQmx API. For example, we have a cDAQ-9172 and 9239 AI module. The device could be user configured and a typical configuration could be a continous acq, single sample in 10 Hz. After upgrading the error -200279 "Attempting to read samples that are no longer available ... has been overwritten" has come up soon after the task was started. It turned out that the property SampleClkRate is not affected by the value that is put into the DAQmx Timing.vi, unless it was set > 1612,9, if you set 10,100 or 1000 or whatever the sample rate will still be 1612,9 when you read from the timing property.
    So the buffer then of course becomes overflown, but the question is why there is a minimum sample rate like this? Earlier it was fine to set it an arbitray value and the acquistion would be in that rate.
    There are many solution to get around this (read faster etc.), but it strange that the behaviour of the code can change like this from a version to another...
    /Henrik
    Solved!
    Go to Solution.

    I see one flaw in your program, you have hardware timing and software timing in one loop. The loop is limited by the software wait. (I think this is on purpose for demonstration).
    I have looked at the manual for the 9239 and page 18 notices that hte minimum input rate is 1613kS/s
    So that is explained, the only problem is that the DAQmx timing VI does not return an error or warning when setting a too low rate.
    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!

  • G530 / XP. Playing projects in 44100 Hz makes problem. Can't set sample rate of the sound cart

    Hi, I have already instal Sonar on my new Lenovo...
    And what i see.... In the soundCart (conexant HD smartAudio 221) no 44100 Hz!
    And i can't find something that looks like place to change it.
    How can i do this?
    PS: XP.
    Thanx

    The red line indicates the audio must be rendered. This may be caused by several things but your playback settings may be set too high for your system to handle. You may have too many audio tracks for your computer to play in realtime.
    Select one of the audio files in the timeline, get properties, not the audio format and sampling rate.
    Now got to Sequence>Settings and determine if the settings match your audio settings.
    Your online help system can guide you through adjusting your system settings, user settings and sequence settings.
    bogiesan

  • Set sample rate to 96 kHz in iMac

    If I go to Applications>Utilities>Audio Midi Support, I can set the Sample Rate to 96 kHz, but in fact the Sample Rate is back at 48 kHz next time I look.
    Question: How can I get the machine to accept and stay at the new sample rate of 96 kHz?
    Robert

    Hi Robert, try this...
    Safe Boot , (holding Shift key down at bootup), use Disk Utility from there to Repair Permissions, test if things work OK in Safe Mode.
    Then move these files to the Desktop for now...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.systempreferences.plist
    /Users/YourUserName/Library/Preferences/com.apple.desktop.plist
    /Users/YourUserName/Library/Preferences/com.apple.recentitems.plist
    /Users/YourUserName/Library/Preferences/com.apple.audio.AudioMIDISetup.plist
    Reboot & test.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.

  • Setting sample rate to 22 kHz

    Hi All,
    Im trying to create a 48kbits/22kHz mp3 mixdown/bounce of my project in logic express 7.2.3. Has to be 22 kHz to play in flash player on website. The bit rate is no problem as its a setting in mp3 bounce.
    Problem is when i go to select from Audio > Sample Rate i dont get 22 kHz as a sample rate, only 44kHz upwards
    Ive searched manual and forums but cant seem to find an answer on how to do this. Also most 3rd party conversion software ive come across doesnt allow resampling, only rate conversion. I know i can do it in another editor, eg audacity, but i would prefer to do it all in the one program.
    Can anyone help me on how to set up a 22 kHz / 48 kbits mp3 bounce?
    Thanks

    Thanks Noeqplease,
    That really is a pity. Audacity will just have to do it for now, and i might see if i can do most of my editing in that. Pity given logic expresses capabilities.
    Appreciate the quick reply

Maybe you are looking for

  • CS6 Encore launches but all options are greyed out

    The headline says it all. I'm using CS6 on a MacBook Pro, OS 10.7. Previously Encore has worked well. After the most recent update, Encore will launch but all of the options are greyed out. I can't start a new project, etc. When I try to open a previ

  • Have a HP OJ 6500 Wireless all-in-one, using a Windows 7 64-bit OS. Wireless stopped working.

    HP OJ 6500 Wireless all-in-one, using Win 7 64-bit OS.  Initially configured for both USB cable and wireless when purchased.  Wireless drivers updated per setup instructions.  A year later, the wireless has gone on sabbatical.  I've re-installed the

  • Where can I find the manual for Premiere Elements 10 to download?

    I just purchased and installed Premiere Elements 10 and really need the user manual to get up to speed. I cannot find it on the Adobe website and have had no luck finding it on the open web either.  Any ideas or a location?

  • Adapter LED confusion

    I have a 2.0GHz Core2 Duo Blackbook and recently when I attach the charging adapter, the LED does not turn green. Sometimes it flickers between amber and green quickly, but always stays amber even if I leave it in overnight. Is my battery toast or is

  • How 2 create an 'unread documents' TREX search iView

    Hi, I'm trying to create a TREX seach iview (EP6SPS9) which shows all unread documents as a result. The property acc:cm_lastreaddate seems suitable to use in the 'query' section of the searchiview. This one works fine (result = show documents which w