Question-DAQmx: Using multiple channels on a single device with a trigger

The purpose of the attached VI (Switching_Controller.vi) is to wait for a trigger signal from the input and output a pulse whenever it occurs. However, at the same time I want to output and read a single sample from another input and output channel pair (behavior in Main_Controller.vi). I was planning on doing this in two parallel subvi's but I am running into the common error -50103, "specified resource is reserved". I understand that in order to address this issue I need to compress all output channels and all input channels into just two tasks. However, I am having trouble addressing the issue of the trigger, since I want the second set of inputs and outputs to happen continuously and the trigger forces the task to a certain rate of repetition. Is there any way to run a multichannel task in two parallel subvi's?
Thanks in advance for the insight.
Solved!
Go to Solution.
Attachments:
Switching_Controller.vi ‏36 KB
Main_Controller.vi ‏20 KB

Hello!
Take a look at the attached screen shot. I wrote a small (and very simple) example that I think you'll be able to modify for your needs. Basically, we can use the start task to avoid getting resources reserved and break the task apart so that we write 1 sample on n channels and then write a waveform on a another channel. 
You will notice that I needed to enable the "autostart" function of the DAQmx write for the waveform data by writing a true constant to the vi. This way, the vi will start on its own with a start vi.
Hope this helps!
Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
Attachments:
multi-channel.png ‏24 KB

