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

Similar Messages

  • 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

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

  • How to modify the VB examples in ni-scope to sample data simultaneously from two channels in PCI 5922?

     Dear all:
    I want to write VB programs to sample data simultaneously from two channels in PCI 5922. The niscope driver has some example VB programs to sample data from one channel, for example, the "save to file ", the program works well to sample the data from one channel.  When I modify it to sample data simultaneously from two channels, I always get error so I seek your help on how to write the program to sample two channels simulatenously. Thanks.  I attached the sample program here and what I tried to modify is the "channel name" and "waveform()"
    Regards
    Andy
    Attachments:
    savetofile.doc ‏42 KB

    Hi Bajaf, regarding the FFT of the four channels, the next link might be what your looking for:
    http://digital.ni.com/public.nsf/allkb/862567530005f09c8625671b00739970
    Respect the phase issue how are you doing the acquisition of the signals, are you doing two independent acquisitions? if you are controlling them as independent acquisitions try to synchronize them with triggers and the clock.
    How much are they out of phase?
    By the way we know have forums in Spanish
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Acquiring Analog Input from Multiple Channels in Labview

    Hello,
    i am working on a VI where i need to acquire signals from multiple channels in Labview using NI-9129.Initially i want to acquire contineous input signals (voltage and current) and display it on the graph.
    Having looked at forum and Labview examples i tried to make an initail VI but i am not sure if the setup i made needs any modification to serve my purpose.I am fairly new to Labview software.
    All i want is
    1.To acquire conteneously current and voltage 
    2.Display current and voltage individually on the graph.
    3.Perform some basic calculations like MAXIMUM,MINIMUM and AVERAGE values of voltage and current.
    4.Log the data into  excel file
    I have attached the VI i made so far.i need abit of advice if i am moving in the right direction or not.
    Thank You for having a look at my question.
    Attachments:
    Voltage-Current VI.vi ‏81 KB

    Engr_tech wrote:
    i think i already have the tdms for  data logging.as far as the tdms data logging is concerned,when i enable the logging mode to "read and log" the data logged inside the excel sheet would be seperate for current and voltage.?
    Is it practically possible to acquire data from 4 different channels and plot them.if yes,then am i right to assume that all i need is to modify the current VI for four channels having all of them in parallel.
    Yes, you are logging directly to a TDMS file.  This is definately the best route for data logging from a DAQ.  The currents and voltages will show up as different channels in the same group.
    To add more channels, just add them to your DAQmx task.  The logging will handle it with no issue.  Your calculations will also a little work to add the extra channels.  Same for the graphs, since you are using seperate charts.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to manage data aggrigation from multiple systems.

    Hi,
    How to manage data aggrigaion from multiple system which should support paging too.
    please suggest me , best possible soluntion.
    Thank You

    what is ment by aggrigation? what is the difference between Inheritance and aggrigation ? How can it implement as part of the programm

  • Error when running VI to acquire data from multiple channels

    Hello there, I am currently trying to write a LabVIEW program interfacing with the Agilent 34970A data acquisition unit. Have managed to get seperate VIs to acquire temperature and voltage data and to graph the data. Running them separately is fine.
    However when I try run one after the other, (ie, run temperature acquisition VI, then voltage acquisition VI; or vice versa) the first one runs OK, but upon trying to run the second one I get a VISA error along the lines of "VISA write". When I try to run the first VI again, that one fails to acquire readings as well. Any way I can rectify this problem? (Want to combine the VI's into a single program.) Thanks!

    Hi Laeral:
    You should be able to just open one VISA session then write and read both commands then close the session at the end. This sounds to me like an error that comes from trying to open two VISA sessions to the instrument at the same time. I have attached some very basic LabVIEW VISA code that writes and reads two different commands. Hopefully it will get you started.
    Regards,
    Emilie S.
    Applications Engineer
    National Instruments
    Attachments:
    Basic VISA Example Two Commands.vi ‏39 KB

  • Data acquisition from switching 500lbs load cell to 100lbs load cell

    I am using 500lbs load cell, and acquiring data by inputing 2volts from 2345 signal conditioning board, and sensor output is connected to SCC-AI03 pin 3 and 4 , and configure this load cell to a channel using NI MAX, data neighborhood, traditional NI-DAQ virtual channel, the physical quantity is voltage set at range -10 to 10, and sensor also set at voltage with no scaling, but, I couldn't get any signal when 100lbs load cell is use, the difference of this 100 lbs load cell is the rated output is at 2.958mV/V, while the 500lbs rated at 1.8295mV/V , how should I do this?
    Thanks.

    Hi,
    At this point, it is difficult to determine exactly what is happening to your acquisition. Could you please provide some additional information by answering the following questions:
    What voltage are you reading with the 500 lb load cell?
    Would it be possible to connect your load cells to a DMM and see what voltage reading you receive? If so, what do you see?
    What is specifically happening when you connect the 100 lb load cell?
    I also noticed that you are using the Traditional NI-DAQ (Legacy) driver. I recommend upgrading to the NI-DAQmx driver.  Here are a couple of links with more information about DAQmx:
    Advantages of NI-DAQmx:
    Transition from Traditional NI-DAQ to NI-DAQmx:
    Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications:
    Regards,
    Hal L.

  • Data acquisition from NI PXI 5152 using LabVIEW

    Hi,
        This might be really stupid question, I am new to LabVIEW and the Digitizer equipment. I was wondering if there are already any labVIEW based application available to read the data from PXI5152. I would be using both channels available and may be trigger. If there is no such application available, what would be port numbers I would be using for data acquisition. But, If I am to develop an acquisition software, I would be looking at every single specification of the equipment. I am assuming the output will be a digitized signal varying with the clock input, since It is used as oscilloscope. When working with labview how would I specify the port to read from and how would my PC recognize the port. I working on a pre-configured system and they won't let me unplug anything to check the configuration. Does NI provides a software to read into the signal fed into the channel and trigger inputs. I have tried looking into the different forum discussion but didn't find any that address my issue. May be it's too simple and stupid. But, it would be a great help if you could point out my misunderstanding.
    Thanks in advance.
    BP

    There are numerous examples. Help>Find Examples> Modular Instruments>Ni-Scope. There is a test panel available in MAX. On the Measurement I/O>NI-Scope palette, are all of the driver functions includeing the NI-Scope Express.
    I'm not quite sure I understand your references to 'port's. Once installed into the chassis, it should be listed in MAX. In the functions you will be using, there will be a dropdown menu that you will be able to select the scope resource name.

  • 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 can i avoid phase delay in annalog input data acquisition of multi channels

        I am using a PCI-6251 M Series board and wish to acquire two analog signals and output one analog signal simultaneously.  I have a question about multi-function -synch ai-ao.vi .With this Vi I work out annalog  input of one channel  and   data output of one channel synchronously.I take some  change in the vi which I make the sampling rate and sampling number of input and output channel be equal. But when i increase the input channel from one to two,a problem come that is the data acquired always shift towards one direct which depends on the sampling rate(for example data shift turn left when 250kS/s,right when 200kS/s).  Does the phenomena mean phase delay or lag during accquring data? or mean data loss? how it happen ?
         I wonder if the acquisition on both channels is perfectly simultaneous.I  hope the start of data  acquisition each time be the same all time.
              I would appriciate it  if any comment and suggestion.
                Attachments: modified VI from the Multi-Function -synch ai-ao.vi
                I  delete some part about data processing  in while cycle.vi in additonal file

    The specifications for the PCI-6251 state that it is not a simultaneous sampling board. This means that the board has one A/D converter which is multiplexed between channels. How much time delay is between channels is determined by how the board timing works, but it cannot be less than the reciprocal of the maximum sampling rate. For that board this is 1/1.25 MS/s or 800 ns. The delay could be as much as the reciprocal of your actual sampling rate. You need to look at the detailed specification for the device to determine the intersample delay. Some boards require addditional delay when switching channels to allow the multiplexer and amplifier to settle.
    Perhaps you can sample at a rate that is high enough that the delays produce acceptably small phase shifts. If your signals a deterministic enough, you may be able to calculate the shift and compensate.
    If you need true simultaneous sampling, you will need to check the specifications to be sure that the device you select offers that capability. I took a quick look at NI's web site DAQ search page and that is not a top level search option, but as you start to specify channels and sampling rates it becomse available.
    Lynn

  • Triggering a 6024E into data acquisition from start and end number of finite pulse generator from a 6602

    My motion control system is driven by a 6602 I wanted to acquire analog current (to a voltage via I/V converter) from a 6024 AI when:
    (1) At the start of the pulse generation
    (2) Stop at the end of the pulse generation
    (3) Read every possible data between and stream it on the harddisk
    (4) Option to skip at regular intervals to reduce amount of data accumulation
    Anyone have some suggestions? What I did try and attempted was to "loop an AI from a triggered intermediate Analog Input VIs" this is rather erratic!My question for the analog input software are:
    (1)Can you trigger an AI to start a continuous acquisition?
    (2) How do you do AI from a "start" p
    ulse train to "end" pulse train?
    (3) How do you manage time for File I/O meanwhile doing (1) and (2) above?
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]

    "(1)Can you trigger an AI to start a continuous acquisition?
    (2) How do you do AI from a "start" pulse train to "end" pulse train?
    (3) How do you manage time for File I/O meanwhile doing (1) and (2) above?"
    Answer 1 and 2)
    Yes you can, This VI is part of the search examples that ships with LV:
    "Continuous Acquisition & Graph Using Digital Triggering and External Scan Clock
    Demonstrates how to continuously retrieve data from one or more analog input channels using an external scan clock when a digital start trigger occurs."
    Go to Search Examples in the Help/Contents of LV. Then pick I/O Interfaces/Data Acquisition (DAQ)/Analog Input/Triggering an Acquisition/Triggering a Continuous Acquistion.
    This VI is appropriate ifs you want to clock the DAQ with some clock (external scan clock) other than the on board clock.
    The start trigger required by the DAQ card will be a TTL signal attached to the PFI0/TRIG1 pin of you DAQ card (via whatever signal conditioning you have).
    The external clock also needs to be TTL and is attached to the PFI7/STARTSCAN pin.
    You tell it which AI channel to use and wire that up appropriately.
    All of this stuff is in the context help for the VI.
    Answer 3)
    You have a misconception of how the acquisition makes its way into a file on the hard disk. You don't really "stream to disk." The VI above will run a buffered acquisition. The DAQ card sets up a buffer that fills with the data continously. When you use the VI you set up how the buffer is configured, you will see controls for buffer size, number of scans to read at a time, etc. The acquisition runs data into the buffer continously and reads from the buffer are a parallel process where chuncks of the buffer are extracted serially. You can end up with a scan backlog where the reads are falling behind the data. Making the buffer bigger helps. All of this is limited by the sampling capability of the DAQ card. 200kSamples/second is for one channel of AI. Divide by 2 for 2 channels. etc.
    The short answer is that the VI and DAQ card manage the file I/O for you.
    The VI above writes the scan out to the waveform chart on the front panel. You will want to wire that data out from the AI Read Sub VI to a spreadsheet file in tab delimited form or similar.
    Look inside the VI block diagram. There is a While loop containing the AI Read. Every time the loop runs (unless you hit STOP), the AI Read plucks the specified # of scans from the buffer (starting from the last unread datum). If you wire the double orange wire from AI Read out of the loop (and set the tunnel for Auto Indexing) the Vi will build another buffer in memory that is a series of AI Reads appended to each other, a sequencial record of the acquisition. Here you put in a Write to Spreadsheet VI. This is in the Functions Pallete, it is the first VI in the File I/O Pallette (icon looks like a 3 1/2 disckette).
    There is more to it than this. The spreadsheet Write is 1D or 2D only. By running the array out of the while loop with auto indexing enabled, you create a 3D array. (If you turn off auto indexing you will only get the last array performed by the AI Read.) You will need to create a new array withe the pages of the array placed serially into a 2d array. I don't think I want to get into that. It isn't that bad to do, but you should get some time messing with arrays on your own, then you will see how to do it yourself. One solution is to only run the While loop once with a buffer big enough to hold the whole acquisition, or in other words no loop at all. I don't know how many scans you want. The other thing is by wiring that AI Read out of the loop you are creating an array that must be dynamically resized as the loop runs. Kind of a no no. Better to know what you are acquiring size wise and letting the VI set up buffers and array space that does not need to be changed as the program runs.
    Caveat: I am fairly new to this and I could be wrong about the arrays and buffers and system resources stuff. However, I have done essentially what you are trying to do succesfully, but not "continuously." I limited the AI Read to one large read that gets what I need.
    "Continously" is usually reserved for screen writes as in the VI above. The computer is not required to continually allocate space for an ever expanding array to be written as a file later. Each time this VI runs the While Loop the data goes to the waveforn chart. Each new AI read overwrites the previous one. Sort of like if you turn the Auto Indexing off. When the VI stops, the waveform chart on screen would show the same data as was written to the spreadsheet.
    Feel free to email me directly: [email protected]. I will help as I can.
    Mike Ross

  • How to synchronize the data acquisition from both GPIB and DAQ card

    I want to begin/stop acquiring the data from GPIB and PCI6024E card into Labview at the same time. Since the acquisition from GPIB is quite slow comparing to the one from DAQ card, I can not put both of them in the same loop structure. Is it possible to synchronize them?
    Thank you!

    Hi,
    I wanted to save data acquired from NI-DAQ (for example, NI 9234) in a file using the DAQ-mx ANSI C Code. The response I got was as follows:-
    One way to do it is with TDMS logging. DAQmx comes with functions designed to log to a TDMS file. This is a special file type that is used for collecting data in a logical format. It can be displayed in a TDMS viewer where data is separated into groups and channels. NI-DAQmx provides examples for how to log to TDMS. Look at the TDMS examples in the C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage directory.
    However, now I want to know is there a way that using that same C code, can we save the data in a .txt file format (Text File) instead of a TDMS file? We actually want to access that file through MATLAB (that's why we want to save it in text format).
    Also on an other note, is there a way we can access & open TDMS files by MATLAB?
    Thanks,
    Sauvik Das Gupta

  • Simultaneous data acquisition on 4 channels - AG6000A

    I am trying to fetch analogue waveforms from an AG6000A scope with the respective drivers. I can do it on one channel, it works perfectly. 
    I want to extend it to 4 channel though, so that the LV reads all the 4 channels simultaneously. The reading is now done by 4 "ag6000a read single waveform" VIs but if I run the system, only the 3. channel acquires data.
    Does somebody have an idea how to handle 4 all the 4 channels at the same time?
    Thanks,
    Krivan
    Solved!
    Go to Solution.

    Why don't you look at the example called Agilent Series 600 Acquire Multiple Waveforms? It acquires from two channels and can be easily changed to read from four.

  • Data acquisition from SR 530 lockin

    Hello,
    I need to read the output of the sr530 vector lockin and store them in a file.
    I was wondering if there is any driver which will let me read frequency, output amplitudes & relative phase between the input & output signal!
    Any help will be much appreciated!
    Thanks a lot,
    Ashutosh.

    Thanks a lot for the help Matt.
    I can connect the device via GPIB. Let me tell you a bit more about the problem. As of now I was using a single channel lockin, EG & G 5209, to read the data(so I am kindda familiar wtih data acquisition... not much though). And the only thing I was reading was the output amplitude of the lockin.
    Now I have to use the vector lockin, SR 530, and I will need to read both the output amplitudes, the phase & the frequency (all four of them)at the same time. And I am looking for a driver which can do this, i.e. which can read all four data simultaneously & store the result in a *.txt or *.dat file.
    Do we have something like that?
    Thanks,
    Ashutosh.

Maybe you are looking for

  • Something's still not right

    ???-)I just got this system set up over the weekend and eveything works fine, BUT...I have a few questions about my BIOS (amibios new setup utility-ver 3.31a).  In Standard CMOS features, I have no primary IDE master or slave.  My 2 CD drives are the

  • Claims report, rpclmsu0, doesn't work correctly in ECC 6.

    Claims report is used to view the details of the components of the claims but all it is showing is the values /561 and /5py wage types. Since it isn't known what wage type generated the claim and what tax class it is under, claims can't be cleared. O

  • Multi-master over WAN ?

    When will Multi-Master over WAN being supported ? Will it be in 5.2, and when will this release being distributed ?

  • Memory leak in ldap_parse_ds_event

    Hi, I'm doing some development with the eDir LDAP event API and noticed some memory leakage. Valgrind points the finger at ldap_parse_ds_event: ==32146== 220 bytes in 5 blocks are definitely lost in loss record 4 of 5 ==32146== at 0x401CCA0: calloc (

  • How to play DVDs in Quicktime Pro

    I recently purchased QT, and QTPro. I was trying to transfer DVDs to my 60GB Video ipod, but I cannot even open any movie in Quicktime. Now my goal is just to get a DVD to play in quicktime. I choose file->open file, and select the drive my video is