NIDAQmx: "multithreading" - reading multiple input channels of the device at the same time (NI USB 9229)

Hi all

I use NIDAQmx 9.0.2 (C++, Windows XP) and I need to read data from several channels of an NI 9229 USB card. My request will receive an another application requests to read samples, as in the following example:
-1: my application is requested to read samples from "Dev/ai0.
-(1 is not yet completed at this stage) 2: my application is requested to read samples from "Dev/ai2.
-(1 et 2 ne sont pas terminées à ce stade) 3: my application is requested to read samples from "Dev/ai4.
-my application is requested at the end 2
1 and 3 are still running at this stage
etc...

I thought I had a thread for each read request, but I understand this post on the forum, this isn't an option (?).

In addition, the suggestion (in the same post) to use a single task for the acquisition of data from both channels is not sustainable for me, because I do not know beforehand what channels, I'll be forced to read from and at what time.

Is this kind of behavior can be implemented in NIDAQmx at all? If so, someone has an idea how this could be done?
Thank you in advance for any input!

Hello

The NI USB-9229 has only a single timing engine.  Therefore, you can read each channel independently.  One possible way to implement would be to read the four channels at all times.  Then, when your other application request samples from a given channel, use software to separate the samples you want for this channel.

Kind regards

Tags: NI Hardware

