Using Multiple non-successive Analog DAQ Channels

Hi,
I need to use multiple analog channels from my DAQ Device in a particular application. Is it necessary to use continuous range of analog channels (e.g. 0,1,2,3,...) or can i use channels in any order (e.g. 2,4,6...)? My DAQ Device has 16 AIOs. What are advantages/Disadvantages of using non-successive channels ?.
Thanks.

Hello,
It is perfectly acceptable to sample on multiple channels that are not in a continuous range, nor do the channels have to be increasing order. In most applications, there are little to no advantages/disadvantages of doing this, other than ease of use for the programmer.
-Alan A.

Similar Messages

  • How do I use PFIO as my analog trigger channel?

    I'm trying to use PFIO/TRIG1 as a analog trigger signal in a channel scan list. The analog input configuration doesn't seem to recognize this as a analog channel (just 1 to 15. I'm using Labview 6.1, PCI-MIO-16e-4, and the BNC-2090

    Voraciousniuser is correct. You set the triggering in the AI_Start VI. We also have some examples on our website:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/C7691D8BFAA6881D86256802007B8A9C?opendocument
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2AF60E522378449286256815005806D3?opendocument

  • Configuring DAQ channels through LabView program

    Hi,
    I want to scan one analog input of PCI 6025E every 250 msec and I scan 8 such channels. I am using AI Sample Channel VI to do this and for its channel input I am feeding a string (with channel name) that is typecasted using a Traditional DAQ channel constant. All the required channels are configured using this constant. However this VI doesn't seem to be portable. When I use it on a different machine, the constant shows no channels defined.
    Is there a way to configure DAQ channels through my program such as to make the program portable? I came across notes that mentioned DAQ global channel but I don't know how to use it.
    Thank you in advance,
    Sharmila

    One of the great things about DAQmx is that there are only 4 basic VI's to learn to use. The Configure, Read, Write and Stop. The same Configure VI that was used to setup the analog input channels can be used to setup analog output, digital in/out and counter in/out.
    The small menu on the bottom of the VI is actually a listing of all the different operations that this single polymorphic VI can do. Click on the down arrow and you'll see what I mean.
    I've modified the example to read DIO lines 0-3 and write to lines 4-7 on Port 0. Again it programatically builds the channel list so it will always refer to the correct device. To create individual channels for a digital line, you first specify the device, then the port, then the line or lines. Example, to create a task for lines 4-7 on port 0, you would use "Dev1/port0/line4:7".
    Notice that the "DAQmx Create Channel.vi" is the same one used in the analog input configuration, but with different polymorphic selections. Also note the "DAQmx Read.vi" is the same except for the selector.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Build Task and Scan Channels with DIO.vi ‏127 KB

  • How do I AI config for SCXI multiple non-contiguous channels

    I need to configure a measurement of with multiple groups of thermocouple channels.
    Using LV 5.1.1 (could use 6, but I am supporting lots of code built with 5.1.1), DAQ 6.8.1 (can up to 6.9.1 if it matters), PXI-6052E, SCXI-1102, SCXI-1303 (or TC-2095).(using SCXI addressing).
    The problem occurs when I try to configure multiple scan lists with gaps between channels.
    (see LV DAQ SCXI example SCXI-1102/1127/1101 Thermocouple)
    example channel list:
    ob1 ! sc1 ! md1 ! cjtemp
    ob1 ! sc1 ! md1 ! 0:3
    ob1 ! sc1 ! md1 ! 5:9
    This gives an error: -10370 in AI Group Config.
    Likewise if I use an individual channel in each address string. like:
    ...md1 ! 0
    ...md1 ! 1
    ...md1 ! 3
    But, I can skip channels betwe
    en cjtemp and the first channel of the next scanlist without error.
    Also, I can add scan lists for other modules, like:
    ...md1 ! 0:3
    ...md1 ! 4:8
    ...md3 ! 12:14
    without error!
    What I really want to do is to do AI Config first for all channels, then start, then loop on AI Read and some processing & storage.
    When I loop through the channel address lists (strings with contiguous channel sets e.g. 3:6) I get the same task # for all config calls. Then when I loop through the AI Start's for each , I get an error -10609 in AI Clock Config.
    The thing is that I cannot necessarily have all contiguous channels, and I don't want to go through a sequence of {AIConfig, AIStart, AIRead, AI CLear} for each scanlist each time through. That takes too much time and resources.
    Eventually I want to configure multiple non-contiguous scanlists in multiple SCXI modules.
    But, for right now I need to do this for one SCXI module.
    Anyone have any ideas?
    How can I approach this.
    Thanks
    Dave

    Dave
    Check the following link into the NI Knowledgebase (if you haven't already)
    which I think explains your situation.
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/02a55e1f39
    e8bd15862567e700577877?OpenDocument
    Bottom line is you will not be able to skip channels on any SCXI module
    other than the SCXI-1112. You will need to include the channels in your scan
    list then discard the data later.
    Either that or as the Knowledgebase suggests, use Virtual Channels. You can
    then miss channels out in the scan list as you require. They actually get
    scanned but NI-DAQ discards the data for you.
    Ian Bell
    NI UK
    "Dave Karon" wrote in message
    news:[email protected]...
    > I need to configure a measurement of with multiple groups of
    > thermocouple channels.
    > Using LV 5.1.1 (could use 6, but I am supporting lots of code built
    > with 5.1.1), DAQ 6.8.1 (can up to 6.9.1 if it matters), PXI-6052E,
    > SCXI-1102, SCXI-1303 (or TC-2095).(using SCXI addressing).
    >
    > The problem occurs when I try to configure multiple scan lists with
    > gaps between channels.
    > (see LV DAQ SCXI example SCXI-1102/1127/1101 Thermocouple)
    > example channel list:
    > ob1 ! sc1 ! md1 ! cjtemp
    > ob1 ! sc1 ! md1 ! 0:3
    > ob1 ! sc1 ! md1 ! 5:9
    > This gives an error: -10370 in AI Group Config.
    > Likewise if I use an individual channel in each address string. like:
    > ..md1 ! 0
    > ..md1 ! 1
    > ..md1 ! 3
    >
    > But, I can skip channels between cjtemp and the first channel of the
    > next scanlist without error.
    > Also, I can add scan lists for other modules, like:
    > ..md1 ! 0:3
    > ..md1 ! 4:8
    > ..md3 ! 12:14
    > without error!
    >
    > What I really want to do is to do AI Config first for all channels,
    > then start, then loop on AI Read and some processing & storage.
    > When I loop through the channel address lists (strings with contiguous
    > channel sets e.g. 3:6) I get the same task # for all config calls.
    > Then when I loop through the AI Start's for each , I get an error
    > -10609 in AI Clock Config.
    >
    > The thing is that I cannot necessarily have all contiguous channels,
    > and I don't want to go through a sequence of {AIConfig, AIStart,
    > AIRead, AI CLear} for each scanlist each time through. That takes too
    > much time and resources.
    >
    > Eventually I want to configure multiple non-contiguous scanlists in
    > multiple SCXI modules.
    > But, for right now I need to do this for one SCXI module.
    >
    > Anyone have any ideas?
    > How can I approach this.
    > Thanks
    > Dave

  • Multiple Analog input channels affecting each other (DAQ_mx)

    Hi, I use NI BNC-2110 / PCIe-6363 + Labview 2012 for my DAQ.
    In out task, we acquire two analog samples(these two samples are timed by on board clock, 1000000 rate) from each analog input (AI_0 and AI_4) whenever DAQ receives a digital trigger from PFI0 (rising edge and retriggerable). We will receive 200 triggers and our program will finish until we receive 400 samples on each channel.
    The interesting thing is that different analog inputs seem to affect each other. As shown in the figure below, the white curve is analog input AI_0 and the red curve is analog input AI_4.  AI_0 is connected to a triangle input and the curve
    below seems right. AI_4 is actually shorted (some result if open) but the acquired data is affected by AI_0.
    However, this problem does not occur when only one channel is used in vi (Only the "create channel" and the "read" vi's are changed to be multiple sample and we repeat the experiment with everything else unchanged). So I believe it is not an actual voltage problem before the BNC-2110 board receives the analog input.
    Any idea about how to solve this? Thanks in advance! Happy new Year.
    Yang
    Attachments:
    Two Analog Inputs.vi ‏23 KB

    I used a wire to connect the BNC core and BNC shell on AI_4 when I shorted it(it is set on floating source mode).
    The effect happens even if I have some other kind of input in AI_4(the input is like a stair case but it is always modulated by AI_1). AI_4 always appears modulated by AI_0.
    Actually it will not bother me at all if this only happens when AI_0 is open.
    I guess the sample clock (1000000) is too high to cause this(Yep, probably it is Ghosting...). When this rate is 1000, it does not happen as I have just tried.

  • How can I use two analog output channels simultaneously?

    I am using PCI6110 DAQ card. I want to run two separate VIs on one computer. Each VI output a waveform to one analog output channel. How can I do this simultaneously without interfering each other?
    Thanks

    Hi Stephen,
    This can NOT be done with two seperate VI's.
    The issue is in the hardware/driver.
    Your hardware has a clock that controls how fast updates to the AO occur. That clock can only have one value at a time. I will let your contemplate the complications that come up with two different clock settings being active at the same time (see below).
    So how do you work around this complication?
    You will have to develop a single VI that OWNs both output channels. That VI will have to accept start,stop,configure, etc commands from the two clients (what you will have to convert your existing VI's into). If you decide to place a restriction on the services you provide to the clients along the line of "only one sample rate at a time" you will be making your li
    fe much easier.
    If I was contracted by a customer to do what you have asked, I would try to combine the two existing VI's into one or simply buy a second 6110 and avoid all of the hassles. Both of these approaches would end up saving the customer money in the long run while freeing them of any restrictions that where established in order to develop the "server".
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Has anyone successfully used multiple page orientations in a CR2008 report?

    Hi -- I posted about this a couple of days ago:
       Unwanted blank pages using multiple page orientations in CR 2008
    I have a report with multiple subreports, each 1 page long, and some of which need to use landscape
    orientation (most are portrait). Thanks to the forum, I learned that this is possible in CR2008.
    Each subreport is in a report footer section. So, for the subreports that need to be landscape,
    I use the section expert for that footer, Paging tab, and set it to landscape. I DO NOT
    check New Page Before and New Page After -- but I get them anyway. There's a blank page
    before the landscape page -- portrait orientation. There's a blank page after the landscape
    page -- landscape orientation. In addition to being ugly, the blank pages mess up the page numbers that
    need to be associated w/ each subreport.
    I've checked the Report Footers before and after the footer for the landscape subreport.. neither of them have
    New Page Before or New Page After checked.
    I'm hoping to generate more interest/discussion w/ this post, and I also have some additional
    information.
    1) The "blank" pages that appear before and after the landscape page seem to be duplicates of the previous section.
    That is, subreport 3 is in page footer c (portrait). Its results correctly appear on page 3, but page 4, which appears
    blank, is also page footer c and shows the subreport object included -- but with no data.
    The subreport in page footer section d (landscape) appears on page 5 (it should be on 4). Page 6 appears blank,
    but it is also page footer section d and shows the subreport object included.
    If I change page footer c to landscape, all the "blank" pages go away (though subreport c takes up 2 pages because
    it's too long for a landscape page). So, from that perspective, having successive pages w/ the non-default
    orientation seemed to help...
    Is there some trick to using multiple page orientations in a report that I'm not aware of? Can someone describe
    an example where they were successful?
    Maybe tech support will be the way to go, but I'd like to think that someone out there has worked w/ this feature!
    Thanks much,
    Carol

    Please don't post the same question multiple times

  • New 13" Macbook Pro trying to connect to a Panasonic VIERA TC-L42U30 as second monitor. I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. The Macbook does not sense the second monitor (TV). Help?!

    I've been a Mac since 2008, so I know my way around the system pretty well. This issue, however, has me stumped. I had an iMac until now and only now am I experiencing some difficulty with my new MacBook Pro. The model I have is the newest 13" Macbook Pro model and I'm trying to connect a Panasonic VIERA TC-L42U30 42" HDTV as a second monitor via the Thunderbolt port.
    It worked the first two times and hasn't worked since, after 10-15 attempts with different configurations, turning things on n off, restarting the mac, unplugging the cables, adapters, TV, resetting the P RAM, etc... I've used multiple hdmi-thunderbolt/mini displayport adapters and multiple hdmi cables and still no success. No matter what I do, the Macbook does not sense the TV as a second monitor anymore.
    I took the MacBook Pro to the Apple Store, and their "genius" there had it working fine with a DVI connection to a regular monitor. The Panasonic TV I have has HDMI connections and one VGA connection which does not support HD, but no DVI option. I want an HD connection to mirror or extend my MacBook Pro screen. At the Apple Store, they didn't have a Thunderbolt/Mini DisplayPort to HDMI adapter, so he could not try that out for me.
    Anyone else have this configuration or another similar one with a Panasonic HDTV?
    Ideas? Suggestions? Anything?! Help!!
    P.S. I'm running Mountain Lion, if that wasn't already obvious. Everything is up to date in my App Store as well.
    Thanks!

    Hi There,
    I have had the exact same issue but with a projector.
    The issue lies with Mountian Lion 10.8.2.
    I tried many a combination with no luck to get HDMI working.
    Took my mac into the apple store and came to the conclusion it was the software, so I asked them to install 10.8 onto it (this is destructive so a backup is a must)
    Bought my macbook home and voila, now displaying through my projector.
    There is a small graphics update after 10.8.1 which seems to be the cause.
    Hope this helps.
    Thanks.

  • I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel?

    I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel? In attach I send a example of my vi to control one chanel, but i need to control both but with diferent waveforms.
    Is the vi correctly programed to this propose?

    Yes you should be able to do that. look at the signal generation examples shipped with LabView
    You can create a 2 D array, with each row representing a wave form per channel. The number of points of the wave form (per row of the 2 D array) represent the number of points in the output buffer
    The wave forms can have different amplitudes/shapes, and therefore they are independent in this sense.
    However, you need to set the update rate,which is the same for both channels. The update rate together with number of points per buffer determines the frequency of the wave forms. This means the two wave forms will have the same frequency.
    To have different frequencies, you need to have say, on wave form with one cycle per buffer, and the other waveform have 2 cycles
    per buffer. in a case like that the frequency of the second channels is twice that of the first channel, and so on
    The two wave forms are then not truly independent, they may have different amplitudtes/shapes, but related in frequency.

  • Multiple waveform generation on analog output channels

    hi,
    I am writing data on the two analog output channels on my PCI-6052E card.But AO write takes only one dimensional array of waveform data. How can I simultaneously output seperate waveforms on each of the analog output channels(say sine on DAC0 and square wave on DAC1)?

    I've had a similar experience I believe.
    I had to create the two waveforms with function generators, suck out the Y
    values, then Interleave them into one array.
    Basically, point one was the first point in waveform1 for Dac0, point two
    was the first point of the second waveform for Dac1.
    Then that gets wired to the output block where you tell it to scan both
    channels.
    Confusing as labview eh??
    "shiv" wrote in message
    news:[email protected]..
    > hi,
    > I am writing data on the two analog output channels on my PCI-6052E
    > card.But AO write takes only one dimensional array of waveform data.
    > How can I simultaneously output seperate waveforms on each of the
    > analog output channels(say sine on DAC0
    and square wave on DAC1)?

  • Selecting DAQ channels by arrays of strings for scxi 1102/4c

    Hello,
    I have an urgent matter - for my project I have to modify DAQ analog acquisition on several machines. The existent applications use definitions of virtual channels AnCh0-63, and they select them by DAQ constants which are connected to AI Acquire Waveforms. Now I need to make one program for all machines (different slot numbers of the cards) that will retrieve channel selection from a database (LV 7.1, MS SQL Server 2005).
    Is there a way to directly use the DAQ constants by feeding them strings from the database? The catch is that the company wishes to keep the existent programs and use a database for storing and loading parameters. Otherwise I tried with global-channel definition strings (obx!scy!mdz!0,2,...,n) but there were problems with some combinations of channels.
    Thanks in advance!
    simon

    Hello Simon,
    If I am understanding the question, you want to use the same program
    you have been using (which uses our "legacy" driver, Traditional DAQ)
    and want to integrate that into a database system.  The trick seems to
    be inputting the various inputs into the AI Aquire Waveforms directly
    from strings you have aquired from your database.
    If my understanding is correct, then we want to convert strings into
    the data types required by the VI.  The channels input can be fed a
    string directly (as long as it is in the format it expects), while the
    other inputs require numeric values.  You can convert strings into
    numerics with the Decimal String to Number VI (Functions
    Palette»String»String/Number Conversion).  Using these, you can then
    input the correct inputs:
    You can also parse strings with the string manipulation VIs (Functions Palette»String) if you need to.  I hope this is the information you are looking for, your application sounds like it could save a lot of time in the long run.
    Message Edited by Neal M on 11-28-2007 02:45 PM
    Neal M.Applications Engineering       National Instruments        www.ni.com/support
    Attachments:
    TDAQString.JPG ‏10 KB

  • Can one Root Bridge support multiple non-root bridges?

    Hey gang,
    I have a pretty simple question here I think
    I have a wireless bridge currently setup to support a separate office building on our property about 200 yards away from the main building.  The wireless bridge has been working great and was a much cheaper solution when compared to the cost of making a fiber drop to this building.  The needs of our business have changed (go figure), to include a warehouse building also on the backside of the property.  It's not feasible to run a cable between these two building either.  So I need to create another wireless bridge to this back warehouse as well.  My question is can I just use another non-root bridge to link to the root bridge already in place, or does each wireless bridge require one root bridge and one non-root bridge?
    I have good LoS to both buildings from where the current root bridge is, so if two non-root bridges can talk to one root bridge I should be able to just an additional non-root bridge and be good to go.  But if wireless bridges are meant to be a one to one setup, then I'll need to setup an additional root bridge to link to the new non-root bridge?
    It seems like you should be able to have one root bridge link to multiple non-root bridges but I haven't been able to find any clear examples of this being done.
    Thanks in advance for the help!

    That was just too easy.
    I copied the configuration from the working non-root bridge to my laptop.  I changed out the ip address of the BVI interface.  I uploaded the configuration to the new 1300 bridge.  I plugged it in and pointed the yagi antenna in the general direction of the original root bridge and started pinging the new 1300.  Success!
    I'll use my spare 1300 to get service up and running in the warehouse by the end of the week and I'll just need to order one more 1300 to make sure I have spare on hand if needed.
    Thanks again!

  • Fastest way to read and write to/from muliple DAQ channels

    I'm developing an application in which multiple DAQ channels will be monitored, for example, displacement, load, strain, temperature and so on. My question is what is the fastest and most efficent way to check the value of these inputs, compare them to user inputs and then decide whether or not to write a different voltage to an output. I'm using LV 7.1 on Win 2000.

    I guess my first question would be are all these channels going to be on one card? Are you going to just make single measurements (are you interested in instantaneous values vs. "waveforms")? Doing a "Sample channels" for instance will make a single measurement of several channels (on the same board) and present you with an array of the resulting data, one element per channel. How fast do you need to sample, are all of the signals going to be on the same board? The latest NI-Daq allows configuring tasks that mix channel types (T'couples, straight voltage measurements, etc.) which makes configuring the DAQ easier.
    If you can give us a little more information regarding what you are trying to accomplish it will help.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • PC able to detect all except for the analog output channel of my SCB-68 device.

    I would like to use the analog output channel of my SCB-68 device. I tried to locate the analog o/p using the wizard but still unable to detect. Why is that so?
    Any possible steps/procedure that i have missed out?
    Thanks

    Rezn,
    Aha, therein lies the problem. This was what I suspected, and thus my question as to which data acquisition card you are using. The DAQCard-AI-16XE-50 has analog inputs, digital I/O, but no analog outputs at all. So your card is working as it should, but it has no analog outputs.
    If you have the 2002 National Instruments catalog, you can see this in a table on page 231 (your DAQ card is the one on the bottom), or check this pdf file:
    http://www.ni.com/pdf/products/us/2mhw254-255e.pdf
    Your card is also called the NI6012E. Check out the small table on the first page.
    Mark

  • DAQ channel name control empty

    I'm having the problem that virtual channel names don't appear in DAQ channel name controls or constants. The proper channel type is selected, but nothing appears. I'm also missing a couple of contextual menu items on the control, such as add channel and edit channel. Any ideas?
    I'm using MAX 3.0, DAQ 6.9.1f28, and Labview 6.0.3. A different system with MAX 2.1.3.14 works fine

    MAX 3.0 ships with the NI-DAQ 7.0 driver. You should not be using MAX 3.0 with the older 6.9.1 driver. I would recommend using the MAX version which ships with the NI-DAQ 6.9.1 driver. If your working system is identical with respect to NI-DAQ and LabVIEW versions, then I would recommend using MAX 2.1 with the non-working system as well.
    Regards,
    Justin Britten

Maybe you are looking for