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!

Similar Messages

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

  • Can you set samples per trigger for sound vi?

    Hi,
    I've been looking at both Matlab and LabVIEW for acquiring sound through a PC sound card. In Matlab you can change the sampling rate (8000, 11025, etc), the buffer size and the samples per trigger. In LabVIEW I noticed you can only change the first two using the SI VIs. How would I go about changing the samples per trigger?

    Hello,
    Could you describe your application and what you are trying to trigger? You can look at all the sound VIs in the advanced section of the function pallette and you can click on any VI and get the context help by pressing ctrl H. That will give some information on the way the VIs are set up and the features they include.
    Good luck and have a great day!
    Koninika
    National Instruments.

  • Can't set refresh rate to 75 with Samsung SyncMaster 932 BF

    Hi,
    I can't set refresh rate to 75Hz both in Gnome display properties and in Nvidia panel. So i have it stuck at 60Hz.
    I've tried several solutions i found on forums but none of them worked
    Here is my xorg.conf :
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder63) Tue Jan 6 10:03:02 PST 2009
    Section "ServerLayout"
    Identifier "X.org Configured"
    Screen 0 "Screen0" 0 0
    InputDevice "Mouse0" "CorePointer"
    InputDevice "Keyboard0" "CoreKeyboard"
    EndSection
    Section "Files"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts"
    EndSection
    Section "Module"
    Load "glx"
    Load "dbe"
    Load "extmod"
    Load "xtrap"
    Load "record"
    Load "freetype"
    Load "bitmap"
    Load "ddc"
    EndSection
    Section "ServerFlags"
    Option "AutoAddDevices" "True"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "fr"
    EndSection
    Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5 6 7"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Samsung"
    ModelName "SyncMaster 932 BF"
    UseModes "Modes[0]"
    HorizSync 30.0 - 81.0
    VertRefresh 56.0 - 75.0
    EndSection
    Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
    ### [arg]: arg optional
    #Option "ShadowFB" # [<bool>]
    #Option "DefaultRefresh" # [<bool>]
    #Option "ModeSetClearScreen" # [<bool>]
    Identifier "Card0"
    Driver "nvidia"
    VendorName "nVidia Corporation"
    BoardName "G92 [GeForce 8800 GTS]"
    EndSection
    Section "Modes"
    Identifier "Modes[0]"
    # 1280x1024 @ 75.00 Hz (GTF) hsync: 80.17 kHz; pclk: 138.54 MHz
    Modeline "1280x1024_75.00" 138.54 1280 1368 1504 1728 1024 1025 1028 1069 -HSync +Vsync
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    SubSection "Display"
    Depth 24
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection
    Thanks in advance if i can get any help
    EDIT : In Gnome display properties it says "Unknown Screen"
    Last edited by Kaloos (2009-04-27 20:49:32)

    1st :  It runs perfectly fine at 1280x1024@75Hz in Windows XP/Vista, so there is no reason it shouldn't work in Linux. In Nvidia-panel there is even the 75Hz option in the drop-down list when resolution is 1280x1024.
    2nd : It isn't easy on the eyes at 60Hz compared to 75Hz, even more when i play games (Quake 3 for example).
    Last edited by Kaloos (2009-04-27 21:22:18)

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

  • 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

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

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

  • Setting Sample Rates in Audition

    Hi I am trying to record in Audition and it says my sample rates don't match.  I have tried and failed at this so I keep going back to sound booth.  Any ideas please?

    The problem may be either the settings for your soundcard or more likely the operating systems sound settings if you are using Windows. What soundcard or audio interface are you using?
    See this Audition FAQ:
    http://forums.adobe.com/thread/973133?tstart=0

  • Can't set frame rate on animated GIF PSE8 on Mac

    When saving an animated GIF in Elements 8 (running on Mac OSX 10.6 Snow Leopard) I can't modify the frame rate. It is set at the default .2 delay and can't be modified. Anyone know of a fix for this?
    Thanks.

    Thanks Barbara... I have used that very workaround already - but was hoping there was a solution so I could just do it in the app designed for this! So unfortunate that Adobe knows about this bug and hasn't fixed it!

  • Setting sample rate with Alesis IO26

    There has to be an obvious solution, but I can't figure it out.
    How do I get Soundtrack Pro 2.0.2 to set my Alesis IO26 to 48KHz for recording? I've changed it in the project settings and in the toolbar, but the IO26 remains at 44.1 no matter what.

    That did it!
    (actually, the first time I tried it, it switched to 48 KHz, but immediately switched back to 44.1 when I launched SoundTrack. But when I tried a second time it seemed to 'stick'.)
    Thanks!

  • Parallel port sample rate

    Hi,
    I`m desperately in need of your help.
    For my school project, I`m trying to write a labview code in order to acquire air pressure data by using 8-bit analog digital converter via parallel port. Although my signal frequency very low -100 Hz-I think  I experience sampling rate problem. I  want to put sample rate and frequency data in my code but  how can I put it in my code?I `m giving square waveform via function generator which I need to see it on my graph in Labview. But there is something wrong in my signal in waveform chart. You can see screenshot and code attached.  . Also there are some noises and amplitude is not stable . How can I fix this?
    Would you please have a look at to my code and tell me how can I set sample rate and frequency?
    Attachments:
    CAN1.VI ‏21 KB

    Hi LW-s
    There isn't really a way to set the sampling rate for these VIs. You will have to use software timing. The only way to do this is with 'wait' functions inside your loop. You can also implement some logic to smooth/adjust your waveforms.  For a square wave the logic is pretty simple. If the input value is above a threshold store it as the max and if it is below the threshold store it as the min. (See the example below). For sine waves this is a bit more difficult and if I were you I would probably try to implement some sort of averaging. 
    Best Regards,
    Chris J
    Message Edited by ChrisJ on 08-23-2005 05:31 PM
    Attachments:
    example.JPG ‏86 KB

  • Can I mix down to 32 bit at a higher sample rate than 44.1 kHz ?

    When I use Ableton Live, it lets me choose 16, 24, or 32 bit, and then I can choose a sample rate all the way up to 192000.  Is this possible in Audition ?  I have been going through all the preferences and all the tabs and I can't find this option.  All I find is a convert option, or the adjust option.  But that's not what I want.  I want to mix down this way.
    The closest thing I found is when I go to "Export Audio Mix Down", I can select 32 bit.  Then there is a box for sample rate, with all the different values.  But it won't allow me to change it from 44100.

    JimMcMahon85 wrote:
    Can someone explain this process in laymens terms:
    http://www.izotope.com/products/audio/ozone/OzoneDitheringGuide.pdf ---> specifically Section: VIII "Don't believe the hype"
    I don't read graphs well, can someone put in laymens terms how to do this test, step by step, and where do i get a pure sinewave to import into audition in the first place??
    UNbelievable: So I have to first run visual tests using a sinewave to make sure dither is working properly, then do listening tests with different types of dither to hear which I like best on my source material, and then for different source material it's best to use different types of dither techniques???... Am I getting this right???...
    Hmm... you only need to run tests and do all that crap if you are completely paranoid. Visual tests prove nothing in terms of what you want to put on a CD - unless it's test tones, of course. For the vast majority of use, any form of dither at all is so much better than no dither that it simply doesn't matter. At the extreme risk of upsetting the vast majority of users, I'd say that dither is more critical if you are reproducing wide dynamic range acoustic material than anything produced synthetically in a studio - simply because the extremely compressed nature of most commercial music means that even the reverb tails drop off into noise before you get to the dither level. And that's one of the main points really - if the noise floor of your recording is at, say, -80dB then you simply won't be hearing the effects of dither, whatever form it takes - because that noise is doing the dithering for you. So you'd only ever hear the effect of LSB dither (what MBIT+, etc. does) when you do a fade to the 16-bit absolute zero at the end of your track.
    Second point: you cannot dither a 32-bit Floating Point recording, under any circumstances at all. You can only dither a recording if it's stored in an integer-based format - like the 16-bit files that go on a CD. Technically then, you can dither a 24-bit recording - although there wouldn't be any point, because the dither would be at a level which was impossible to reproduce on real-world electronics - which would promptly swamp the entire effect you were listening for with its own noise anyway. Bottom line - the only signals you need to dither are the 16-bit ones on the file you use for creating CD copies. And you should only dither once - hence the seemingly strange instructions in the Ozone guide about turning off the Audition dither when you save the converted copy. The basic idea is that you apply the dither to the 32-bit file during the truncation process - and that's dithered the file (albeit 'virtually') just the once. Now if you do the final file conversion in Audition, you need to make sure the dithering is turned off during the process, otherwise all the good work that Ozone did is undone. What you need to do is to transfer the Ozone dithering at the 16-bit level directly to a 16-bit file proper, without anything else interfering with it at all. So what you do with Ozone is to do the dithering to your master file, and save that as something else - don't leave the master file like that at all. After saving it, undo the changes to the original, in fact - otherwise it's effectively not a file you could use to generate a master with a greater-than-16-bit depth from any more, because it will all have been truncated. Small point, but easy to overlook!
    just what's the easiest way to test if a simple dithering setting is
    working for 32-bit down to 16-bit in Audition?...  Why is there no info
    about dithering from 32 bit to 16 bit (which is better then dithering
    from 24-bit isn't it)?
    I hope that the answers to at least some of this are clearer now, but just to reiterate: The easiest way to test if its working is to burn a CD with your material on it, and at the end of a track, turn the volume right up. If it fades away smoothly to absolute zero on a system with lower noise than the CD produces then the dither has worked. If you hear a strange sort-of 'crunchy' noise at the final point, then it hasn't. There is info about the 32 to 16-bit dithering process in the Ozone manual, but you probably didn't understand it, and the reason that there's nothing worth talking about in the Audition manual is because it's pretty useless. Earlier versions of it were better, but Adobe didn't seem to like that too much, so it's been systematically denuded of useful information over the releases. Don't ask me why; I don't know what the official answer to the manual situation is at all, except that manuals are expensive to print, and have also to be compatible with the file format for the help files - which are essentially identical to it.
    Part of the answer will undoubtedly be that Audition is a 'professional' product, and that 'professionals' should know all this stuff already, therefore the manual only really has to be a list of available functions, and not how to use them. I don't like that approach very much - there's no baseline definition of what a 'professional' should know (or even how they should behave...), and it's an unrealistic view of the people that use Audition anyway. Many of them would regard themselves as professional journalists, or whatever, but they still have to use the software, despite knowing very little about it technically. For these people, and probably a lot of others, the manual sucks big time.
    It's all about educating people in the end - and as you are in the process of discovering, all education causes brain damage - otherwise it hasn't worked.

Maybe you are looking for