Run DAQ 6009 in differents VIs at the same time

Hi, I need to use the DAQ 6009 in two or more differents subVIs at te same time.
I have a main VI that runs two subVIs in parallel. Both subVI reads two different channels. 
The problem is when a subVI "open" or inizializes the DAQ before others and It just read two channels.
Can I use the DAQ in subVIs at te same time?
Solved!
Go to Solution.
Attachments:
Ejecucion en paralelo.jpg ‏39 KB
DAQ.jpg ‏49 KB

Hello rvenge,
As for your first question- you can look up errors via Help>>Explain error...  Some errors will have multiple listings, which means that different scenarios or toolkits may return the same error code for a different reason.  Refer to this KnowledgeBase for more information on common DAQmx errors:
KnowledgeBase 2XQEAPQJ: Common NI-DAQmx Error Codes and Solutions: Codes -50103 and -200000 to -200299
http://digital.ni.com/public.nsf/allkb/001DA4DB6A31CF8886256D33006FA857
On to the queues- it's not clear what you're trying to do here- it looks like you're doing some operations on the two input channels and then enqueuing them as well as the output of the operation.  I think you should take a step back and look at why you need to operate on the data asynchronously to begin with- do you need to stream all of your data from each channel to separate VIs? Would it be possible to process the data and then send the final value on to its destination?  If you do need to do this sort of operation, then yes, you'll need one queue for each location you want to read in.  I would recommend creating an Action Engine Queue handler to isolate the data transfer mechanism from your acquisition code rather than wiring everything through as you have.
Regards,
Tom L.

