NIDAQmx: how to simultaneously acquire channels at different sample rates?

I have a PCI-6229 (M-series card). It has an advertised throughput of 250K/sec. I'd like to configure the card to simultaneously sample eight (8) AIN channels at 25K/sec, and none (9) AIN channels at 5K/sec. This results in a usage of about 245K/sec out of the available 250K/sec, which seems "do-able". But how do you setup the task(s) in NIDAQmx to do accomplish this? Are there any examples (I'm using the ANSI-C API) which illustrate how to do this?
I can't just set all 17 channels to 25K (and decimate the data for the slow channels), because there is not enough bandwidth. I was also unable to setup two tasks (one for high-speed, one for low-speed) because I get an error when I start the
second task. Is there another way to accomplish this?
Thanks in advance for any help!

Greetings,
I would take a look at this KnowledgeBase that describes the process between doing this task.
http://exchange.ni.com/servlet/Redirect?id=12678799
Unfortunately, a text base example program does not currently exist, but if you have questions we'll do our best to help you out.
Regards,
Anuj D.

Similar Messages

  • 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

  • How can I add a curve with a different sample rate behind another curve to show it like one in the report

    I saved two curves with different sample rates with signal express in waveform.
    Now I want to add the curves behind and show them in a report. 

    Hello MReizner,
    Both the DIAdem VIEW and REPORT panel use the time information from your Waveform channels (make sure they actually have the waveform symbol, not the numeric data channel symbol in the Data Portal) to plot the data in the same axis system.
    In the example below I have two waveforms, one sampled at 5 Hz and one sampled at 1 Hz, both in the same axis with the same time channel. All I did was drag the data from the Data Portal onto the axis. DIAdem automatically takes care of creating the correct time channel and plotting the data with the correct points if the data is stored as a waveform.
    I hope this answers your question, please let us know if further clarification is required ...
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Parallel acquire 2 signals with different sampling rate on 2 cards

    Hi NI,
    I have cDAQ-9178 and NI 9221, where sample rate is 10kHz and NI 9219, where I need sample rate about 10Hz, it's possible this confiruration for parallel acquire?
    Thank you.
    Neolker

    Hi Neolker,
    Do the tasks need to be synchronized or are totally independent tasks?
    If the tasks are independent, than you basically have to create two different tasks, even in two different loops that will run with different sampling rate.
    You can have them in the same loop the reading if you assure that the data are transfered in chunks to application memory according to tha sampling rate (Ex. for 10kS/s rate you can transfer data with 1kS chunks and for 10S/s rate with 1S chunk).
    If  you want to synchronize them, you will need a counter that will divde the sample clock from 9221 and route it to 9219.
    Let me know if you need more help.
    Best regards,
    IR

  • How to build a array with high sampling rates 1K

    Hi All:
    Now I am trying to develop a project with CRio.
    But I am not sure how to build a array with high sampling rates signal, like >1K. (Sigle-point data)
    Before, I would like to use "Build Arrary" and "Shift Register" to build a arrary, but I found it is not working for high sampling rates.
    Is there anyother good way to build a data arrary for high sampling rates??
    Thanks
    Attachments:
    Building_Array_high_rates.JPG ‏120 KB

    Can't give a sample of the FPGA right now but here is a sample bit of RT code I recently used. I am acquiring data at 51,200 samples every second. I put the data in a FIFO on the FPGA side, then I read from that FIFO on the RT side and insert the data into a pre-initialized array using "Replace Array subset" NOT "Insert into array". I keep a count of the data I have read/inserted, and once I am at 51,200 samples, I know I have 1 full second of data. At this point, I add it to a queue which sends it to another loop to be processed. Also, I don't use the new index terminal in my subVI because I know I am always adding 6400 elements so I can just multiply my counter by 6400, but if you use the method described further down below , you will want to use the "new index" to return a value because you may not always read the same number of elements using that method.
    The reason I use a timeout of 0 and a wait until next ms multiple is because if you use a timeout wired to the FIFO read node, it spins a loop in the background that polls for data, which rails your processor. Depending on what type of acquisition you are doing, you can also use the method of reading 0 elements, then using the "elements remaining" variable, to wire up another node as is shown below. This was not an option for me because of my programs architecture and needing chunks of 1 second data. Had I used this method it would have overcomplicated things if I read more elements then I had available in my 51,200 buffer.
    Let me knwo if you have more qeustions
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    RT.PNG ‏36 KB
    FIFO read.PNG ‏4 KB

  • Wave form chart for different sampling rate

    Hi
    All,
    I have to use different sampling rate to get  pressure data. Can I use the waveform chart to monitor the pressure data with time?
    If not, what kind of graph should I use?

    Different sampling rate than what? A chart or graph can be used. Depends mostly on how you want to update it.

  • Can I acquire waveform at faster sampling rate using external clock?

    I am trying to acquire waveform at a sampling rate of 1MHz. My 6036E card is maxed out at 200KHz. Is there a way to achieve a sampling rate of 1MHz using an external sample clock? Your PFI pin can take external clock as an AI sample clock, right?

    Hi,
    I remember I asked the similar question before in the NI forum, they reply me:
    the max sample rate (scan/s/channel) cannot be greater than your board max sample rate, even you use external scan clcok. So the answer is no for your case.

  • How do I determine that my audio sample rate matches my tape?

    How do I determine that my audio sample rate of my capture preset matches the sample rate of my tape?

    You've really got two issues.
    DV records audio and video differently and if the camera is substandard, you will have drift over long captures. Solutions: new, better camera or capture in small (max 10 minutes) chunks.
    The other issue is the 32k sample rate, which will exacerbate issue 1. You can duplicate the 48k preset and modify the copy for 32k and work in that until you are ready to deliver. Then copy it into a 48k sequence, render and output.
    It's funny, sometimes I get that pop up but everything is fine.

  • Sampling Rate- How do I check and adjust the sampling rate on my Laptop?

    For the purposes of matching the sampling rates on my laptop to my usb microphone, (recording in garageband) how do I find out what the sampling rates are on my 2009 macbook?  Many thanks!

    GarageBand '11: Set the audio resolution: http://support.apple.com/kb/PH1873

  • How can I find out the audio sampling rate of BetacamSP tape?

    Hi guys
    I'm trying to digitize BetacamSP tape. But I'm afraid if I might choose wrong setting...
    This tape is from very long time ago so we don't know which audio sampling rate we recorded with..
    How can I find out the audio sampling rate of this BetacamSP tape?
    Thanks:)

    The sampling rate is set by the Sony DVMCDA2 you are using, when the conversion is made from the analog input to the digital (DV) output. You should be outputting standard DV which is 16bit 48khz audio.
    Assuming you are in the US, your Easy Setup for FCP should be DV-NTSC, and then open the Log and Capture Pane and set the Capture Settings Device Control to Non-Controlable Device and you should be good to go.
    You will have to roll the deck manually and start and end your capture manually.
    You can download a user manual for the DVMCDA2 by clicking here.
    MtD

  • How to acquire data from 2 chs of the same DAQ card at different sampling rate

    I am using single DAQ card (either 6013 or 6014) in my system i want to acquire data from 2 (or more) channels with following requirements
    1. sampling rate of each channel should be independant of each other (say one is 20 Hz and other is 15 kHz)
    2. data from all the channels should be acquired simultaneously.
    3. coding must be done using DAQmx VIs
    I have tried out following things
    1. I created separate task for each channel: i found out that two tasks can not run simultaneously even though the channels are different
    2. I tried out single task with two channels included in it. and i used 'channels to Read' property to determine from which ch. i want to acquire data: this method works fine if the sampling rates are same. but if i change the sampling rate of one channel it gets reflected in other channels as well.
    can somebody help me out to solve this problem.
    i will appreciate if somebody can post the sample code as my deadline is approaching
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

    Hi Dennis Knutson
    Thanks for your suggestion.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • How can I read channels from different SCXI modules simultaneu​sly?

    Hello.
    I have a system that consists in:
    - Three E-series DAQ boards (PCI-6034, PCI-6052 & PCI-MIO-16E)
    - One SCXI chassis (SCXI 1001)
    - 4 SCXI modules for voltage measurement connected to PCI MIO 16E
    - One SCXI module for strain gauges connected to PCI 6034
    - One SCXI module for accelerometers connected to PCI 6052
    I have to develop a software application that reads all the channels at the same time or at least in the same program cycle. I have tried to create only one DAQmx task containing all the channels, although they belong to different DAQ boards (and SCXI modules, of course), but it seems to be impossible to use channels from different devices in the same task.
    So I have created three different DAQmx tasks, one for each device and its channels. I have used one "DAQmx Start Task" VI for each task at the beggining of the loop in order to use them independently, reading their channels inside the loop in every program cycle.
    When I have run the program I have get the following error:
    "ERROR -200619 ocurred at DAQmx Start Task.vi
    Chassis cannot be used for more than one scanning operation at the same time.
    Do only one scanning operation or combine multiple scanning operations into a single operation."
    What is the problem? How can I combine these multiple scanning operations? What can I do to read all channels at the same time?
    Thanks.

    Hello pablomendana,
    it's ok that you got an error when trying to use more than one device on the same task. According to the setup you have, I agree that 3 tasks should be put in place.
    The key question I have is... Have you configured manually at MAX the SG and accel. modules to be in Parallel mode?
    I would not expect the error you get if they are in parallel mode (in which you could even read directly from the DAQ board, using DAQ device channels instead of SCXI channels).
    Unfortunately, I haven't been able to setup a system similar to yours, but I would like to know more details on what you've tried so far.
    Also, I recommend you that if still need help on setting up the system, use NI's SSP program to get support from your local NI Application Engineering organization, as this will be faster than the forum.
    Regards,
    Jorge M.

  • Acquire 2 signals with different sampling rate?

    Hello,
    i am using first time labview signal express together with a NI pci 6251 & NI Scc 68 device.
    There are 2 signals I wish to acquire over a 2 week time period. They should be saved in several tdms files. One is a dc Voltage.(sampling rate 100Hz) The second is voltage given by an acceleration Sensor. (sampling rate 4kHz)
    When I try to acquire them I couldn't figure out how to set the sampling rate for each signal, only for all signals.
    When I created two DAQmx assistant acquire tabs. An error occurs always: "the specified resource is reserved".
    So my question is is it possible to do this?

    hello markus_umd,
    no, it is not possible to create different samplingrates for individual channels on one daq device.
    if you want to record one channel slower, you must reduce the samples for that channel in your program.
    if the channels have a common divisor, you could implement your task. you find more information here:
    Sampling Different Channels at Different Rates with NI-DAQmx
    kind regards,
    robert h
    NI germany

  • Audition 3 seeing a different sample rate setting than what the device shows

    Hi,
    I have just installed Adobe Audition 3, along with the 3.01 patch, on a brand new system running Windows 7 64 bit. The mother board is an Asus Sabertooth X58 using Realtek High Definition Audio. The device drivers show that the audio sampling rate for line input is set to 24 bit 192K. I wanted to set it to the maximum that the sound card would allow to test performance and audio quality.
    The problem is when I bring up Audition 3 and hit record, I get the message "We do not support recording when your file does not match your hardware sample rate. Your current hardware sample rate is 44100Hz". Clearly this is not the case since the Line In Properties - Advanced tab is displaying "2 channel, 24 bit, 192000 Hz (Studio Quality).
    Under Audition's Audio Hardware Setup it shows only one choice for Audio Driver: Audition 3.0 Windows Sound. It also displays Sample Rate: 44100Hz, Clock Source: Internal, Buffer Size: 2048 samples with no way to change these values.
    If I click on the Control Panel button I get:
    DirectSound Input Ports:
    Device Name: Line In (High Definition Audio Device
    Audio Channels: 2
    Bits per Sample: 16
    Anyone know of how I can change these settings to get Audition to agree with the device settings?
    Thanks
    Dale

    DaleChamberlain wrote: Anyone know of how I can change these settings to get Audition to agree with the device settings?
    I'm afraid that life is nowhere near that simple. The main issue here is that Audition, in common with most audio software, uses a driver system called ASIO to talk to the sound device - this cuts out a lot of the OS and reduces the latency of the system considerably. There are several problems with ASIO though - the first being that it only supports a single device per system (or sometimes multiple identical devices if the manufacturer can make them look like a single device), and with software designed to use this driver, then to use any other driver (like a native Windows one) you have to use a converter stage like ASIO4ALL. This will convert the ASIO streams to WDM, and let you use multiple sound devices - but with increased latency.
    It's the second problem that's really going to stuff you though - and that is that quite reasonably, ASIO is limited by its inventors to run only at three sample rates; 44.1k, 48k and 96k. So there's no way you can run at what you think might be a higher quality setting. All settings above even 48k are making your sound device work much harder, and for what? All that happens is that you increase the potential frequency response to way beyond the human hearing range - to no purpose at all. You don't have sources that can produce useful output at these frequencies, and you certainly don't have the means to reproduce them. This has all been well documented and explained before, so I'm not going over all that again. In a nutshell, Nyquist points out that any digital sampling device has a frequency response limited to a maximum of half of the sample rate, so for 48k that gives us a frequency response up to 24kHz - comfortably higher than any adult can hear by quite a long way. Anything you sample and record beyond this by using even 96k is nothing but noise as far as humans are concerned, and unpercievable noise at that.
    So what the line input properties tab is saying is, if you have a non-ASIO driver designed to support all potential rates, possible. You don't have an ASIO driver available, because it's a built-in sound device, and anyway you've already pointed out that it's using the Audition Windows driver (a cut-down version of ASIO4ALL, effectively), so a conversion is already taking place. What Realtek refer to as 'High Definition Audio' is no such thing - all on-board sound devices of this nature are of universally low quality, and to improve this you'd need an external device - of which there are many available, usually with dedicated ASIO drivers. But none of them will work with ASIO beyond 96k, simply because the standard doesn't support any higher rates.
    If you download and use ASIO4ALL (it's free), then you will get an additional control panel which will show you exactly what your sound device is capable of doing as far as Audition or any other ASIO software is concerned, and this is a useful diagnostic tool anyway, so it's worth doing. You just select this option when installed, instead of the Audition Windows Driver.
    I'm sorry to be the bearer of what seems like bad news, but actually, it isn't. You will percieve no quality difference at all running at anything beyond 48k sample rates; all you will be doing is wasting your computer's resources unnecessarily. You waste both processing resources and hard drive space by processing at ridiculously high sample rates, and there are zero returns.

  • OMF - Mixing Different Sample Rates

    Hello -
    So, I've got an OMF file from a FCP project that I opened in Logic and have been mixing without any issues. Interestingly, all of the audio files associated with this project are 44.1 kHz, but I am mixing in 48k. But everything is right (sounds right, looks right, syncs with video correctly).
    But... if I open the same files in an external editor or quicktime, they play back incorrectly. And if I save a file in a different program, even if it is still at 44.1, and bring it back into logic, it plays back incorrectly. This is problematic if I need to edit an audio file somewhere other than within logic (say I want to do some noise reduction in soundtrack pro).
    Anyone run into this issue or have any ideas about how this happened?

    There are a few ways to look at this.
    1) Regions in the arrange all play back at the session sample rate. Example: 44k session, 96k audio file in arrange=slower playback
    2) Logic automatically converts output sample rate so you can record independent of CA devices. Example: You have a session recorded at 96k, your interface is not connected, Logic will load Built in Audio, Logic runs tyhe sessions at 96k and converts the SRate of the session to match the supported sample rate. So you can run sessions at unsupported sample rates, this rarely makes sense if you cannot capture your audio at session sample rate (if needed).
    3) There are a few other options for handling this, such as EXS24, which automatically handles SRC.
    4) When Importing Audio Files there is a song preference which you can en/disable to automatically convert SR upon import.
    I think your friend may have referred to point #2 and it was interpreted as point #1...perhaps. Hope this clears things up. J