Similar Messages

  • How to use multiple tape drive for single filesystem on single client.

    Hello All.
    I want to backup single filesystem with multiple tape drive.
    Incase of Symantec veritas netbackup "NEW_STREAM" for multi-stream backup.
    Backup client has a  single backup filesystem like /data1  directory with 4 LTO6 drives.
    /data1 directory doesn't have a sub-direcotry, just present a files.
    If /data1 directory has a sub-directory like /data1/aaa, /data1/bbb, /data1/ccc , Is it possible to use multiple drives?
    Please anybody answer the questions.
    Thanks advanced.

    See how to use multiple tape drive from single client when I want to backup single filesystem?

  • How to use multiple hierarchies for a single char in single query

    Hi,
    Is there any way that we can use multiple hierarchies for a single char in single query. I tried and it just allows me to select one hierarchy even if I use hierarchy variable.
    I have a requirement where user wants to see information related to a cost center with different cost center groups in different hierarchies (every year has different cost center group hierarchies).
    Suppose I want to see information related to a cost center from year 2001-2004.in these four year cost center may have been associated to different groups depending upon that year hierarchy. How can I do that?
    Thanks
    Jona

    Nope. Now way to do this.
    There is always just one hierarchy assigned to a characteristic. And even if the hierarchy was time dependent, it only reads it for one key date and not according to transaction data.
    Regards,
    Beat

  • I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher

    I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher #1 iPad to its AppleTV without effecting/projecting onto the adjacent teachers #2 classroom AppleTV?

    Not as such.
    Give the AppleTV units unique names and also enable Airplay password in settings with unique passwords for each teacher.
    AC

  • BC4J Problem using multiple EntityObjects in a single ViewObject

    Hi,
    I have found a bug while using multiple EntityObjects in a single ViewObject.
    Considere the following example:
    Table A:
    A_ID
    Table B:
    B_ID
    A_ID (FK) NULLABLE
    TABLE C:
    C_ID
    B_ID (FK) NULLABLE
    For each table there is a corresponding EntityObject : AEntity, BEntity and CEntity.
    Now building a ViewObject based on CEntity, BEntity and AEntity, where AEntity and BEntity are referenced via their corresponding associtaions, the following problem occurs:
    1. As long as both IDs are not NULL everything works fine, but when I set the B_ID attribute of CEntity to NULL I receive a NullPointerException with the detail "null".
    2. If the attribute A_ID of BEntity is NULL the values based on AEntity are not updated at all (they keep the value they had for the last row).
    Any information or feedback on this issue would be very welcome!
    Regards
    Frank

    Here's a sample code that works for a
    LineItem->OrdView->CustomerView case,
      public void setOrdId(Number value)
        //set the boolean if there's a current order.
        boolean hasOrd = (getEntity(1) != null);
        setAttributeInternal(ORDID, value);
        //after the OrdID is set, check if there's a valid Ord Entity in this row.
        if (hasOrd && getEntity(1) == null)
          //if not, then set the Customer Entity to null as well.
          super.setEntity(2, null);
          LinesViewImpl vo = (LinesViewImpl)getViewObject();
          //And force a RowUpdated event for "customer-entity-usage-attributes".
          vo.notifyRowUpdated(findRowSetForRow(null), new oracle.jbo.Row[] {this}, new int[]{6,7});
      } Note that in the above, you have to "override" notifyRowUpdated method in the ViewObjectImpl subclass, so that it's available to the LineViewRowImpl subclass. You can do this
    globally by creating a custom subclass of ViewObjectImpl that all the VOs in your application "extends".

  • How to use multiple tape drive from single client when I want to backup single filesystem?

    Hello All.
    I want to backup 1 filesystem using 4 tape drives for reducing backup time.
    In case of symantec veritas netbackup, they can user "NEW_STREAM" for multi-streaming backup.
    Please anybody let me know that how to do use multiple tape drive for single client.
    1. Backup Source server : Linux (1 client)
    2. Backup Soucre :      /data1  (500GB)
        -> Current directory structure doesn't have sub directory under /data1, just files present under /data1
    If direcotry struceture has a sub-direcotry like( /data1/aaa, /data1/bbb ), Is it availble to use multiple tape drives?
    3. Tape Drive with OSB : LTO6 * 4 drives
    Thank you.

    You would have to create a different dataset for each sub-folder. If you only have files at the top level folder then even the NEW_STREAM option couldn't be used to split the job.
    Organise it into folders and then create datasets in a client folder such as :
    /usr/local/oracle/backup/admin/config/dataset/Linux/data1_aaa
    /usr/local/oracle/backup/admin/config/dataset/Linux/data1_bbb
    Then in the schedule you just specify the Linux folder. In each dataset you list the hostname and the folder name, such as :
    include host Linux
    include path /data1/aaa
    Now it will create a new job for each dataset and therefore each folder.
    Thanks
    Rich

  • Can I use a virgin mobile internet USB device with OS X?

    Is there a way to use the USB virgin mobile internet device with OX M??

    I cannot say for sure if the g/b vs n is the cause, but if all other devices like the AE and that one device does not, you go with the odds.  Others will have to chime-in on that.
    And I recommend NetGear (not necessarily *above* LinkSys) because my 3-year-old NetGear router has been serving my MBP fine for 3 months ... no glitches.

  • I want to use my pc as a handsfree device with iphone 5. Is this possible?

    I want to use my pc as a handsfree device with iphone 5. Is this possible?

    If you had a Mac, you could get this & do what you want:
    https://itunes.apple.com/us/app/phone-amego/id405497904?mt=12
    Must be something similar for Windows.

  • How to use multiple channels to sample one signal

    I would like to use all channels on an AI-110 to sample the same signal in order to increase my sampling rate.  (I have spare channels, not spare $$.)  In hardware the channels are read sequentially so in theory I should be able to do this, but I'm having trouble reconstituting the signal.  If I use FP Reads the timestamps seem to indicate the time of the read, not the time of the A/D conversion, so I can't tell which sample was taken last.  FP-Advise on change seems ill-suited as well since consecutive samples may be the same on a certain channel, but the signal may have varied in the mean time on the other channels.
    Any ideas how this might be done otherwise?  The VI will run embedded on a cFP-2020 controller with LabViewRT v. 6.1.1.
    Thanks,
    Anton

    Anton,
    I understand what you are trying to do and do not think it can be done with a single module.  The timestamp on the FP-Read is all about when the vi returned the data and not when the A/D conversion occured.  I just don't think that the A/D converter can keep track of the conversion time. 
    If you had multiple AI-110 modules, you could in theory connect your signal to individual channels on multiple modules and then sequence through the modules.  The problem here would be the ground loops.

  • How to place outbound files to multiple channels for a single agreement

    Hi All,
    We need to send single HIPAA 834 document to two different locations(channels) of the same TP. We have single HIPAA 834 agreement with one TP and one channel. is there a way to add two TP outbound channels for a single TP/agreement?
    Thanks,
    Kathar

    Hi Kathar,
    is there a way to add two TP outbound channels for a single TP/agreement?One TP may have multiple channels but one agreement can have only one associated channel. You may consider using the broadcast feature of Oracle B2B here.
    You may read about this feature here -
    https://blogs.oracle.com/oracleb2bgurus/entry/broadcast_feature_in_oracle_as
    Please note that this blog was written for 10g but concept and implementation is same in 11g.
    You need to create two TP profiles for same TP (you should use different name/identifiers for both) and then make them part of same group by adding identifier "Grouping" in both the profiles with same value. From middleware pass the header "Grouping:<value>" in action name or event name header. At runtime B2B will send the same message to both TP profiles.
    Regards,
    Anuj

  • DAQmx Create Multiple Channels

    I have downloaded the NI Bridge-Continuous Input Program and am trying to modify it slightly to allow for multiple Wheatstone bridges to be connected. Currently, it has the option to connect to a single channel but not to acquire information from multiple channels simultaneously. All of the information in terms of shunt calibration, bridge information, and waveform graph output will remain the same. Ideally, the program will show the largest value in the final waveform graph but it's fine if it shows separate graphs for each of the two inputs. I have been playing around with it without much luck although if I start from scratch and use the DAQ assistant I am able to get the information without trouble. Any help would be much appreciated.
    Solved!
    Go to Solution.
    Attachments:
    Force Measurement.vi ‏96 KB

    Actually you are 99.99% of the way there.
    You just need 4 characters
    The Name filtering on that control is even properly set to allow multiple selections so just shift click the second channel
    Jeff

  • Using multiple ipods on a single itunes

    I currently have a 40GB ipod and have bought for my wife and daughter 2 2gb ipod nanos'. i have all our music on itunes in one library, how can i download only the songs my wife or daughter want onto their ipods as opposed to downloading every item which is what happens with my ipod currently
    Hope you can help
    Thanks
    Dave

    There are a couple of recommended methods for using more than one iPod on a single computer. Method one is to have individual Mac or Windows user accounts which by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. Each iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists.
    Method two is to set your preferences so that either one or all iPods get updated with only certain playlists within one library. Have a look at this article and see what you think and go for whichever you feel suits your needs best: How To Use Multiple iPods with One Computer
    Another option when using a single library is to set the iPods to manual update: Managing content manually on iPod
    Choosing the update option "automatically update selected playlists only" (called Sync Music - Selected playlists in iTunes 7) allows you to create a playlist specifically for each iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used by the other iPods. Make your playlist a Smart playlist and limit the size to just below the advertised capacity of your iPod ( for example, around 3700MB for a 4GB or 1800MB for a 2GB Mini or Nano). You can read more about playlists at these links:
    iTunes: Creating playlists of your favorite songs
    How to create a Smart Playlist with iTunes

  • Use multiple LDB in  a single program

    Hi,
    I want to use multiple log Database in a single program, is there a way to acheive the same..
    Thanx.
    Arjun.G

    Hi,
    You can use function module "LDB_PROCESS" to call a second Logical Database from a program where you already assigned one Logical DB.
    There is a documentation and sample program available in every SAP system.
    1. Call transaction ABAPDOCU
    2. Expand node: Database Access > Logical Databases
    3. Double click on node: Calling LDBs using a Function Module
    There you will see an example how this can be achieved.
    <<text removed>>
    Regards,
    Ogeday
    Edited by: Matt on Feb 17, 2009 5:54 AM - please do not ask for points

  • Domain architecture question if using multiple FMW products

    Hi,
    We are in the initial phases of setting up a WLS/FMW environment to replace our iAS 10.1.2 (forms and reports) and 10.1.3 (j2ee) environments. In addition to bringing over the in-house written applications we will be using the following FMW products - OBIEE, SOA/BPEL, and eventually Forms & Reports. Our question is what would be a good way to architect this environment?
    I initially installed WLS and then configured a domain. When I went to install and configure OBIEE 11.1.1.6 it would not let me extend the existing domain, so I created another domain for it. I haven't been able to find any documentation yet that indicated OBIEE must run in it's own domain, but is that what it is trying to tell us by not allowing us to extend an existing domain?
    Should we create a separate domain for each of the Oracle FMW products I mentioned above? That would require 3 domains if we were to put our in-house applications in to one of 3, but is that a good or a bad idea?
    I see some potential advantages to putting each in it's own domain, but one disadvantage would seem to be that we'd need 3 AdminServers which would also be using resources on the physical server. Would we need 3 node managers if we had 3 separate domains?
    I'm hoping someone else out there has had to create an environment similar to ours and may be able to provide some guidance here. Any advice would be appreciated.
    Thanks.

    Hi
    1. What you want is totally possible like have a single domain with all the stuff installed for atleast 3 products you mentioned like OBIEE, SOA/BPM, Forms/Reports etc.
    2. Lets take few steps back. Domain creation comes in the end. The first thing is installing each of the above products in the same middleware home or different middleware home.
    3. For any product from Oracle, Weblogic Server is the basic underlying application server. First you need to install this with the same version of soa/bpm, obiee that you plan to install on top of this. Once WLS is installed. Now install OBIEE on top of this. You can install SOA/BPM also on top of this same WLS. For OBIEE, you may need to first run RCU and have OBIEE shcemas ready. Because OBIEE simple installation will create a ready to use BI Domain also. Anyhow point is now on top of WLS you have 2 products installed like OBIEE and SOA/BPM.
    4. Now comes the Domain creation. Use config wizard, and create a domain. At this point, you will see all the options (Project Facets) for both the prouducts. If you choose, all soa/bpm modules and obiee modules, you will get a Single Domain with 1 AdminServer and different managed servers for soa/bpm and obiee. I know for soa/bpm, it creates soa_server1, bam_serve1 and for obiee it may have like bi_server1. If you really plan to have all in one domain, I would prefer create clusters like soa_cluster, bam_cluster, bi_cluster, forms_cluster etc. And in these clusters have corresponding managed servers. Then you can have these serves on same physical machine or across remote different physical machine. Only thing is, on all the machines you should have exact same version of wls and all products installed in the same folder structure.
    5. The advantage of having one domain is, you will have one single point of control for all admin stfuff and em stuff to control any product. Also if they interact with each other like soa calling bi reports, this may be little easy from single sign on etc and security configuration etc.
    6. But if you do not have any interaction between them, you can have separate installers like WLS+soa and WLS+biee on different machines. Now a days hardware machines are very cheap with best configuration like 16GB 4 cpu workstation you can get for $2k.
    I have on my side a single installation with WLS + SOA/BPM + OBIEE (all 11.5). Single RCU DB for all these schemas. Single Domain with all soa/bpm and obiee modules deployed ofcourse with different managed servers and 1 admin server. They are all running fine so far.
    Thanks
    Ravi Jegga

  • How  to use multiple channels with one remoteObject .

    hi,
    I have an application which is accessed through HPPS some
    times , also it can be access on server with http service.
    so I want to know how to configure config files or add
    runtime channels which will support either channel depending on
    the server it is accessed over.
    Is there any one who can help me to solve this...i need it
    soon.
    thank you...

    Hi,
    Please visit the URL below for details on adding channel sets
    at runtime. Add multiple channels to the channel set so that the
    fall back mechanism works.
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/runtimeconfig_5.html#194376
    Hope this helps.

Maybe you are looking for