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.

Similar Messages

  • Displaying multiple analog input channels using DAQmx READ commands.

    I am using a NI USB-6009 module in a hydraulic load test stand.  I want to read multiple analog voltage inputs and display them on my front panel.  Using DAQmx commands or DAQ assistant, LabVIEW will only let you have one READ command for the analog inputs.  Can someone point me to an example or give me some ideas on being able to display at least 3 analog inputs?  Thanks.

    With the DAQ Assistant, when you get a list of 'Supported Physical Channels', look at the bottom of the window. It says "<Ctrl> or <Shift> click to select multiple channels. When you use the DAQmx Create Channel and have a physcial channel control/constant, click the little arrow on the right side of the control/constant, select browse and use the same <Ctrl> or <Shift> click technique. If you want to enter the channels manually, the format is Dev1/ai0:2 for consecutive or Dev1/ai0,Dev1ai3 non-consecutive channels.

  • Usb 6009 multiple analog inputs

    I am currently attempting to sample two different analog inputs at different sampling rates using a USB 6009.  I keep getting the 'resource reserved' error and am wondering if this is not possible using this DAQ.  Questions:
    1.  Does creating two analog input channels on the device cause this error?
    2.  Is it possible to sample at different rates on channels created in the same task?  (i am trying to 'slow down' the second analog input to display switch points to a customer)
    3.  Running multiple analog inputs using independent timing would be better achieved by switching to a higher end DAQ?  If so which would you recommend?
    I have attached my vi.  Thank you in advance for your help. 
    I surf therefore I am....
    Attachments:
    demo_nolvl.vi ‏27 KB

    The DAQ boards only have 1 timing clock for the analog inputs/outputs.  So you can only have 1 sample rate on a given card.  I would recommend just sampling at the highest of the desired rates in a single task.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Synchroniz​ing two counter frequency inputs with multiple analog inputs

    Hello all,
    I'm fairly new to LabVIEW and I'm trying to collec​t data from multiple sources with synchronized tim​ing on the acquisition but I'm having trouble figu​ring it out. My problem is that I've got two count​er frequency inputs, one optical tachometer readin​g one pulse per revolution, and a max machinery fl​ow meter with a k factor of 12000. I can't seem to​ figure out how to sync the timing with my multiple analog inputs. I've be​en attempting to get the tachometer  to sync with ​the analog inputs first by following the example l​inked here. (https://decibel.ni.com/content/docs/DOC-10785) So far each time I run it I either get a timeout e​rror on the DAQmx read or a "Multiple sample clock​ pulses were detected" error (see attached image).  It seems if I slow the sampling rate way down to ​say 10 hz and ensure that the tachometer signal is​ over 800-1000 RPM (13-17 Hz) before starting the VI then the program will run without errors until ​the RPM drops below that threshold then the "Multi​ple sample clock pulses" error occurs.  The code is attached below.
    Does anyone know of a more effective way of syncin​g counter frequency inputs with analog inputs?  I'd like to have a VI that can show 0 RPM (and ev​entually 0 flow as well, but I think I need to fig​ure out the timing of one counter before I add ano​ther as it seems I can't have two counters in the ​same task). Any help on this would be greatly appr​eciated.
    LabVIEW version 13.0
    cDAQ-9178 Chassis with NI 9401 for the two counter inputs and NI 9205 for the analog inputs.
    Thanks!
    Richard
    Solved!
    Go to Solution.
    Attachments:
    SimpleDAQ.vi ‏44 KB
    LV_Error.JPG ‏31 KB

    Maybe third times the charm? 
    So I've finally got a good handle on why the VI is having problems at low RPM though I'm somewhat embarassed how long it took me to do that
    Because I have the counter time synced to my Analog input task if it doesn't see at least two pulses between the two clock pulses set by the analog input task I get the -201314 "Multiple sample clock pulses" error. This seems fine at first as it just sets a minimum RPM that I can measure and it's well below the area I'm interested in so no problems there.  I tried a simple error handler that would clear the error when it happend assuming the loop would keep iterating until the RPM went above that minimum at which point I would get a signal again. This is not the case, the read function just continues to spit out the -201314 error even after the RPM is back in the readable range. So then I tried adding two case structures so that when the error occured it would stop the task, clear the error, and then start the task again on the next loop iteration (Code Attached). This also doesn't work as the error shows up again on the stop task and then AGAIN on the start task on the next loop iteration. It seems this error is not actually being cleared and once it happens it stays with the task regardless of what the error cluster is carrying. 
    Anyone have any ideas?  The only solution I can think of is to just clear all tasks and recreate them each loop iteration until the RPM is readable again but that strikes me as a horribly clunky solution.
    Richard 
    Attachments:
    SimpleDAQ_1_Start Stop.vi ‏48 KB

  • Multiple Wireless Mighty Mouses Near Each Other

    Can there be multiple wireless mouses close to each other without affecting the other computer?

    I do not have two MMs, but I have used my MM along with my Logitech MX900 BT mouse with no problems.
    As the other poster noted, they each get paired separately.
    Also once an MM or other BT mouse is paired with a machine, it will require re-paring with another machine if you chose to use the mouse with the other machine. At least that is my experience - a mouse can only be paired with one computer at a time. But there is no limit, AFAIK, to the number of mice you can use on a single computer.

  • Writing more than 16 analog input channels into a single file

    In DasyLAb 10.0, how can I WRITE more than 16 analog input channels (using WRITE DATA block) in one single file? I do not want to use 2 WRITE blocks, as I want all my data samples in one single file.

    Another few questions:
    In the merge block, what is the difference between Blockwise mode and Sample mode?
    Also, now that I am using the Merge blocks (2 inputs to 1 output) to combine my analog inputs; how would I have to modify my WRITE block so that I can ultimately obtain both my inputs to be written in the same file in seperate columns. Could you please explain the settings I need to make on the WRITE block.
    Thanks!

  • Run two counters simultaneously with out affecting each other

    Hi
    I am new to labview. I am trying to figure out how the two counters/ timers( one is nongateable standard timer and another is standard timer which is software based) run simultaneously. I created it in different while loops. Is it possible to create two counters in single loop with out affecting each other?

    Hi Pavani,
    Welcome to the forums!  As a new LabVIEW user there are many helpful resources out there to get you started.  I would like to point you to the two links in my signature.  The first is a six hour LabVIEW course and the second helps you learn DAQmx.  Also take advantage of the shipping examples.  When you open LabVIEW select Find Examples to open the Example Finder.  Assuming you are using DAQmx, you can go to Hardware Input and Output>>DAQmx>>Counter Measurements and find many useful example programs that either do what you want or can be modified to perform the task you desire.
    To answer you question, two counters in the same loop do not affect each other.  The counters will gather data separately.  By putting them in the same loop, you just perform the reads in software at the same time.
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx

  • Connector block 16 analog input channel for 6036E

    sugesst me connector block of 16 analog input channels compatible with 6036E daq card

    Thanks for contacting National Instruments.
    You really have two choices in connector blocks: the SCB-68 and the CB-68LP. The CB-68LP is inexpensive, but unshielded. If you are concerned about introducing noise into your signal, or if you are talking small measurements (mV range), then the shielded option, the SCB-68, will be better for you.
    Regards,
    Mike G.
    National Instruments Support

  • How to trigger from analog input channel

    I am using a BNC-2110 into a 6062E card. And I am sure this question has been posted several times but I was unable to find a clear answer. I am trying to use the devices ai0 channel as my trigger source. I tried using a voltage source in the trigger reference, and that almost works but it only works for several loops before coming up with an error. If someone knows what I may be possiblely doing wrong or where to find this information, any assistance would be great.
    - there is always an easy way, but it is always the hardest to find

    Hey Henry,
    The BNC-2110 is just the connector block. What card do you have the is interfacing this block with your computer? (should be a PCI or PCI-express card). Are the GPS receivers outputting digital signals that conform to TTL compatible logic levels (are the signals 5V or 0V with no more than 1.6mA of current)? If they are outputting a digital signal, then you can send these signals into any of the PFI lines to act as a trigger (or to the trigger lines). 
    For example, if you would like to perform an analog acquisition each time the trigger hits and have an X series card, you can open up example finder (help»find examples...) and then open Hardware Input and Output»DAQmx»Analog Measurements»Voltage»Cont Acq&Graph Voltage-Int Clk-Retriggerable.vi. Then make sure your Trigger Source parameter is set to the same PFI line that you are sending your GPS signal to (on the BNC-2110, the trigger connections are really just PFI0 and PFI12, but these are common lines to use for triggers, but any PFI line will work). If you have an M series card, and cannot do retriggerable analog input, you can reference this example for how to use counters to workaround this limitation of our M series cards: https://decibel.ni.com/content/docs/DOC-6801
    If your GPS signal isn't digital, and is some arbitrary analog square wave, you can use an example like this: https://decibel.ni.com/content/docs/DOC-4657 to use the analog value to trigger you're reading (you just need to set the appropriate window for your analog signal in the VI).  I hope this helps!
    -Nathan H
    Software Developer
    National Instruments

  • In FCPX can I stack clips of multiple angles on top of each other and choose what parts I want to make my movie out of?

    Hi there
    I'm debating whether to purchase FInal Cut Pro X or not and I'm new(ish) to video editing.
    What I have done so far is produce a music video mimed to audio and shot at about 20 different angles. Each angle is the length of the ENTIRE song, not just snipets.
    What I want to be able to do is have those 20 videos sitting stacked up on top of each other (completely synced to the audio) and be able to choose what parts of what video I make my final video out of.
    So I want to be able to tell the system to start at angle 1, then at a specific time move to angle 6, then angle 19, then back to angle 1, then angle 16 etc etc etc.
    But I dont want to cut up the parts of each camera angle first, I want to be able to select a specific part to play from each ENTIRE camera angle.
    Is this possible please? And also what is the correct terminology for this process?
    I apologise for not using the correct terminology here, as I dont know the correct words for what I am trying to explain.
    Thanks

    FCPX mulitcam editing is the most advanced of any NLE on the market at the moment.
    Read the user manual here to learn how Multiclips work.
    http://help.apple.com/finalcutpro/mac/10.0.6/#ver23c76439
    You'll want to learn about how to work with Audio Channels with multiclips, also.  Very powerful.
    http://help.apple.com/finalcutpro/mac/10.0.6/#verc1fab5f6
    Here is my article on audio channels in Multiclips.
    http://www.macprovideo.com/hub/final-cut/final-cut-pro-multiclip-audio-channel-e diting-1006

  • Does XLA affect each other

    hello, chirs:
    recently, we found that they are two XLA process lock each other on systables. our ttversion is tt7.0.5.2. it doesn't happend on tt7.0.5.0. thank you.
    [E] [27084113:639416] [TTRestore] xlaconn.ackUpdates(my_stat) Failed:*** TT6003: Lock request denied because of time-out
    Details: Tran 74.1022803 (pid 946938) wants Sn lock on table SYS.TRANSACTION_LOG_API. But tran 72.35096220 (pid 266278) has it in IX
    n (request was IXn). Holder SQL () -- file "lockMgr.c", lineno 8898, procedure "sbLockENQandCheckTbl()"
    Edited by: user578558 on 2009-11-26 下午6:55

    Thanks for your reply; I have some more questions to help me better understand the dynamics of your usage of XLA:
    1. Are you using the default value (10 seconds) for SQL lock waits? i.e. have you specified a different value explicitly in either the DSN/connection string (parameter name is LockWait, units are seconds) or has your application changed the value dynamically via a call to ttLockWait()?
    2. When/how often do you call xlaconn.ackUpdates() ? Do you call it every time through the loop that includes xlaconn.fetchUpdatesWait() or only under certain conditions?
    3. How many transactions do you process typically between calls to xlaconn.ackUpdates() ?
    4. Do you call xlaconn.ackUpdates() even if xlaconn.fetchUpdatesWait() does not return any records?
    Thanks,
    Chris

  • Why differnent channel can affect each other in voltage measurement using 2532

    I use PXI 2535 to measure lots of channels (connected with electrodes) voltages using the sample vi: niswitch DMM swtich synchronous scanning.vi. Among these channels, one channel was  -0.6V and other channels were about -1.0V. But after running the vi, the -0.6V turned into about -0.9~-1.0V. It is very strange. I connected another electrode (-0.6V) to a channel (all other electrodes still connected), whether I used the soft front panel or the sample vi its voltage all turned into about -1.0 V. I didn't find this phenomenon when I used 2532 finished the above measurement. I suspect there was current flew between channels with high and low voltages.    
    The red line (HI) was connected to r0, and the black line (LO) was connected to a reference electrode. The V diffence between different  channel vs the reference V were recorded.
    When I measure voltages with low difference (lower than 100-200mV), each voltage can be measured correctly (using 2535).
    thanks advance
    小木虫
    Solved!
    Go to Solution.

     I used a setup shown in Fig. 1 to measure potentials of 121 electrodes (120 zinc wire and 1 iron wire, 1mm in diameter, embedded in epoxy resin, each electrode allowed one surface exposed) in NaCl solution against a reference electrode (with a constant potential). The HI line of DMM was connected to r0 and the LO line was connected to the reference electrode.  
    Fig.1
    These 121 electrodes were connected to the terminal of 2535 with 5 pin Ribbon cables, each of which has 25 lines.Generally, the potential of Zn is about -1.1V and -0.5-0.6V of Fe in NaCl solution. I used the niswitch DMM switch synchronous scanning.vi, sample of LV8.5 to measure these potentials. But I found that the potential of Fe was about -1V, which was similar to that of Zn. This did not occur when PXI 2532 was used. I used a portable DMM to measure the potential of Fe in the 121 electrodes and the results was -0.56V whether I run the sample vi or not. Then I suspected that the switch bring some effects on the measurement.To clarify this problem, I connected a Fe wire to c135 channel (as shown in Fig.1) and measure the influence of other 121 electrodes on the potential measurement of the c135. 1. I did not connect pin Ribbon cables to the switch and used the DMM waveform demo to express the potential of the c135 channel evolution. I opened the soft front panel of the switch and made the c135 connect to r0, which was connected to the HI line of the 4071. When the demo was run, the potential was constant and about -0.56V, as shown in Fig. 2.  
    Fig.2
    2. I connected one pin Ribbon cable (25 zinc wire connected to switch terminal). When the demo was run, I found that the potential was constant and about -0.56V, as shown in Fig.3.  
    Fig.3
    3. When two pin Ribbon cables (50 zinc wire connected to switch terminal) were connected to the switch, similar result was obtained, which was shown in Fig 4.  
    Fig.4
    4. When three pin Ribbon cables were connected to the switch, the potential of c135 fluctuated, which were shown in Fig 5 a-c.
    Fig.5 (a)
    Fig.5 (b)
    Fig.5 (c)
    We conclude that the number of the Zn wires have an effect on the Fe potential measurement using PX I 2535. But why not using PXI 2532 ?We also found other interesting phenomenon: when one or two pin Ribbon cables were connected to the switch (25 or 50 wire electrodes connected to the 2535), the waveform of the potential of c135 (Fe wire) can be affected by the nearby body action, e.g. stand up and sit down, go by the test table. The waveform changes were similar to the Fig.5.  I’d like to know the reason for this phenomenon and how to prevent it? Thanks advance.
    Attachments:
    problem about measurement.pdf ‏113 KB

  • Multiple chart effects conflicting with each other

    Hello all!  
    Issue Description:
    -  Two chart series of two different series types (mx:ColumnSeries and mx:LineSeries)
    -  Trying to run two different chart data effects (mx:SeriesZoom and mx:SeriesSlide) simultaneously 
    -  Having some sort of conflict
    My application is more complex than this, but this is a good example of the type of thing that's happening on our chart when the data provider changes:
    1)  Please compile and run the following code.  
    2)  Then click the button at the bottom of the application.
    3)  Notice how after the line series gets removed, it appears for a second, then disappears without using its hide and show effects.  Then it reappears, but this time using the appropriate chart data effect.
    Can anyone tell me how to fix this?
    Thanks,
    Anton
    -----------------------------   THE CODE:  -------------------------------
    <?xml version="1.0"?>
    <!-- charts/MultipleSeries.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%"
    height="100%">
      <mx:Script>
        <![CDATA[
             import mx.collections.ArrayCollection;
            [Bindable]
            public var SMITH:Array = [
               {date:"22-Aug-05", close:42.87},
               {date:"23-Aug-05", close:45.74},
               {date:"24-Aug-05", close:48.77},
               {date:"25-Aug-05", close:44.06},
            [Bindable]
            public var DECKER:Array = [
               {date:"22-Aug-05", close:49.59},
               {date:"23-Aug-05", close:45.3},
               {date:"24-Aug-05", close:43.71},
               {date:"25-Aug-05", close:47.88},
            public var year:int = 1;
            public function changeProvider():void {
                if (year == 2) {
                    lineSeries.dataProvider=DECKER;
                    colSeries.dataProvider=SMITH;
                    b1.label="View Second Year Data";
                    year=1;
                } else {
                    lineSeries.dataProvider=SMITH;
                    colSeries.dataProvider=DECKER;
                    b1.label="View First Year Data";            
                    year=2;
        ]]>
      </mx:Script>
      <!-- Define chart effects -->
        <mx:SeriesSlide 
            id="slideIn" 
            duration="1000" 
            direction="right"
        />
        <mx:SeriesSlide 
            id="slideOut" 
            duration="1000" 
            direction="left"
        />
        <!-- Define chart effects --> 
      <mx:SeriesZoom id="zoomOut" 
         duration="2000" 
         minimumElementDuration="50"
         elementOffset="50" 
         verticalFocus="top" 
         horizontalFocus="left"
         relativeTo="series"
      />
      <mx:SeriesZoom id="zoomIn" 
         duration="2000" 
         minimumElementDuration="50" 
         elementOffset="-50" 
         verticalFocus="top" 
         horizontalFocus="right"
         relativeTo="series"
      />
      <mx:Panel title="Multiple Data Series" width="100%" height="100%">
         <mx:ColumnChart id="myChart"
            dataProvider="{SMITH}"
            showDataTips="true"
            height="100%"
            width="100%"
         >        
            <mx:horizontalAxis>
               <mx:CategoryAxis categoryField="date"/>
            </mx:horizontalAxis>
            <mx:verticalAxis>
               <mx:LinearAxis minimum="40" maximum="50"/>
            </mx:verticalAxis>
            <mx:series>
               <mx:ColumnSeries
                         id="colSeries"
                    dataProvider="{SMITH}"
                    xField="date"
                    yField="close"
                    displayName="SMITH"                   
                    showDataEffect="zoomIn"
                    hideDataEffect="zoomOut"
               >
               </mx:ColumnSeries>
               <mx:LineSeries
                         id="lineSeries"
                    dataProvider="{DECKER}"
                    xField="date"
                    yField="close"
                    displayName="DECKER"
                         showDataEffect="slideIn"
                         hideDataEffect="slideOut"
               >
               </mx:LineSeries>
            </mx:series>
         </mx:ColumnChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>    
      <mx:Button id="b1" click="changeProvider()" label="View Second Year Data"/>
    </mx:Application>

    This seems to work, how cool!
    <mx:SeriesSlide 
        id="slideOut" 
        duration="1000" 
        direction="left"
        effectEnd="lineSeries.visible=false"
    />
    <mx:SeriesZoom id="zoomOut" 
        duration="2000" 
        minimumElementDuration="50"
        elementOffset="50" 
        verticalFocus="top" 
        horizontalFocus="left"
        relativeTo="series"
        effectEnd="lineSeries.visible=true"
    />

  • Selecting Multiple products with relationship with each other....

    Hi All,
    I have a requirement to Add products under oppty product revenue based on following logic
    1) First selection: Select Parent Product.....dropdown...single selection
    2) Second Selection: Select Additional Product....associated to Parent Product.....multi select.
    Any idea to achieve this.
    Regards...VK

    VK, I would recommend that you submit a enhancement request to CRM On Demand customer care.

  • PXI-6230 analog input trigger setup

    Hi,
    Can anyone point me in the right direction of how to configure the PXI-6230 card to implement 3 of the analog input channels as a digital input trigger? The input to each channel is TTL pulses. I want to have a trigger event on every pulse from any of the three inputs. I'm using LabVIEW 8.5. Any help is appreciated. Thanks.

    Hey HarveryL,
    I'm not sure it is possible to do this. Can you give me some more details on your application, and why you want to use the analog inputs as a digital trigger? Here is an article on how to use PXI triggers with the analog input and output, perhaps you can adapt that code to your purposes. I'll continue to look into this for you, but any more information you can provide would be appreciated. Have a great week! 
    John B.
    Embedded Networks R&D
    National Instruments
    Certified LabVIEW Developer

Maybe you are looking for