Maybe you are looking for

  • Anyconnect cannot confirm it is connected to your secure gateway

    Hi, I have configured cisco 1941 with anyconnect VPN. I have installed the anyconnect-win-3.1.07021-k9.pkg on the flash memory but it seems something is missing. When i access the router and download the anyconnect, the following message appears on t

  • Getting data into internal table wa_final

    Hi Guys I have change the logic for this program , I have created 2 workareas and internal table now I need help to place the data into      wa_final-max_date = wa_data-idate.          wa_final-min_date  = wa_data-idate.          wa_final-max_km  = w

  • Where Is The File Location Of OpenH264 Video Codec 1.1

    HELLO EVERYONE, Yesterday Tuesday October 14, 2014 I successfully installed Firefox 33. I noticed a new plug-in called "OpenH264 Video Codec provided by Cisco Systems, Inc. 1.1" I wanted to know the following: 1. Where in my Computer or Firefox profi

  • Page Imports in Abstract Portal Component

    Hi, I have created an abstract portal component where I have called a JSP using IResource. The JSP is called and displayed. <%@ page import = "java.util.*;" %> <%@ page import = "com.sapportals.portal.prt.component.*;" %> <html> <body> hello </body>

  • Running out of Application Memory

    I just bought a new Macbook Pro 2.6GHZ 16GB 1600 Everytime i use Firefox to down load some movie file, it freeze and pause all application after a while of downloading. All programmes are frozen and ned to restart again. "Running out of Application M