Similar Messages

  • Run two VIs at the same time

    Hello!
    I want to know how i can run two VIs at the same time.
    I mean that i want to run a second VI ( N.2) while another VI (N.1) is in
    execution without suspend it (N.1)
    If anyone has suggestions, please help me!
    Thank you very much.
    roby.

    If you say "run a vi", I assume that you have the VI open in LabVIEW, then press the run button. (Some of the earlier answers taks about programmatically calling VIs, which I don't think is the focus of your question)
    You can run as many VIs as you want at the same time. Simply press the run button of the second VI and they will both run.
    Of course you should ensure that they don't use the same resources (e.g. DAQ device, or listen on the same TCP port, etc.) In these cases, the second VI might fail. (Also if the second VI is a subVI of the first VI, you won't be able to run it seperately, because it will be already running.)
    LabVIEW Champion . Do more with less code and in less time .

  • Run invoke-command on multiple machines at the same time

    Hey all so I read that if I store my New-pssession in a variable then used that in my invoke-command it would run all computers at the same time.
    $a = Get-Content "C:\Users\cody-horton\Desktop\list.txt"
    $session
    for($i=0;$i -lt $a.Length;$i++){
    if(!(Test-Connection -Cn $a[$i] -BufferSize 16 -Count 1 -ea 0 -quiet)){
    Write-Host $a[$i] -foregroundcolor red
    else{
    $session = New-PSSession $a[$i]
    Invoke-Command -Session $session -FilePath "\\My computer\C`$\Users\public\Documents\zip folder.ps1"
    What exactly am I doing wrong I just need to run this script on multiple machines at the same time.
    Thanks.
    Edit: Also what would be the best way to close all the sessions thanks.

    Hi there,
    So what I think you are doing wrong here is that you are overwriting the value in $Session everytime you executed code inside for loop. try the below:
    $a = Get-Content "C:\Users\cody-horton\Desktop\list.txt"
    $session = @() #define this as an array
    for($i=0;$i -lt $a.Length;$i++){
    if(!(Test-Connection -Cn $a[$i] -BufferSize 16 -Count 1 -ea 0 -quiet)){
    Write-Host $a[$i] -foregroundcolor red
    else{
    $session += New-PSSession $a[$i] #add the new session to the array, at the end it will be a collection of sessions
    Invoke-Command -Session $session -FilePath "\\My computer\C`$\Users\public\Documents\zip folder.ps1" #I think the above one won't work..first you need to copy the script locally on the machine and then execute it#Why this won't work because of Second-Hop Authentication
    Have put comments where I edited your code.
    Hope this helps
    Knowledge is Power{Shell}. http://dexterposh.blogspot.com/

  • How can i run multiple instances of Photoshop EXE at the same time on windows 7

    Alright. You may ask why do you need multiple ?
    Assume that i have 10000 PSD files in 10 different folders
    I have a script that just save as them as PNG
    And these files are each 3000x3000 px
    My computer has 8 cores and 1 photoshop exe is only using 1 cpu core
    Also i have SSD raid system it has 750 mb read write per second
    So right now i am wasting my time with running only 1 photoshop exe instead of at least 4

    I'm not aware of a way to run multiple instances or different versions of photoshop at the same time on windows.
    Assuming of course they are all installed on the same operating system.
    On mac versions you can running two different versions of photoshop at the same time, but i don't think that's possible on windows where it
    appears that only one version of photoshop can run at a time.

  • How to insert into two differents tables at the same time

    Hi
    I'm newer using JDev, (version 3.1.1.2 cause the OAS seems to support just the JSP 1.0)
    and I want to insert into two differents tables at the same time using one view.
    How can I do that ?
    TIA
    Edgar

    Oracle 8i supports 'INSTEAD OF' triggers on object views so you could use a process similar to the following:
    1. Create an object view that joins your two tables. 'CREATE OR REPLACE VIEW test AS SELECT d.deptno, d.deptname, e.empname FROM DEPT d, EMP E'.
    2. Create an INSTEAD OF trigger on the view.
    3. Put code in the trigger that looks at the :NEW values being processed and determines which columns should be used to INSERT or UPDATE for each table. Crude pseudo-code might be:
    IF :NEW.deptno NOT IN (SELECT deptno FROM DEPT) THEN
    INSERT INTO dept VALUES(:NEW.deptno, :NEW.deptname);
    INSERT INTO emp VALUES (:NEW.deptno, :NEW.empname);
    ELSE
    IF :NEW.deptname IS NOT NULL THEN
    UPDATE dept SET deptname = :NEW.deptname
    WHERE deptno = :NEW.deptno;
    END IF;
    IF :NEW.empname IS NOT NULL THEN
    UPDATE emp SET empname = :NEW.empname
    WHERE deptno = :NEW.deptno;
    Try something along those lines.
    null

  • Can I run a podcast and an app at the same time?

    Can I run a podcast and an app at the same time?

    Yes for most.  You can run a regular app with an audio podcast.  I do not know what could run with a video podcast.

  • Can i run remote profiling and remote debugging at the same time

    can i run remote profiling and remote debugging at the same time .
    i am using jdev9.0.5 and oc4j9.0.4 standalone server.

    i think i am wrong

  • Labview runs CANBus and DNP3 software model at the same time

    I have an ordinary computer which communicates with several DSPs (CANBus communiation) through Compact Rio. The physical connection is that the DSPs' CANBuses are connected together and connected into Compact Rio, then the Compact Rio is connected with a router through Ethernet, at the same time, the computer also connects with the Router through Ethernet. Based on this physical architecture, the computer can run CANBus software model on Labview to communiate with Compact Rio and DSPs.
    As I know, the communication between the computer and the Compact Rio is not real time, and the communication between Compact Rio and DSPs can be real time, can you tell me if I get the right point?
    Now we have another device named RTDS (communicate with outside through Enternet based on DNP3), and want to add RTDS into our system. I am not sure about the way to conduct the communiation. The main question is that we need to run Labview to communicate with DSPs through CANBus and RTDS through DNP3 at the same time, is that possible?
    I proposed two possible ways to conduct communication, bt not sure if it is possible.
    1. I proposed that I connect RTDS with the Router through Ethernet, and then the computer communicates with RTDS through the Router based on DNP3 and also keeps the communication with DSPs through Router, Compact Rio, CANBus and then DSPs. I am wondering if this kind of communication is available for Labview.
    2. The second possible way I proposed is that I connect the RTDS with Compat Rio (CRio keeps connecting with DSPs through CANBus) through Ethernet, and then the computer communicates with DSPs through Router, Compact Rio and CANBus, and the computer communicates with RTDS through Router, Compact Rio and Ethernet. Also, the computer needs to run Labview with CANBus sofeware model and DNP3 software model at the same time. I am also not sure if it is possible.
    The diagram of the communication system is shown in the attachments.
    Attachments:
    Commnucation system diagram.pdf ‏118 KB

    To use Mail from multiple devices, your Mail Server needs to be using IMAP protocol (iCloud Mail uses that).
    IMAP keeps the Master copies on the Server, not on the Mac the way most default POP Mail servers do.
    To keep one Master Calendar, accessible from all devices, you need a web-accessible place to keep the Master Calendar. iCloud can do that.
    ¿Do you see a trend developing here?

  • Is it possible to run both Netflow v5 and v9 at the same time

    Hi All,
    Just wondering if it is possible to run netflow version 9 and version 5 at the same time (to different destinations) on the same router please?
    Thanks very much
    Regards
    Amanda

    No Amanda,
    we cannot simultaneously configure both versions of NETFLOW on cisco ios. After configuring firstone when you try to configure other version it will override the previously configured version.
    "Please do rate helpful posts"

  • Can't run Pshop and another adobe program at the same time

    Hi all,
    I'm experiencing a frustration problem. I can't run two adobe programs a the same time - ie, Lightroom and photoshop, After effects and photoshop.
    Lightrrom and After effects sem to be playing together okay at the moment so looks like it may be a PShop issue.
    Running final release of windows 7 64 bit, licenced PS3, trial AE, trial PS4....8GB Ram,  has been with both Nvidia and ATI video cards, open GL on , Open GL off, seperate scratch disks, reinstalled everything,
    Any help, advice, hints would be really appreciated as having to close programs all the time when switching apps is a real pain in the neck
    cheers
    Jeff

    thanks whytefly,
    yeah I thought that may be the case but then realised both After effects and CS3 are 32bit (86x) and I can't run those together
    I'm jealous as hell that you can run 3 together  haha,
    cheers
    Jeff

  • Running Service pack and Authorization migration at the same time

    Hi BI Experts,
    We are in a situation where planned to run new Enhance pack 3 (from EHP1) in BI 7 system and also in same system migration of Bw 3.5 Authorization concept to BI 7 analysis Authorization. Both the activities are planned at the same time in same system.
    Do you guys see any risk running two activities at the same time in same BI 7 system?
    Would you please highlight your thought or opinion on this?
    My System is on BI 7.0 with EHP1, Authorization still using 3.5 concepts
    Br
    Deepak

    I got the way , no need to reply to this query.
    Br
    Deepak

  • Mac Pro can't running two fire wire hard disks at the same time .

    Mac Pro can’t running any two fire wire hard disks at the same time . which two hard disks have extra power from power socket . If i just insert one of them .No problem . If connect two Hds at the same time. Leopard cant find it and the Hds seem no problem. the machine must be restarted and then use one . No problem . I have formated the HD many times .even if which format is Fat 32 or Mac issue persists .Boot from installation CD used the disk utility . Issue stills . If i used one fire wire HD that get power from power socket and used one fire wire device . Leopard was no problem during this time . Whether is this design problem or my machine hardware problem?My Mac has been changed the logic board by Apple service . Do you have similar case in here????

    I connect both hard disks that get power from power supply normally. Also have ever changed the format as GUID. Which always use the power cord . I felt confusion why the issue just happened connect both hard disks with extra power at the same time. If i used one hard disk connect to firewire port . Another firewire port connect other firewire device . No problem at all.

  • Acquiring data from daq-pad and saving video at the same time

    I am trying to record data from my daq-pad at 100 samples per second. At the same time I am using a usb interfaced camera to record a video feed. The idea is that when i begin recording data i also begin recording the video feed.
    The way I record the video  feed works fine in its own VI (I need it to record at 30fps and it does this just fine). But when I integrate it with the data record/capture VI the framing rate slows down to only 10 fps. I suspect this is because the VI  gets caught capturing the data from the daq-pad thus slowing down its ability to record the video feed. I was hoping you could give me some help with how to record the data at 100 samples per second and get the VI to capture 30 frames per second. Thanks in advance for anyone who helps out.
    I've attached the VI that has both the data capture and the video capture already integrated.
    Attachments:
    usa_swimming with video21.vi ‏892 KB

    Hi,
    I took a look at your code and the problem is that you have both the data acquistion and the image acquistion in the same loop.  Have you tried using parellel loops?  There is more information about this in the labview tutorials that are available online if you are unsure how to do that.  The problem is that you are doing a lot of things in that loop (acquiring data, doing some analysis, and writing to file), so you can't acquire images very fast because it depends on the speed of the loop iteration.  I hope this helps.
    Have a great day,
    GG

  • Run Javascript Routine and Validations/Proccesses At The Same Time

    I have a Submit Button. When a user clicks it, I want the following to happen...
    1) I want a Javascrip Function to run
    2) I want the Validations And After Submit Proccesses To Run
    I can do each seperately, but can't figure out how to do both at the same time. I can run the Javascript Function by assigning a Optional URL to the submit button (javascript:blah()) , but the Validations and Proccesses are by passed. I can have the normal submit process, but this doesn't do the Javascript part.

    Hi,
    You can chain javascript calls:
    javascript:blah();doSubmit('buttonname');As long as blah() doesn't return false, then the doSubmit() function will be called and the page submitted as normal.
    Andy

  • Can you run 3G and connect to wifi at the same time?

    Is it possible to use the iPhone 5 to search 3G and connect to wifi at the same time? I'm trying to run my Apple TV but only have 3G that is run through my phone. I want to play Netflix using Apple TV run from 3G through my phone.

    The phone and the ATV need to be on the same wireless network.  You cannot communicate with the ATV using 3G on the phone

Maybe you are looking for

  • PO line item link with BOM

    Hi guys , Actually I am looking for some info on this scenario. while creating PO for specific document type(ZPOG)  and item category (L) , I need to modify the child material qty of the line item  . This is subcontract PO . For example if I am creat

  • T Code for Advance Payment to Vendor

    What is the T Code for advance payment to vendor

  • Import Cd's in m4a format?

    Does anyone know how to import CD's in m4a format, I know I can play them but I don't know how to make them. I share alot of music between my Linux box and Mac box and I like the format better than mp3. Thanks in advance guys and girls

  • Change in Mountain Lion?

    Something has happened (presumably) in Mountain Lion where things are now sliding into and off of the page side to side (it didn't used to be fancy like this before) and I can no longer switch from drafting an email to searching emails... (Once I'm d

  • Suddenly got Bing toolbar that doesn't direct me to my regular homepage. How do I get rid of it?

    I just want to know how to get rid of a toolbar that doesn't seen to have a disable function.