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.

Similar Messages

  • 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

  • Multiple channel data with different time stamp logging

    I have peaks and valleys from multiple channels with different time stamp but I am not able to log to a single file. Any idea on how to do this?
    Attachments:
    Single Point Peak Valley Log.vi ‏53 KB

    Hi Dennis,
    Sorry for that I have modified the VI.
    Because the peak and valley of every channel will occur at different time and I want to log the peak/valley with the time stamp.
    How can I log them on the same file.
    Attachments:
    Single Point Peak Valley Log_Mod.vi ‏53 KB

  • Displaying real-time data using gui meter from multiple channels.

    I am using DAQ USB-6009 for my assignment. Part of my task is to display real-data from multiple channels in the form of gui meters.  eg. irradiance and voltage...
    I used a split signal to separate the signals from different channels coming out of the data output terminal of the DAQ assistant. The problem is that I do not know which vi to connect in between the split signal and the gui meter. I am looking for one vi that is capable of handling signals (measurement)  and outputting the data to the gui meters simultaneously and individually based on the channel they are coming from.

    Thnx for your tip, Dennis.
    However, I have another problem that just occurred to me when my VI manages to execute as I wanted.
    I noticed that the needle on my gui meter will only "appears" to be responding to every changes to its input when I have set it to run continuously and the only way to stop it is via abortion which might leave the resources (eg. external hardware) in unknown state. Is there any safer and workable ways to organise the VIs using while loop?
    I have placed my DAQ assistant, write to measurement file (vi), add function, split signal and gui meters all in 1 single while loop.
        DAQ-------> write to measurement file
                 |
                 |                                                 ​                   |--------------------------------> add function----> gui meters
                 ---------------------------------------------> split signals ---|--------------------------------> add function----> gui meters
                                                      ​                                |--------------------------------> add function----> gui meters
    If I do the following steps,
    1. press run continuously to start the VI
    2. click the same button to disable continuous run when the VI has completed its task.
    3. click the stop button in the front panel to stop the while loop
    Does doing these steps ensure that I will not leave resources in unknown state? Is it a safer way to stop a VI which is running continuously?
    Pardon me for I am new to LabView. Even though, I have read the user's
    manual and tried out all the execises, there are some concepts that I
    need clarification on and mistakes that I need to discover through more hands-on.

  • 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

  • Save multiple channels to binary?

    I am trying to save multiple channels of analog signals measured using DAQ express. I want to save the waveforms to binary and be able to read them back to re-create the waveforms at a later time. I have tried writing the waveforms to binary as dynamic data and as arrays. Neither seems to work. I am not sure if my problem is how I am saving/writing the data or how I am trying to read it back. What is the best form to use to write the data and how should I read it back?

    Hi VCUBME,
    LabVIEW is shipping with some good examples that show how to store your data effectively using binary files or datalog files. Please try the "Write Binary File.vi" with the "Read Binary File.vi" for an exaple of storing simple arrays. If you need to store more complex data as for example clusters, then refer to the "Write Datalog File Example.vi" and "Read Datalog File Example.vi".
    Have fun!
    - Philip Courtois, Thinkbot Solutions

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

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

  • 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

  • Multiple channel sampling and write file

    Hei,
    I wrote a interface which is supposed to allow me to plot multiple channel and write all those datas in a file ; The problem is that :
    1- not all the curves are plot in my graph (in fact just one is ploted).
    2- At the same time it write in a file but after some times it stoped due to an error : buffer size...related to the offset.
    I have attached the vi, I don't understand exactly where those problems are comming from and how to solve them easily.
    Thanks for the help
    P.
    Attachments:
    project.vi ‏207 KB

    Hi thanks those tips. In fact I had solved those problems mentionned above ; I have alomst finish my interface except that I am trying to write all my datas in a file , in column (all channels) and create a first column at the time (maybe from the sampling time). The problem is that I don't know the output fomat of the "analog 2D DBL" vi and it seems that my way of writing datas time step per time are not right. have you already see this kind of used (analog 2D DBL)? I am using a PCI-6229, and DAQmx 7.3 Drivers
    Thanks for your help
    P.
    Attachments:
    project_acquisition.vi ‏338 KB

  • Multiple Channels Agilent 2000 3000-x

    I am incredibly new to Labview, so please bare with me here.
    I am trying to modify existing code to record data from two channels of an osciloscope. I have been searching the internet high and low for a solution, but I haven't found anything.
    I have attached a screen cap of my current setup. For the first two case structures I am trying to "force" the channel configure into differnet channels, but every time I start measuring with signal going in to one channel both channels measure the same pulse.
    Thanks for any help in advance.
    Attachments:
    scope measurement.PNG ‏63 KB

    How are you currently doing it?  Personally, I would use a FOR loop to read the data from the two channels.  It there is a function available, read then as a waveform data type.  You can then wire the array of waveforms to your graph.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Multiple Channels with Firewire Input

    I posted this in the podcasting forum, and it occurred to me I might have better luck getting a response here. Apologies if you've seen this one before! I quote:
    I have a feeling this is a stupid question, but I'd hate to go without asking, so... I'm using a Behringer Eurorack UB1202 with a Behringer F-Control firewire interface to record a podcast with 3 (sometimes 4) microphones. Is there a way I could use that setup to split the audio onto 3 (or four) separate tracks? I'm assuming the answer is "no," since it ultimately dumps into one firewire input and therefore (I guess) one signal. I imagine I might be able to split off left and right channels, yes? But with 3 mics, that would put one on one track and two on another? (I'm using an iBook, by the way, so I've only got one firewire port to work with...)
    Thanks for any advice!
    Quicksilver G4 | G3 iBook   Mac OS X (10.4.4)  

    ..just because all the signals go
    into my computer through one cord, that doesn't
    necessarily mean that they can't be divided
    out again, with the right equipment?
    Yes exactly right. They make firewire audio devices that accept multiple analog inputs and have many analog outputs and it keeps it all straight.
    Firewire is MANY times faster than a digital audio stream so the data can be "multiplexed". In other words, it only takes a few microseconds to send a few milliseconds of audio data so it sends some data from each channel, one channel at a time and then maybe some data to/from the disk(s) all on the same cable. Same goes for USB and Ethernet. Kind of like a hiway - every car does not need it's own road.
    Figure that audio sampled at 96K is about 2MB/Sec and firewire can handle 400MB/sec Even 16 audio channels is only 32MB/Sec, well within Firewire's ability (but maybe your disk drive could not handle that rate?)

  • 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

  • Is there a way to acquire a set number of points from multiple channels?

    I had set up a VI to use AI ONE POINT.VI for multiple channels. Getting one data point for me is useless. I need, say, 100 data points from multiple channels at once. Is there a way to do that? Is there an example program I'm not seeing that already does that?
    Thanks!
    p.s. I have Labview 6.1

    Hello,
    Thank you for contacting National Instruments.
    As Dennis had mentioned, there are many example programs that ship with LabVIEW that demonstrate how to take measurements from multiple channels with either a finite or continuous amount of data to be acquired. In LabVIEW 6.1 you can find these examples by going to Help >> Find Examples >> Hardware Input and Output >> DAQ >> Analog Input >> General.
    In these examples, if you would like to sample multiple channels, you simply need to add the physical channels separated by a comma for example: 1,3,5 would sample channels one, three, and five. You can also use a colon to sample a sequence of channels for example: 4:6 would sample channels four, five, and six. This makes it easy for you to choose the chann
    els that you would like to sample without having to make any modifications to your code.
    Regards,
    Bill B.
    Applications Engineer
    National Instruments

  • Multiple channel AI measuremen​t in the same module with synchronis​ed AO

    I  am using NI -9172  for measurment. I am trying to mesure two  AI voltage signals on the same module (NI9215).A sinosoidal  analog input voltage is generated using NI 9263. The AI and AO are synchronised using Ai start trigger signal from NI 9263( AO). While I can measure  an AI signal using the same module, it does not  show any measurement signal when I try to modify the VI program for multiple channel measurment. I don't see any kind of error in the program. ( At least the program does not show any kind of errors) Can anyone please tell me what my problems are? I have attached the VI below.
    Attachments:
    modified Magnetstriction.vi ‏96 KB

    Hi
    When you say it is working for one channel do you mean that if you enter either one of the inputs among Magenetic Flux or Strain you can see both the input and the output signals? I noticed that you have two DAQmx Create Virtual Channel VIs. They are connected to each ohter and to the same array. This essentially translates into the signal being shown in one graph. For learning more on using multichannel programming please refer to Multi Device Sunch--Shared External Convert Clock.vi. Hope this helps.
    Ipshita C.
    National Instruments
    Applications Engineer

Maybe you are looking for

  • No Print Color

    I cannot get the color to print.  This is a new HP 8610 printer.  Are  there seals on the cartridges that should be removed? Thank you for your help...

  • BW 3.5 vs BI 7.0

    Dear all, from other threads an documents in sdn I learned the differences between 3. 5 and 7.0. If you look at it from the customer's point of view, what would be the reasons to migrate from 3.5 to 7.0 As real advantages I only figured out that BI 7

  • Information about configuration parameters

    Does anybody know where to find information about these parameters in SXMB_ADM - Integration Engine Configuration? - BPE - DISPATCHER - MIN_DURATION_PROCESSING - BPE - DISPATCHER - PACKAGES_PER_COMMIT Thanks!

  • Premiere Pro CC Crashing When Rendering Nested Sequences

    When I try to render out my project which has a nested sequence (see below), As you can see I have 2 sequences. My original cut is "IN CAR". I then have another sequence titles "TEST" in which I have laid out the entire sequence of "IN CAR". When goi

  • Moving clips from imovie 06 to imovie 08...really important!!!!!

    i am using imovie 08 to complete media coursework. i needed to speed up some of the clips that would be featured. i did this on imovie 06 which i downloaded following the advice from another discussion. However now that i have done what i wanted with