Similar Questions

  • How to read 4 similar channels at the same time with the MCC

    Hello

    with the mcc libraries and a card PCi-6034 classic (by calculation of the measure), I want to read 4 analog channels at the same time. I have a "scope" with 4 channels.  How to read 4 channels at the same time with the mcc?

    MF

    Hello MF.

    Thank you for using OR support.  I guess you try to program in LabVIEW.  Where exactly did you get the MCC library of?

  • NEITHER 9207 reading current and voltage at the same time channels

    I have a cDAQ-9178 chassis USB-three cards NI 9217 RTD, three cards 9263 0 - 10V and one the output OR 9207 16 channels analog card. What I m trying with this kind of things, is to read all the analog input channels (information of transducer, temperature, pressure, etc.) and adjust my controls to process with the analog output channels.

    My problem at the moment is the following:

    When I create tasks with DAQmx VI:s, how to create a task that reads current and voltage on the 9207 channels at the same time?

    When I created a task for RTD-channels (16), a task for the outputs analog 0 - 10V (12), a task for the analog input 4-20mA (8) and a single task analog 0 - 10V input (8) I get an error-50103. I think it s because the tasks of current entry and voltagge are trying to use the same CAD at the same time and LabVIEW informs that "The specified resource is reserved. Tasks are to leave so that the analog output task starts first, then I merged all clusters of the error and the rest of the task are started by an order to current input-> input-> RTD input voltage. I get this error after the current enter task started and enter voltage task begins.

    Because I m new on the LabVIEW and stuck in that time, I wanted to try the forum to find answers. I tried to find if someone else was having the same kind of problem, but with a quick search, there was none. I m in a bit of hurry, so I apologize if West a subject with a happy for that and I missed too much according to me.

    Really, the best way to do it is just adding 8 channels of voltage at a task, then 8-channel current, somewhat like this:

    Then spread over different channels when you read later:

    It should run without error.  It always is multiplexed to sampling, but it will be much faster to create two separate tasks.  There will be between 2ms (mode high speed) and 52ms (mode high resolution) between each playback channels, but it will still be much faster than the permutation of the tasks.

  • I have a DAQ Assistant configured to read several channels at the same time. When I have a graphical indicator of wire to the output, I see all my signals mixed together. How I divided them into separate signals?

    I have a DAQ Assistant configured to read 2 channels at the same time. When I have a graphical indicator of wire to the output, I see 2 signals mixed together. How I divided them into separate signals?

    When I wire any type of indicator, it is show that a release of a single channel.

    I want 2 indicators showing 2 different signals as expected from 2 channels configured. How to do this?

    I tried to use split signal but it end by showing that 1 out of 1 signal two indicators.

    Thanks in advance.

    Yes you are right. I tried, but I don't have the result.

    I just find the path. When we launch the split signal, we should expand it (split signal icon) by top, not the bottom. It took me a while to understand this.

    Thank you

  • I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    Hi sindres79946597,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.

    Kind regards
    Nicos

  • Can I use USRP 2 channels at the same time to receive a signal?

    Hello world

    I want to do an implementation of the time difference of arrival between two receivers (antenna) estimate. I have a kit USRP, Remora and two antennas. There is only one signal source (it is transmitted in nowhere is not serious).

    Can I use two channels at the same time the USRP to receive a signal?

    I need the original source signal and the delayed signal version.

    Thanks a lot for your help.

    Sincerely yours.

    Uysal.

    Hello

    I found this post on the forum that can be useful for you.  Looks like you can not receive two antennas in the way you describe.  I think that this would require a configuration USRP two.

  • How can you affect multiple windows open at the same time

    How can you affect multiple windows open at the same time

    You can not.  Only a calendar can have several windows.

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

  • Is it possible to see or read two video tracks at the same time?

    I have the video shot with two cameras at the same event.  If I took the video and put it in a sequence, say video1 video2, how can I watch two channels simultaneously so I can edit them?  I tried to use the multiple camera monitor and have this show video1, watching the video2 in the right panel, but it works very well.  I mean, that the multiple camera monitor does not play at the same time.  Instead, he stops, so when I play the other monitor is it still until I have stop it.  Then, it "catches up".  If I play the multi-monitor, the other is motionless until I have stop the monitor multi-cam.  Then, someone has a better solution that I can use where they both play at the same time?

    BTW, my hardware is new and I have a processor 6-core i7 - 3930K with 16 GB of memory, so I don't think that the problem is with my hardware is not not enough to properly run the Agency 5.0.

    «adobe multicam tutorial»

    http://TV.Adobe.com/watch/short-and-suite/MultiCam-sync-and-editing/

  • opening and reading PDF 2 files at the same time

    Since the last update, I can't open two PDFs at the same time. As soon as I open the second file, the first file is reduced to a minimum.

    Hi sofw.ms,

    Please open Edit > Preferences > General and check "Open document as new tabs.." option to open two PDFs in multiple tabs in the same window.

    Let me know how it goes.

    Kind regards

    Ana Maria

  • What do the 'unused' carrots when multiple images rendering at the same time?

    Hey everybody! I hope it's a quick question. Does anyone know what do the carrots 'unused' when I put AE make several images at the same time? I noticed that even if I don't have enough RAM to use 4 of my 12 hearts (at least what AE tells me) all 12 hearts still hit near 100% usage when I export. If only 4 of my carrots are used to restore 4 separate frames simultaneously means that the other 8 cores to help with the 'first' image? Or those who do something else?

    The reason why I ask, is that I just bought another 32 GB of RAM to give me a total of 48 GB. Who will give me enough RAM to use 3 GB by heart every 12 and still have about 12 GB left for other applications. It will make a difference in the rendering time? Or is what I see above all a difference not having to wait for RAM previews from my projects will be not enough to fill even 30 GB for a single scene? Of course, I'll have to wait for the first preview of the RAM, but with CS6 I will only reload the layers that I change after initial loading.

    Thanks in advance for any help!

    -Eric

    There must be a way to get a rough idea without some trial and error on all projects.

    No, there is not. Same minimal differences between the seemingly identical projects (another used effect etc.) can result in significant differences in the treatment of behaviour. He is completely unpredictable, more so as even a theoretical capacity to use the MP made with all hearts does not mean it will happen actually in this way - CoDecs, effects, I/O bandwidth limitations, and so on audio processing could work against it. that and of course there will be still multithreading in some of the processes as well as the process of master control. For example, H.264 encoder is heavily threaded and will always grab several hearts on top of existing makes MP...

    Mylenium

  • More specific anti-aliasing prevents multiple images rendering at the same time after awhile

    Hi all.

    I am experiencing inconsistent memory, behaviour management when rendering my AE project that prevents me from making several images at the same time when some elements of film use accurate antialiasing.

    I have a processor 8-core i7 MacBook Pro with 8 GB of RAM and I am using AE CS5.5. I visited a project with several Illustrator layers imported to keep things nice and crispy. Here is a 3D with one camera, DOF, composition and they are continuously rasterized. On some of the vector assets I have to set the antialiasing for "More precise" in the dialog box interpret footage to address some problems with image quality. Here's what I noticed when rendering:

    1. when anti-aliasing on all assets of Illustrator is set on "Faster" return it without issues composition.

    2. I change the setting of antialiasing on some assets of the Illustrator to "More specific" to improve the quality of the image. Made of several images at the same time is off. Composition makes for a while, but eventually I get an error: "after effects error: unable to allocate enough memory for file antialias (50:5).

    3. to work around the error I load AE to empty the memory cache all 5 images or less via the Secret menu in the preferences. This prevents the error from happening and I can see the RAM being deallocated when from time to time as expected. This allows me to return the quality I need, but it is slower.

    4. in order to expedite things I light made simultaneous multiple images. I use the conservative settings: AE is to use only two hearts with 3 GB of RAM by heart (the maximum allowed). The rendering is accelerated. However, I see that the system "in use" RAM continues to increase at each image made up until the computer runs out, how AE automatically turns off made simultaneous multiple images and begins to display one image at a time. This does not happen whe all vector assets are defined to use fast antialiasing one I can make indefinitely with simultaneous multiple images rendering, but I don't get this way the desired quality. Please note that there is enough RAM for the carrots for multiple images rendering, but it seems as if having made a frame, the system is not free or reuse the memory when assets use specific anti-aliasing and will use another piece until there is no more.

    Also, I'm outputing to a sequence of images.

    Please help me to find a workaround for this problem. Thank you!

    This is probably a software design limitation (or bug) in the underlying code of Illustrator and there is no work around for this. You might dutifully report it here, but it's as good as it gets, and even when you do, you shouldn't be pregnant it be fixed anytime soon. In 12 years of use AE, that kind of thing never worked 100% right...

    Mylenium

  • Has taken pc in for Reg. gliches & fix, now the speakers will not work! Have chked everything I know, still sound like dubbing, or two channels at the same time?

    I run a custom built Tower pc, with windows xp svc pk 3 on this subject. ASUS MB brd. have a large woofer and two small tweets, it looks like that I play the song even in two places at the same time, only not synchronized.  All confused, lived all the diagnostic test can think and all say it works fine of course.  As a result, been combing of this Council, but can't really find something sufficiently specific for this problem.  Or if it's here, Miss me him!  For any help would be appreciated, I wish you my songs back!  I tried to play off of windows media and hard drive also.

    BTW, I'm the old lady of 58, so, could you young computer scientists Genesis keep it as simple as possible!  Please, I beg you! Thank you very much!!

    Hello

    1. what Media Player do you use?

    Try and proceed as described in the link.

    How to fix sound problems in Windows XP:

    http://support.Microsoft.com/kb/307918/en-GB

  • Select several CSS classes simultaneously (was: how to select multiple css rules at the same time?)

    Hello!

    I have Dreamweaver 8

    I tried to select several css rules at the same time create a css stylesheet, but I don't know how to do it!

    This man do in this video at 03:00

    http://www.YouTube.com/watch?v=ZbQ3GTFC-O0

    Thank you!

    DW8 does not support the selection of several classes in the properties panel.  I'm sure that this feature appeared in the exit of the CS6.  Unless you upgrade to CC or CS6, you must do this manually in your code.

    Nancy O.

  • View multiple video tracks at the same time?

    Hi guys,.

    How can I get the cam multi monitor to show me my 3 or 4 cameras at the same time? I know there is the method in which you synchronize clips and make then a sequence of nested with operations multi-cames enabled, but I can just see clips of several at once on the multi monitor?

    The reason why I want to do, so I can display all cameras and do a sync!

    Also, I have tons of things on my timeline looking at different hours of the day to be synchronized. I can't really do a quick sync and then the multi cam monitor...

    Currently, if I enable multi-screen in first, I can without video track of the video track, but can not see all my pieces at a time

    Thank you...

    MrD

    To do what you want, you do not use the multicam monitor.  You will need to apply an effect to transform image in the image to each clip, resize, and move to a corner of the frame.  This will allow you to see all the clips in the program monitor.

    Don't forget to remove these effects PIP once the synchronization is complete.

Maybe you are looking for