Continuous multi channel voltage data acquisition

Trying to use a NI 9223 to continuously sample voltage data from three channels the code work for a singel channel but when I added the other two channel I started to get errors.
I have attached my code if anyone can give me some pointer i would appreciate it.
Thank you 
Attachments:
Voltage.vi ‏218 KB

Hi,
Did you try doing a search on the forum for error code 50103?  (Leave out the "-" sign.)  This question has been asked many, many times before.
You need to put all of your analog input channels into a single task.  You only have one clock to work with.  You get error code -50103 because you are trying to use that clock for three separate tasks.
Looking at your VI, it seems obvious that's the error you're getting even though you don't specify.  Searching the forum for that error code will yield plenty of information for you which should be helpful (although I already told you what the problem is and how to fix it -- some of the posts will go further in-depth for you...I just don't really feel like re-typing all of the information when it's already available).
For examples of how to properly perform a multichannel acquisition, look under "Help...Find Examples...Hardware Input and Output...DAQmx...Analog measurements..."  You'll find a lot of example code there which should help you.

Similar Messages

  • Multi Channel USB Data Acquisition

    I am using the following VI for arduino HC-06 bluettoth data acquisition. I would like to acquire multicahnnel data 
    Could you suggest me how to acquire multichannel data from USB? To do this, in what way  i have to program the arduino?

    Thank you very much for your suggestions. its working.
    But if i give input to channel 2 or 3 or 4, they are not responding. only channel 1 is responding irrespective of input pin. what could be the reason for this?
    earlier, i was acquiring single channel data at 57600 baudrate, i was getting pure sine wave signal upto 90Hz, after that it was started distorting.
    Now, it started distoring above 20Hz, i think i need to increase the baudrate to 230400 to get 4 channel undistorted signal upto 100Hz,
    but arduino supports upto 115200 only, what shall i do??

  • How could a down-mix APOs receiving multi-channel audio data from the application

    Hello,
        Now I am integrating my DSP algorithm to the APO whichs convert to 7.1 input to stereo output(we call it virtualization), but the endpoint just supports stereo input. My first question is can my APOs receiving a 7.1 input data from
    application when the endpoint only supporting stereo input. The second question is if the scheme is feasible and what should I do.
    Thanks

    Ok so i order to help anyone who is interested.
    The only ironic solution to this problem i found was to use a plugin called xto7 to convert the xml to the old fcp7 format.
    i then imported this into premiere pro.
    this was then able to export an OMF that when imported into logic 10 that was using the correct 6ch mono setting as separate tracks.
    Insane but it works until Apple fixes the incorrect meta data import in FCPX that sets the xml export to the default import that is always surround.
    this is the only way i was able to send stems with all the edit points and fades for the sound editor.
    If you don't have premiere lying around you maybe able to do it with fcp7 too we just didn't have it in this studio.
    Fingers crossed Apple fixes the fcpx xml export.

  • NI RF Phase-Coherent Multi-Channel

    Hello! I would just like to ask why I'm getting the results shown in the attached file in using the NI RF Phase-Coherent Multi-Channel.
    For all frequencies, I'm using the same demo program (included in NI RF Phase-Coherent Mulit-Channel) for the generation and acquisiton.
    Generation: NI-RFSG Phase-Coherent Multi-Channel Generation Example
    Acquisition: NI-RFSA Phase-Coherent Multi-Channel Acquisition Example
    The desired results are those under the 1GHz frequency. However, I'm working on 915MHz. Needless to say, I can't see any pattern in the behavior of the plots when increasing/decreasing the frequency. That's why I really can't understand the results I'm getting.
    Please help me.
    Thank you very much for your time!
    Attachments:
    results.pdf ‏24 KB

    Hello!
    Attached are pictures of the hardware set-up. It is identical to the typical 2-channel phase-coherent RF signal generation and acquisition set-up.
    This thread is same as http://forums.ni.com/t5/RF-Measurement-Devices/RF-Synchronization-Suite/m-p/1893713#M1995.
    The software I’m using is suggested by Andy on post no.2 in the link above. I’m trying to generate a CW with 915MHz carrier frequency. However, I get incorrect plots when I use 915MHz. Setting the frequency to 1GHz results to correct plots. This is without changing any setting in the front panel.
    The main problem when I use 915MHz is that one channel moves faster compared to the other channel. For example, in the IQ plot, there would be 2 points representing the 2 channels. These points travel in circular path. If the slower channel travels 1 complete circle, the faster channel is able to travel more than 1 circle. Moreover, the phase delta is not constant since one channel moves faster than the other.
    More on this in the link above.
    Thank you very much for your time! I really appreciate it.
    Attachments:
    DSC03062.JPG ‏2182 KB
    DSC03063.JPG ‏1991 KB
    DSC03064.JPG ‏1934 KB

  • 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

  • Multi channel continuous DAQ acquisition

    Complete newbie question here. First time using Labview so I apologize for asking this question: Is it possible to have multi channel contiuous acquisition? If so, does this have to go through a circular buffer to prevent tying up all the computer memory? Can you vary the scan and read rates for each channel? Last question: If it is possible to do all of the above....how do you do it? I've attached a .pdf file with screen shots of my front panel and block diagram....it's extremely crude just trying to get some basic concepts down. Also if anyone can recommend some good books on actually doing the wiring and conditions of the various elements, I'd be extremely grateful. Currently I have "Labview for Everyone".
    Attachments:
    DAQ.pdf ‏33 KB

    Hello,
    It is possible to have a multi channel continuous acquisition and it does use a circular buffer. Please check out the Continuous Waveform Acquisition Tutorial for more information about how this is done. With our DAQ devices you can use different sampling frequencies as long as they have a common divisor and the sampling rates remain within the device specifications. There is an example of that called Multi-Rate Continuous Analog Input.
    The example finder is always a useful place to look for ideas on how to make a VI. In LabVIEW, go to Help->Find Examples and you will open up a browser that will allow you to look through many examples. You can also check out the LabVIEW Zone Learning Center where you can find a book listing under the fundamentals section.
    Hope this helps!
    Laura F.

  • Important question: I have got a PXI-4472 and I am able to do single-channel acquisition. How does multi-channel acquisition work?

    Look at the VI: it is quite eleborate, but the crucial point is Data Acquisition and Trigger&Gate (and, consequentely, Write to File operation).
    I can add plot on the Waveform Graph DATA, this is rather easy, simply adding the channel numbers in the channel control (es. writing 0,3,7 will collect data from the three channels).
    First question: is this operation of adding plots correct?
    Second question: does the sampling rate dwindle when I consider multi-channel acquisition? I mean: 1 channel-->100KHz ; 2 channels-->50 KHz
    More over, and MORE IMPORTANT: is it possible to set different trigger conditions for different channel
    s? How can I control this operation?
    Third: can you have a look at the VI as all (the appearence, the functionality, the logical sequence...). I am looking forward to get your advice. In particular:
    Look at the frontal panel: what do you suggest to make it "smaller"? More tab controls?
    Look at the Block Diagram: do I have to connect ERROR IN and ERROR OUT to every suVI or function that makes this connection possible (as Trigger&Gate and Write File)?
    Attachments:
    Start&StopTrig_SpectralMeas_style+image.vi ‏700 KB

    First: yes, the operation is correct.
    Second: yes again. When you consider a multi-channel acquisition, your sampling rate must be shared among the channels.
    Third: when you specify a list of channels you want to acquire from, the channel considered for analog triggering is the first you put in the list.
    Connect the error clusters whenever you can,in particular when you are dealing with I/O operations.
    Bye!

  • Write 32 channels thermistor data (temp in degree vs date/time) into xls file for all channels continuously.

    i am acquiring 32 channels thermistor data (temp in degree vs date/time) in waveform plot using array to cluster function  ,
    now my problem is how to write this data  into xls file for all channels continuously.
    please help me at the earliest & i am new to Labview.

    Hi Priyanka,
    Writing to excel file continuously is not a good idea, you can use ".CSV" or TDMS file format and once data acquisition is completed you can convert that to excel file using report generation toolkit.
    With Regards
    Miraz
    Kudos is better option to thank somebody on this forum

  • 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

  • Data acquisition time not continuous, but starting over and over again

    Hi,
    My data acquisition time is not continuous but loops over and over
    again.  Could someone please take a look at my vi to see if you
    have any thoughts on how to fix this.  Also, I tried to set up my
    vi so that I could take the mean of the signal at any time I
    choose.  However, at the same instance that the data acquistion
    time "starts over" again, the mean is calculated (before I trigger it to take the mean)
    I have attached my vi and my output file as a text file so that what
    I'm trying to say will (hopefully) make a bit more sense. 
    Thanks for your help in advance!
    Sherri
    Attachments:
    Datalog1 71805.vi ‏1252 KB

    Hi,
    Thanks for responding to my question. Attached is the vi with added
    comments as to what I think I am doing.  By DAQ time, I mean the
    first column of data that is in the data file that I attached
    previously.  I am only simulating a signal (at the beginning) so
    that I can program in my office.  I do, however, have the same
    problem as stated above when I change the simulate signal to DAQmx
    using my instrument.
    I hope this clearer.  If not, I'll try again. 
    Thanks so much!
    Sherri
    Attachments:
    Datalog1 71805 83.vi ‏1228 KB

  • High sample rate data acquisition using DAQ and saving data continuously. Also I would like to chunck data into a new file in every 32M

    Hi: 
      I am very new to LabView, so I need some help to come up with an idea that can help me save data continuously in real time. Also I don't want the file to be too big, so I would like to crete a new file in every 32 mega bytes, and clear the previous buffer. Now I have this code can save voltage data to TDMS file, and the sample rate is 2m Hz, so the volume of data increase very fast, and my computer only have 2G ram, so the computer will freeze after 10 seconds I start to collect data. I need some advise from you briliant people.
    Thanks very much I really appreciate that. 
    Solved!
    Go to Solution.
    Attachments:
    hispeedisplayandstorage.vi ‏33 KB

    I am a huge proponent of the Producer/Consumer architecture.  But this is the place I advise against it.  The DAQmx Configure Logging does all of it for you!
    Note: You will want to use a Chart instead of a graph here.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    hispeedisplayandstorage_BD.png ‏36 KB

  • How to save multi channel data in a same file?

    hi... i'm a fresh guy of labVIEW programming... what i wish to know is how to save multi channel in a same file? i had try with the AI acquire waveform, but it still can't get what i need. Because AI acquire waveform need user key in those channel with ","... but ehat i want is user can choose the channel from a combo box and then once user click a 'add' button then the value will store in memory, after user click done then the value can send to AI acquire waveform together...
    i had tried hard about this but still can't get what i want.... -_-|
    hope anyone can reply as soon as possible...

    HI, Brett B... thanks for your reply
    I'm using labVIEW 7.1 Express... i know the "Write LabVIEW Measurement File.vi" too, but it cannot support the file tpe that i need... so i just can find other way to do that...
    the file type that i need is call *.log\*.DAT... so... there got any solution to do that? or i can modified the "Write LabVIEW Measurement File.vi"?
    Jaxx

  • I want to acquire data for multiple channels using PCI 6120 that works on traditional DAQ. I cannot access more than one channel, can someone help me or if someone has data acquisition vi for PCI 6120, please send me over . Thanks

    I have PCI 6120 card and I want to acquire data for more than one channels. I'm using traditional DAQ to get it. But it does not work for more than one channels. If someone has a data acquisition vi for PCI 6120. Or some suggestion how to aquire data please let me know.
    Thanks

    Hello DSPGUY1,
    You can definetly acquire from several channels. For your convenience, I have appended below the content from help that tells you how to configure it:
    "channels specifies the set of analog input channels. The order of the channels in the scan list defines the order in which the channels are scanned during an acquisition. channels is an array of strings. You can use one channel entry per element or specify the entire scan list in a single element, or use any combination of these two methods. If x, y, and z refer to channels, you can specify a list of channels in a single element by separating the individual channels by commas, for example, x,y,z. If x refers to the first channel in a consecutive channel range and y refers to the last channel, yo
    u can specify the range by separating the first and last channels by a colon, for example, x:y."
    Hope this help.
    Serges Lemo
    Applications Engineer
    National Instruments

  • How do I subtract offset voltage from my data acquisition program?

    I have a simple program (attached) that reads a voltage input and outputs the results to a file. The voltage has an offset (which changes from test to test), and I am interested in zeroing out this value at the start of acquisition (in the 'interface.vi'). Could someone show me how to do this? Thanks.
    Attachments:
    finalsystem.zip ‏161 KB

    What you need to do is put a Wait millisecond timer in the vi such that it is forced to occur before the data acquisition. You then wire the number of milliseconds that you want to wait into this function. There are a number of ways to force the flow of the data. One method is a state machine architecture. However, this approach requires a rewrite of your code (maybe not a bad idea since the code isn't very large). A second approach uses subvi's with Error in and Error out clusters to regulate data flow. This could be nicely integrated into your vi. I have made a simpler modification to your vi which will make it work by putting some of your inputs to the data acquisition vi into a single frame sequence stru
    cture with the Wait function with a five second waiting period.
    Once again, this method will work for your vi, but it is not the preferred approach, especially if the vi grows very large.
    Hope that helps,
    John
    Attachments:
    interface3.vi ‏94 KB

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for