Multiple channels switch scanning DMM

Hi,
I am using DMM (NI PXI  4071) and switch (NI TB 2627). I want to do the measurement by scanning one channel then start to measure, after that go to another channel and start to measure again (so called syncronous).
But, I have problem in my code to display the output of each channel. I just can show the output of channel 0 only.
Here I attach my code. Instead of displaying the output of the channels, actually it only can show the output of channel 0 according to how many samples that I want. That's why I try so hard to show output of others channels.
anyone can help?
Thank you for your help.=)
Sorry my code is very messy.
Solved!
Go to Solution.
Attachments:
try.vi ‏144 KB

Thanks for the response.=)
Yeah... that's my bad.. I just notice that mistake.
But actually I have change the code to become like this. (see attachment)
I'm pretty sure that if I can handle the error, then I can see the output of each channels based on the physical channel that I want.
But now, I cant figure out the error. Because it keeps saying that it's channel based task only though I already follow the example how to use daqmx create channel and daqmx read.
Attachments:
try6.vi ‏196 KB
ERROR.JPG ‏117 KB

Similar Messages

  • Multiple scxi 1127 switches scanning, dmm 4070

    Hi,
    I am using 2 switches SCXI-1127 in a PXI/SCXI combination chassis. The readings are done through a dmm 4070.
    I need to scan 60 thermocouple channels, i.e. 32 on the first one and 28 on the second switch. Now, I found http://zone.ni.com/devzone/cda/tut/p/id/3658 stating that a scanning multiple SCXI switches is using legacy DAQ functions in niSwitch for these specific siwtch cards (1127).
    What version of niSwitch was it? Is it still true now? Why is that? Or should I use the new way using DAQmx?
    thank you
    alex 

    Hi Alex,
    This is still the case with NI-Switch 3.3.1.  Due to hardware limitations, scanning multiple SCXI-1127 modules is not a simple task with the NI-Switch driver.  I would recommend using the DAQmx example "DAQmx Multi Switch Synch.vi" if you are performing synchronous scanning.  I have taken a screen shot of the front panel of a working VI to help get you started.
    In general, it is more efficient to use DAQmx when scanning multiple switches.  When using NI-Switch to scan multiple switches, it is necessary to maintain a session for each switch module.  When using DAQmx Switch, you need only open one task.  Using DAQmx Switch increases programming efficiency, keeping your code neat and maintainable.
    If you need further explanation or if you have further questions, please let me know!
    Chad Erickson
    Switch Product Support Engineer
    NI - USA
    Attachments:
    synchronous scanning.JPG ‏136 KB

  • What is the recommended way to do multiple channel, single point sampling for control with an NI PCI-6255 in RLP?

    Hello,
    I am writing a driver for the M-series NI PCI-6255 for QNX. I have downloaded the MHDDK and have all the examples working. I have also enhanced the examples to do interrupt handling (e.g. on AI_FIFO interrupt or DMA Ring Buffer interrupt). My ultimate goal is to write a driver that I can use for closed-loop control at 500 Hz using all 80 channels of the NI PCI-6255. I may also need to synchronize each scan with a NI PCIe-7841R card for which I've already written a driver. I want an interrupt-driven solution (be it programmed I/O on an interrupt or DMA that generates an interrupt) so that the CPU is available to other threads while the 80 analog inputs are being read (since it takes quite a while). I also want to minimize the number of interrupts. Basically, I will need to collect one sample from all 80 channels every 2 milliseconds.
    There are many different options available to do so, but what is the recommended technique for the NI PCI-6255 card? I tried using the AI FIFO interrupt without DMA, but it seems to interrupt as soon as any data is in the AI FIFO (i.e. not empty condition), rather than when all 80 channels are in the FIFO, so more interrupts are generated than necessary. I tried using DMA in Ring Buffer mode to collect a single sample of 80 channels and interrupting on the DMA Ring Buffer interrupt, which appears to work better except that this technique runs into problems if I cannot copy all the data out of the DMA buffer before the next AI scan begins (because the DMA will start overwriting the buffer as it is in ring buffer mode). If the DMA is not in ring buffer mode or I make the ring buffer larger than one 80-channel sample then I don't have a way to generate an interrupt when one sample has been acquired (which I need, because I'm doing control).
    I saw something in the documentation about a DMA Continue mode in which it looks like you can switch between two different buffers (by programming the Base Count/Address with a different address than the current address) automatically and thereby double-buffer the DMA but there is no real documentation or examples on this capability. However, I think it would work better than the Ring Buffer because I could interrupt on the DMA CONT flag presumably and be copying data out of one buffer while it is filling the other buffer.
    Another option would be DMA chaining, but again, I cannot find any information on these features specific to the NI DAQs.
    I tried interrupting on AI STOP figuring that I could get a single interrupt for each scan, but that doesn't appear to work as expected.
    I know that DAQmx on Windows has the ability to do such single sample, multiple channel tasks at a fixed rate so the hardware must support it.
    Any suggestions would be appreciated.
    Thanks.
    Daniel Madill

    Hello,
    The interrupt that will happen nearest the times that you need is the AI_Start_Interrupt in the Interrupt_A group. This interrupt will occur with each sample clock. By the second time this interrupt fires, the AI FIFO should have the samples from the first conversion. If it is easier to use programmed IO, you can read the samples out of the FIFO until you get all 80.
    Additionally, you can set the DMA to send samples as soon as the FIFO is no longer empty...instead of waiting for half full or full. This change will reduce latency for your control loop. You can set AI_FIFO_Mode in AI_Mode_3_Register to 0. By the second time this interrupt fires, you should be able to check how much data is in the DMA ring buffer and read the 80 samples when they are available. You can make the ring buffer larger than 80 samples if you see data getting overwritten.
    There is no interrupt associated with 80 samples being available in the FIFO or 80 samples being available/transferred by DMA to the host. X Series has much more flexibility with these interrupts.
    I hope this helps!
    Steven T.

  • Data acquisition from multiple channels.

    Hello
    Right now, I am able to acquire the signal from a single load cell and display it.But I would like to know of how to acquire  acquire signals from two load cells simultaneously.I am using Labview 6i and I am using AI S-Scan with AI config to acquire the waveform.It would be of great help if you could suggest a simple method to acquire the signals.
    PS: Please find the attached file used for acquisition from a single load cell.
    Looking forward for your reply.
    Manasa
    Attachments:
    test 4.vi ‏102 KB

    Hi Manasa,
    If I understand what you are trying to do, it is relatively
    straightforward to configure your application to acquire data on two channels.
    I was unable to run your vi as it was missing some of the subVI’s
    from your application.  However, your
    attachment was sufficient to see what you are trying to do. 
    Here is how to add channels:
    1.      
    In the I/O Channel Constant, you can add
    additional channels by using a comma or a semi-colon.  For example, to scan the first four channels
    you would put 0:3 in the constant (see attached screenshot ChannelConfig.jpg).  To scan the first and third channel you would
    put 0,2.
    2.      
    The AI Single Scan VI will now read from
    multiple channels.  Often it easiest to
    configure the output of this VI for viewing by first putting the data into an
    array using the Build Array VI.  It can
    then be plotted in a waveform graph. (see attached screenshot ReadtoGraph.jpg
    and WaveFormGraph.jpg)
    Just a few notes about “simultaneous” sampling:
    Most of the NI data acquisition cards have a multiplexer
    between the various input channels and the Analog to Digital (A/D) converter
    creating a very small delay between each channel (usually ms range or
    smaller).  NI does make several data acquisition
    cards that can perform true simultaneous sampling, meaning that there is an A/D
    converter for each channel.
    For the large majority of applications, the small delay
    between channels is negligible.
    Jared T.
    Attachments:
    ReadtoGraph.JPG ‏21 KB
    ChannelConfig.JPG ‏288 KB
    WaveFromChart.JPG ‏61 KB

  • Multiple channels acquisition and Number of samples per channel

    Hi,
    I'm a new labview user and I need some help in trasposing an old traditional NI-DAQ acquisition software in a NI-DAQ-mx one.
    I followed the tutorial (#4342) but I found a problem with Analogue 2D DBL Multiple Channels Multiple Samples DAQmx Read Vi.
    I'm trying to acquire 8 voltage signals from a NI-USB-6341 device. When the Number Of Samples Per Channel I set is below the number of channels (8), the software acquires only a number of channels equal to the number of samples per channel I set.
    Is that a normal behaviour?
    Thank you
    Daniele

    This is my code. The problem is the same with or without the code for the scan backlog indexing.
    Tomorrow I will try with the code from the example.
    Thank you
    Daniele
    Attachments:
    acq code.jpg ‏119 KB

  • Steps to create a VI to read multiple channels

    This is the first time I've used LabView.  I want to create a VI to be able to read viltages from multiple channels and output the value of each channel to individual numeric indicators in the VI.  I know how to read a single channel and I've created a task in DAQmax with multiple channels but how would I put that into a VI that will do what I need.
    Thanks,
    Albert

    Assuming you are using the DAQ Assistant and getting one sample per scan, then you just use the Split Signal and wire the outputs to your indicators.
    Message Edited by Dennis Knutson on 04-30-2007 09:49 PM
    Attachments:
    Split Signals.PNG ‏4 KB

  • How to define a trigger to start a switch scanning task

    I am writing a program in LabWindows/CVI using DAQmx library which handles PXI-2567 card. I have created a new switch scanning task, by the function DAQmxSwitchCreateScanList, that uses the specified scan list. I would like to start this task synchronously with the signal generated on one of trigger line. I thing, that this is possible using DAQmxSetTrigAttribute function where I can define the trigger type to start the task. Unfortunately, it only allows setting the type of trigger but is not clear for me, how can I set the source and edge type for the signal which will start the task.
    Best regards,
    Miroslaw Koziol

    Hi Ion,
    Below I will try, most clearly as I can, present a problem which I was struggling.
    I have a system that consists of 3 PXI modules: PXI-4461, PXI-6653 and PXI-2567. One digital-to-analog channel on PXI-4461 generates sinusoidal signal which supply my DUT. I need to measure 2 voltages on DUT by one analog-to-digital channel on PXI-4461 (I know that PXI-4461 has 2 analog-to-digital channels but for various reasons such an approach cannot be applied). Each of the voltages must be measured by the integer number of periods and it has to be done continuously (for example 8 periods of one voltage and 8 periods of second voltage and so on). Therefore, a DDS on PXI-6653 is used to generate the signal which frequency is integer times smaller than the frequency of the supply signal. This signal is routed through the trigger line to PXI-2567 and controls the switch which alternately joins the measured signals to the analog-to-digital channel of PXI-4461.
    The signal on DA channel must be generated continuously so this task is started and does not stop until the application is closed. Moreover, the generation is started synchronously with the rising edge of the signal generated by the DDS on PXI-6653. It is easy to start this task synchronously to the signal generated by the DDS because on PXI-4461 module a specialized trigger line for analog outputs exists.
    The measurements done by the AD channel on PXI-4461 are started and stopped by the user of application. The start has to be done synchronously with the DDS signal. This is also not a problem because on PXI-4461 module a specialized trigger line for analog inputs exists. Unfortunately, I do not know how to start a switch scanning task in the same moment of time when the measurement task is started. If I do not do start these two task together I do not know which voltage samples I receive in my application.
    Therefore, I need to know if is it possible to assign a trigger line to start the switch scanning task and set the source and edge type for this signal.
    Best regards,
    Miroslaw Koziol

  • Multiple channels displayed in curves

    Is it possible to simultaneously diplay multiple channels side-by-side with their respective curves and histograms when making curves adjustments?  --Not just simply overlaid upon each other in a single grid.

    No. I'm not even sure what that would be good for other than gobbling up tons of screen space, since it really doesn't tell you anything. It's one of the less endearing features in som color correction tools. Anyway, you have two redundant sets of keyboard shortcurts for switching channels inside such panels, and I'm sure that this allows switching fast enough to get whatever adjustments you need done just as quickly.
    Mylenium

  • Measuring Multiple channels at a time

    Hello All,
    I am new to Labview trying to measure voltages and currents from a
    synchronous generators using LabView7.1 abd PCI-MIO-16E-4. I want to
    measure all the three phase voltages all at a time so that I can see
    the phase difference between them. I modified an example for my purpose
    but it can measure only one channel at a time.
    Anyone please look into my file and modify it for multiple channels.
    Thanks in advance
    Venkatgill
    Attachments:
    Cont Acq&Graph Voltage-Int Clk.vi ‏330 KB

    Let me explain. Your board has a single A/D. There is a mux that rapidly switches between channels. It will take a sample from channel 0, then channel 1, then channel 2, and then start all over again. It will repeat until the total number of samples that you requested have been taken. The switching is very fast - on the order of usec, so you can take the 3 measurements but it is not truly simultaneous. Depending on the frequency and the accuracy of the phase difference you're looking for, this may not make a difference. You can also get the inter-channel delay and compensate for it.

  • How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar?

    How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar? Like something just wants me to use that embedded search when u type something not-web-address in address bar and hit enter. And the most ridiculous thing is that it happens repeatedly on like every second, like I just move down from address bar and start typing again, but then again it switches me to address bar, and 3, 4 times like that. And the result is also that I can't see the address of that page.
    I think its has something to do with my AVG antivirus, because this started the same time some AVG Nation started to appear in every new tab i open (and thats also irritating me, I read about it here on support.mozilla.org and it seems that the only solution is to completely reinstall Firefox, but I dont want to lose all my settings) but when i type something in address bar and hit enter it opens the search results in Google.
    Please try to help me, I like Firefox but I must switch to Chrome until I fix this problem.
    Thanks in advance

    First, please update to Firefox 32. 22 is no longer support nor is it secure. Then let us know if you still have this problem. [[Update Firefox to the latest version]]

  • How do I read multiple channels at one time using labview with the Fluke Hydra Data Bucket 2620a using serial port?

    I need to take a reading of 15 channels about once a second. I can read one value at a time using the monitor function on the read values.vi driver, but this takes forever to read all the channels.

    I don't have this instrument but I took a look at the instrument driver and it appears that you can only configure one channel at a time to read from. You might want to take a look at the command set for this instrument and see if it allows for configuration of multiple channels. It could be that the instrument driver just doesn't have that built in.
    J.R. Allen

  • How to Read from multiple channels

    Dear Sir
    I am acquiring data using FP-RTD-122 using OPC Client software. I ahve made one socket for that and i am using command
    CWDataSocket1.AccessMode = cwdsReadAutoUpdate
    CWDataSocket1.URL = "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-RTD-122 @1\Channel 0"
    CWDataSocket1.Connect
    v = CWDataSocket1.Data.Value
    where v is a variant type.But this is 8-channel RTD so how can i read values from all channels using single socket connection Because at presnt i have to use 8 sockets for all eight channels.

    At least as of FieldPoint 4.0 and earlier (I do not know about 4.0.1 or later), the OPC Server did not support multiple channel analog items. Thus to read all eight channels of a FP-RTD-122 module, you would need 8 separate socket connections. For discrete modules (boolean), the "All" tag, is treated as a single 8 or 16 bit number.
    Regards,
    Aaron

  • 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.

  • How would you apply different calibrations to multiple channels

    I'm attempting to apply calibration data to multiple channels. The calibrations could have been done at different times for different channels and could be using different fits. I think I have a solution for just applying the calibration information to one channel. I'm posting the solution for one channel in this post. In the next post I will include the multi-channel problem I'm working on. I had to add txt onto the initial file in order to post this.
    Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    Apply Calibration One Channel.vi ‏138 KB
    Initial.txt ‏1 KB

    Thanks for the links John. I just logged on to post my working solution so I haven’t had a chance to look at them yet.
    I’ve been working on this problem and have come up with the below attachment. I believe the logic is correct, but do not know if this is the most efficient way of doing this. I start by reading the calibration information in my ini file for only the channels that I am collecting data for. This is accomplished by the case structure enclosed in the for loop. The calibration values are stored as variables so I don’t have to read them with each data point I collect. I then start the data collection within my while loop. As I collect the data I pass it through a for loop where I apply the calibration curve to it and pull the calibration variables from the 2nd case structure. I’m using a for loop for this so I can index the wave files and apply the correct calibration information to each one. The channels and sections will be inputs to this vi from the choose channel vi.
    John I don’t know if this is better or worse than what you are suggesting. I will read the links you sent me.
    Does anybody have any comments on what I’ve put together?
    Thanks, Eric
    Attachments:
    Acquire and Transform Data.vi ‏209 KB

  • Counter to measure frequency with multiple channels (Analog In/Out) in one vi

    Hi,
    I am using DAQ 6062E. I have multiple channels: an Analog In, Analog Out, Count Edges, and Count Frequencies. Without Count Frequency, the program works fine, I have defined a Sample Clock for each channel and then a common sampling rate. When I add Count frequency channel, I am not able anymore to use Sample Clock, since I get an error that Sample Clock can not be used, and if I change the Sample clock of the Count frequency to Implicit, then I can not connect different channels with a same sampling rate. In the attached file, if the Count Frequency is not connected to any Sample clock and sampling rate, the program works, but now I can not run the program for more than 5-10 Hz sampling rate, otherwise I get the error: 209802 “occurred at DAQmx wait for next sample clock, slow down the sample clock”. Does anybody know how to fix this problem?   
    Thanks a lot,
    Azadeh
    Attachments:
    multiple channel.jpg ‏117 KB

    Hi Otis,
    Thanks for looking at the problem. I ran just two counters in a same vi. I was not able to use the Sample Clock since I needed to define an external sample clock source. The vi is attached. I could run this vi fast (200Hz). So, I am not sure why when two counters are combined with AI/AO the rate is very slow. I have attached three vi(s). Just two counters, AI/AO/1 counter, and AI/AO/2 Counters vis. I am able to run the vis in 200 Hz except the vi with AI/AO/2 counters (maximum sampling rate 20Hz). I appreciate if you can look at it if I am missing something.
    Thanks,
    Azadeh
    Attachments:
    AI_AO_2 Counter.vi ‏153 KB
    2 Counter.vi ‏61 KB
    AI_AO_1 counter.vi ‏138 KB

Maybe you are looking for

  • Satellite Pro M10 - start up problems

    Hi I have a Satellite Pro M10, only 2 years old, but has big start up problems at mement. The message that comes up when turning it on is: "Intel (R) Boot Agent FE v4.1.09 Copyright (C) 1997-2002, Intel Corporation PXE-E61: Media test failure, check

  • Maximum number of attributes in a session?

    Is there a limit to the number of attributes that can be placed in an httpsession? I can place 8 unique attributes before i get a servlet error and a nullpointer exception using Tomcat and the latest jdk.

  • Trim function on varchar2 data

    I just saw several programs, in which they have used TRIM function for a Varchar2 data type column. I thought it is not required. any thoughts? Thanks for your time.

  • E70 MMS won't send or receive

    I have an E70 phone but I cannot send or receive picture messages. My settings allow me to retrieve using cingular mms and I have no restrictions. When I create a new message, I insert the object and send. On my display it changes status to Resend. W

  • Up grading from a really old mini

    I'm bummed.  I just bought a new Mini (the inexpensive one) because my old MM is too darn slow. ( It's ancient, Mac OS 4.9, with a thirty five gig HD and 256MB of Ram.)  Now I find out that all my software (many thousands of dollars worth) is useless