Multi channel multiple sample

Hi,
I am using USB6218 DAQ device and Labview 9. I have used DAQ assitant in my VI and my setting are RSE mode to sample 30 channels, continuous mode,20 samples,rate 100hz. This is what I had in mind from my programming background from C/C++ and I am new in using Labview. I was trying to get 20 samples from channel 1 in 10ms period and store in an array for eg channel_1_val[20] and switch to channel 2 and get 20 samples in 10ms time and store in channel_2_val[2] and so on for thirty channels. I figured timing should not be an issue as USB device has 250Ks/S for 32 channel which would approx 7ks/S for channel which is 120us roughly. So 20 samples in 10msec is plenty of time. Does the setting in DAQ assistant would do my above task as expected. Need help from experts.
Thanks

Hi Christian,
Just curious to know what I think is gonna happen to my attached VI. Please correct me if I am wrong. I am expecting, channel 1 sample 1 and a msec later channel 2 sample 1 and a msec later channel 3 sample 1 and so forth. And when all my 20 samples for 30 channels are acquired which would take roughly 600msec the while loop will wait for 500msec to start the next sampling. This is what I had in mind when I created the VI. I am also curious to know is there any buffer allocated or it just takes a sample from channel 1 writes in a register or memory and after a msec takes a sample from channel 2 and overwrites on the same register or memory. The reason I am asking that is I would like to write all my samples on an excel in a format given below and fill an array with 20 samples from each channel and take an average to determine the pressure leak
Timestamp        |          channel no          |        Voltage(v)               |         Pressure(psi) 
and may be plot a graph based on how fast I get this done. Currently write to spreadsheet on my Vi is filled with rows equal to no of samples and just one column. I am guessing that I need a build an array with the value that I sample everytime after a msec and finaly write this array to excel. If that is the case how will I form the dynamic array. Thanks for your support.
Attachments:
analog_ip1.vi ‏78 KB

Similar Messages

  • NI PCIe-6351 Count Edges Channel error on fast TTL - Multiple Sample Clock pulses were detected

    Hello,
    I am trying to use a PCIe-6351 to record the arrival times of a fast TTL pulse stream (generated by an Excilitas/Elmer Perkin APD). The TTL pulses are 2.5 volt amplitude, 20 ns duration, with a gauranteed dead time of 50 ns between pulses. I am trying to use the the Count Edges function, with the  100MhzTimebase as the input terminal and the input to counter 0 (PFI8) as the sample clock. After a few seconds of acquiring data at 100 Mhz, the application throws the following error (-201314):
    "Multiple Sample Clock pulses were detected within one period of the input signal"
    I had thought that because there is 50 ns dead time between pulses, multiple pulses would never arrive within a single clock cycle of the 100 Mhz timebase. Is there any way this might not be the case? Alternatively, is it possible that the counter is triggering on some jitter around the edges of the pulses? If so, is there any way to filter such high frequencies without losing the 20 ns pulses?
    I have read through the forums for similar problems with photon detectors, but have not been able to resolve this issue. Thank you for the help.
    Matthew Bakalar

    It sounds like the input signal is being detected as multiple edges.
    The PFI filtering feature on the X Series card likely isn't going to be suitable for you.  The minimum setting is actually exactly 20 ns, which should in theory guarantee a 20 ns pulse passing through.  However, if the signal is high for anything less than that there wouldn't be a guarantee (depending on the phase of the timebase relative to the rising edge of the signal)--considering rise times and that there is evidently a glitch in the signal itself, it probably isn't actually a continuous 20 ns high time by the time the DAQ card sees it.
    What you should do instead:
    Configure a second counter as a retriggerable counter output (single pulse).
    Use your external signal as the start trigger for this counter output task.
    Set the initial delay, high time, and low time for the counter output task all to 20 ns (the minimum).
    Use the internal output of the counter output task as the sample clock source for the original edge count task.
    The counter output will be triggered when it sees the external signal, wait 10-20 ns, then generate a 20 ns pulse.  If there is a glitch on the trigger line during this 30-40 ns that the output is generating, it will be ignored.  The counter output will be re-armed in time for the next pulse given the minimum dead time of 50 ns between pulses.
    Best Regards,
    John Passiak

  • How to Get Multi-Channel Instruments to work... e.g. Battery 2, Ultrabeat

    Hello there. I bought Battery 2 and haven't had problems using it a a stereo instrument, but I am having problems doing the multi-channel applications. This also includes Ultrabeat.
    I have heard of Battery 2 being buggy and such for Logic, but maybe I am the one who is buggy. What is the process of setting up a Multi-Channel instance? This is what I have done so far.
    I have an environment with 32 Aux channels, 32 Busses, 75 Audio, 50 Instruments, and the appropriate Outs and Input Monitoring. I understand then that I choose Ultrabeat as my Multi-Channel instrument, then assign the aux channels' inputs as Battery 2 Output 3, 4, 5, and so forth. How do I get audio coming out of the Aux channels? Or do I notate the notes in the aux channels, or do I notate the notes in the multi-channel? I am lost here and what to do.
    Maybe I am going about this entirely the wrong way and maybe someone could make it more clear for me? Thanks peepz!
    ~trevor

    Vice-Versa to Phillip I have Battery2 but not Logic - I use DP, but I would imagine Logic must operate with a similar philosophy:
    One instance of Battery2 as an AU or VST Instrument Track within DP declares 16 available Midi targets and 32 (or 16 stereo, or any combination) available audio sources to DP; the first two audio channels are the stereo output from the Battery2 Instrument track, the remaining 30 are available as sources for any Auxiliary Tracks subsequently created. Within Battery2, each Cell can be assigned to any of the available mono or stereo outputs; the number of outputs available is actually governed by the 'Outputs' settings under 'File>Options' within Battery2 - I've noticed that DP always lists 15 stereo and 30 mono sources from B2 regardless of the number requested here, but you'll only be able to route Cells to what you've asked B2 for.
    So you raise as many seperate Midi tracks as suites your inputting/editing requirements; I've never had cause to use more than one Midi Channel within my drum parts (might be useful if using multiple Midi input devices for your drum programming I suppose), so all of mine are routed to the Battery2 Instrument track Ch.1 (which is the default input channel for all Cells). And then route the individual Cells within Battery2 to as many separate outputs as suits your mixing requirements; bring those separate outputs in via auxiliary tracks as Phillip describes, and you've 'multi-mic'd your Battery2.
    You can of course do alot of sound tailoring per Cell within Battery2, eq/dynamics/filtering et al., but I find it easier and more CPU efficient to do that on the Aux tracks within DP - B2 can be a bit of a cycle hog if you ask it to do much more than trigger the sample in my experience.
    I've taken three times the space to say what Phillip's already said, essentially, but thought maybe you'd missed the principle of assigning the Cells to seperate outputs within Battery2.
    G5 Dual 2.7, MacMini, iMac 700; P4/XP Desk & Lap.   Mac OS X (10.4.8)   mLan:01x/i88x; DP 5.1, Cubase SX3, NI Komplete, Melodyne.

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

  • Can PCM multi-channel wav (not DD or DTS) be sent over SPDIF

    <Can PCM multi-channel wav (not DD or DTS) be sent over SPDIF? --- X-Fi Elite Pro SB055A and Audio Creation Mode ---
    If I understand correctly, SPDIF format can support uncompressed MULTICHANNEL wav format (within the limitations of its bandwidth) as well as the more usual DD or DTS encoded format on SPDIF.
    One of the neat things about Creative's Audio Creation Mode in the Recorder section is the ability to actually record to a multi-wav format (but the sample size seems to be fixed at 24 bit). This means it is quite simple to have several mixer inputs and record a mixed multi-channel wav file in one go. Great and this works as expected with a 5. ?24 bit/48 kHz recorded test file.
    My question is when one plays this recorded multi-channel wav file back, the mixer monitor (playback) shows the various 5. (say) channels with their separate content. Can this multi-channel *uncompressed* wav data? be sent over the SPDIF output as is to preserve the PCM quality? (so no DD or DTS encoding used)? I have tried this and I?ONLY seem to be able to get a STEREO (2 channel mixed down) version received at another SPDIF-in sound card (my Audigy 2ZS PCMCIA). I tried almost all selections at both ends involving SPDIF.

    @? In answer to my own question, and I think I had known this a while back, SPDIF standard only supports transmission of either 2 channel PCM (uncompressed) stereo with up to 24 bit resolution per channel and up to as much as 92 kHz sampling frequency, or compressed (DD or DTS) multichannel audio up to 5..
    Since each frame of SPDF is 64 bits in length (with a single sample of L and R channels plus extra bits of status in each frame), at 92 kHz max sampling rate, this translates to about 3 Mbits/sec bit rate. However most SPDF don't support the 92 kHz rate (which for 24 bit would be the stereo rate for DVD-Audio) for various copyright protection reasons.
    Here is short demonstration of SPDIF transmission of 24bit/96 kHz between two sound cards with and without "bit accurate for playback" enabled:
    ? http://www.jensign.com/spdif/

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

    Hi All Experts,
    We are trying to evaluvate Oracle Documaker 12.0 and were sucessfull in most of the part.
    One question remains unsolved.
    Does Oracle Documaker (12.0) support multi channel delivery? One of the customers require output to be in the format of PDF, Print, Email ( until this it seems ok), SMS, Voice ( which we are not sure of).
    Can any one give some guidance of getting the output format set to SMS or Voice?
    Also, how to acheive Multi Channel output based on a value in the input extract file? ( Using multiple FSIUSER.INI??)
    Thanks
    Arumugam

    Hi Arumugam,
    I am assuming you are actually inquiring about Oracle Documaker Enterprise v12.0.1.
    If so, there is a Reference Implementation Master Resource Library (RI-MRL) that comes out of the installer and is referenced in the Documaker Enterprise Installation Guide, with examples for the different Distribution types and settings including example XML inputs that trigger batches for SMS and others.
    Input controlled output distribution is done via the batching configuration in the Administrator and data mapped to the database tables in the schema. Recipients are selected based on the batch configuration, via the Selection Criteria Rule, which allows you to use any metadata from the input that is mapped to be distributed to one or more batches. The Batch configuration defines the output and distribution options, see "Including Recipients in a Batch" section of the Administrators Guide documentation.
    If you review the Documaker Enterprise Administration Guide for SMS references you will find a section entitled Setting the Distribution Options. There is out-of-the-box SMS support through SMTP-SMS bridge (see UseEmailForSMS in the Administrator Guide) where you provide the email address in the input stream for the SMS message delivery. If you want full fledged SMS and Voice message support directly via phone numbers through the various wireless carriers I recommend you review offerings such as Oracle User Messaging Serivice (UMS) (e.g. http://docs.oracle.com/cd/E14571_01/integration.1111/e10224/ns_intro.htm) . Documaker Enterprise has a built in integration with UMS services (see UseSMSService in the Administrator Guide) but also has integration points to allow for other integration so if there is a messaging service that your customer(s) prefer or own the Output Publisher component offers extensibility to map user classes to mime types (user defined or standard) to push out data to the desired endpoint.
    Regards.

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

  • Multi Channel

    Hi,
    I'm using L.Express.
    I'm still not understand about the Multi Channel of EXSP.
    Can anyone explain about it to me about the function and useful skill on it??
    For now,i'm just using Stereo Channel of EXSP to do my Midi Arrangement.Is the Multi Channel more powerful than Stereo Channel??
    I'm more on Pop Rock Arranging!!
    Thanks
    Ray

    click the edit that's on the right of Exs's sample browser.
    Opens the EXS24 Instrument editor.
    Under the displayed keyboard you will see some white square boxes(depends on the sound you have loaded on how many would be),
    click on the square box of the note you are using.
    This will open the zone that it's on.
    Go there and tick the box that says EXS output,then on the right select the output you want to send it(3-4,5-6 etc)
    do that for every zone you want to send to an aux channel,
    make sure that you won't use the same output's for different zones on the same instrument.
    then go to the environment where you have your Auxes,click hold on the input>> that's the 1st slot under I/O and select the EXS output.
    hope this helps

  • Multi-channel Scan

    i am using PCI-6025E DAQ card. do Multi-channel Scan
    ,before signal input to analog input , i use a voltage follower ad623. sample frequency is 1k, is it safe ?
    or how to reduce settling time effect ?

    Hi Schmidt,
    The input range for the 6025E board is +/- 10 V, so if your signal (going into the DAQ board) is within this range you are safe. In regards to reducing settling time, you are on the right track. The following link is a great resource when using a voltage follower to reduce the impedance of a transducer.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/CD57A73721E0612586256BAE0055CDD9?opendocument&node=dz00000_us
    Have a great day!
    Brooks W.
    National Instruments

  • Mult-channel PID control using PID Toolkit

    I am controlling the light level in six locations (zones) using light sensors, dimmable ballasts (which respond to a 2 to 10 VDC signal) and the PID toolkit.  In my VI, I loop through 6 times (once for each zone) to control the light levels.  I use the simple PID.vi to determine the next setpoint for the dimmable ballast on the lights.  My problem is as follows, I think:
    The PID algorithm uses past response and the current difference between the measured variable and the setpoint to calculate the next setpoint.  If my understanding is correct, then I am confusing the PID algorithm by calling it with 6 different data sets.  It is almost as if I need 6 separate PID functions, one for each zone. 
    Perhaps I am wrong about the operation of the PID algorithm.  Can someone straighten me out?
    Attached is a snapshot of the VI.  The FOR loop goes from 1 to 6, that is, once for each sensor zone.
    Message Edited by rgentry on 04-29-2007 09:11 PM
    Attachments:
    temp.jpg ‏92 KB

    rgentry,
    The PID has two modes of operation: Single Channel and Muti-channel. The way you developed your algorithm, you are using single channel algorithm with multiple setpoint and variables. This will not work properly since LV will not keep the internal states correct for each channel.
    To fix this, it is pretty simple. Remove the For Loop and provide the whole 1D array to the PID.vi. This will enable the "multi-channel" mode and every time you call your VI, it will keep the internal states for each channel, as if you had 6 different PIDs in parallel. Notice that the interpolation also will work the same way, you just need to remove the build array primitive.
    Hope this helps!
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • New logic user, need help with multi-channel inst and aux strips.

    Greetings all,
    So I just purchased a new Mac Pro 2.66 and Logic Pro 7 to run with it. I have been a long time Nuendo/Cubase user on the PC side of things but since I got the Mac I wanted a DAW that was supported fully for the apple platform.
    Anyways, its a world of difference and I am very confused as I wrap my head around the learning curve, so in the meantime I have one important question maybe some one could help me with.
    The question is regarding Aux channel stips for Multi channel instruments. In this scenario I am working with Battery 3, it took me a while to understand that I actually needed to create these aux channels just to have seperate outs in Battery which seems really wierd and overly time consuming.
    As an example in Nuendo once you create the instance of Battery, the audio mixer automatically just creates the corresponding stereo and mono channels instantly. This obviously makes is a sinch to assign Batteries pads to seperate outs for eq/comps for seperate sounds.
    Now the Battery manual doesnt even make a reference to Aux channels for assigning outs in Logic, I actually had to do a Google search to figure this out.
    Anways, sorry for rambling...
    Here is the main issue.... How can I quickly and easily create multiple Aux's? In the mixer there is really only enough room in there to add like 1 more Aux strip, if I want to add more than that I need to re-arrange the entire global mixer which seems like a crazy system, surely there must be a more convenient method for getting muti-channel audio instruments set up quicker.
    Any help you can assist with would be exceptional!
    Thanks in advance.

    Not sure what exactly your question is, especially since I don't use battery. But as far as creating aux tracks:
    • go to the audio layer of the environment (not the track mixer window), find the two defalt aux tracks
    • Highlight all tracks to the right of the aux tracks (these should be bus and output tracks), and drag to the right far enough to fit in a bunch of aux tracks; you might even want to drag the all underneath the aux tracks, if your screen accomodates
    • use the key command shift-command-a multiples times to create several new "audio objects", and double click each one to expand
    • highlight all the new objects and select options/clean up/ align objects (makes it look nicer)
    • still highlighted, over in the parameters section (left side) select a channel, setting it to the highest number aux (at this point, probably "aux 3")
    • now individual set the channel for each aux track – you'll see that now you have available "aux 4"; next time you set a successive track you'll see "aux 5" and so on
    • once you've got things set up the way you want, save it as a template so you don't have to do this again later

  • Multi Channel Audio Instrument [Kontakt 2]: Auxes not working?

    Hi,
    I've searched the forums and come up with several posts about using multi-channel audio instruments, but none seems to exactly address the issue I'm seeing (and being confused by). I'm trying to set up Native Instruments' Kontact 2 sampler in multi-channel mode in Logic Pro 7. I perform the following steps:
    1. On an available audio instrument object, I click the input drop-down, select Multi Channel -> AU Instruments -> Native Instruments -> Kontakt 2.
    2. When Kontakt 2 opens, I load, say, three different instruments.
    3. In Kontakt 2's Outpus area, I create three outputs, labelled "st. 1", "st. 2", "st. 3". I cable these to "Plugin Output 1" and "Plugin Output 2" for st.1, "Plugin Output 3" and "Plugin Output 4" for st.2, "Plugin Output 5" and "Plugin Output 6" for st.3.
    4. In Kontakt 2, I assign the output of instrument 1 to st. 1, the output of instrument 2 to st. 2 and the output of instrument 3 to st. 3.
    5. Back in Logic Pro, I create two new (stereo) audio objects and assign them to channels Aux 1 and Aux 2 (and name them accordingly).
    6. In my Aux1 object, I select its input drop-down and choose Instrument1 -> Kontakt2 3 & 4.
    7. In my Aux2 object, I select its input drop-down and choose Instrument1 -> Kontakt2 5 & 6.
    Okay, so basically I'm set up now, right? So to test this out, I set the MIDI receive channel of all of my instruments in Kontakt 2 to omni and click on the built-in keyboard in Kontakt 2. I can see the volume level indicators on all three instruments light up. I can also hear all three instruments coming out of my speakers. However, when I look at the environment page where I've created these objects, I find that they're all coming as a stereo sum from the original audio instrument object. The Aux1 and Aux2 objects are just sitting there doing nothing.
    What gives?
    Dual 1GHz PowerMac G4 (Quicksilver)   Mac OS X (10.3.9)   MOTU 828

    Okay, I found the solution to this, and it's odd enough that I figured that I'd post it just in case anyone else ran into it.
    It turns out that the multi-channel thing does not work at all when you play Kontakt 2 from the built-in keyboard (in K2). Visually, K2 still shows all the audio going out on the corresponding channels, etc., but I guess it's summing it and outputting in stereo only when you do that. If you send it data from Logic, it works just fine. So I had this setup correctly all along.

  • Wanted: Multi-Channel Audio Interface for iMac & GB (USB)

    I am looking for an affordable multi-channel audio interface for my iMac for use with Garageband. My goal is to playback old songs from my old computer (Atari ST) through my Yamaha gear and record the audio into GB so I can mix it. (READ: Not interested in transferring MIDI.)
    My goal is to get at least 4 and ideally 6 channel/track recording in GB. I’m not sure if the multi-channel units I see, such as the Alesis MultiMix 4 or the Behringer Xenyx Q802USB send all channels to the Mac or if they mix it down to two channels first.
    I’d prefer to mix all the channels in GB rather than pre-mix it. Also, I’d prefer to have 1/4” jacks; XLR would be a nice bonus. USB; since Firewire is going away and Thunderbolt is too new.
    Any suggestions? I’m trying to keep this under $100. (Also, I know I can use multiple low-budget devices and aggregate them in Audio/Midi, but I do NOT want to go that route.)
    Thanks.

    As you imply, keeping it below $100 makes it tough.
    Generally only the two channel interfaces are close to $100.
    Check out Hang Times FAQ:
    http://www.bulletsandbones.com/GB/Interfaces.html

  • Sample per channel and sample to read

    Hello everybody
    I am new in LABVIEW and I have some difficulties with something.
    I don t know exactly what is the difference between the sample per channel et the sample to read. I believe knowing that the sample per channel is the size of the buffer which is more big than the sample rate but I don t know what is the sample to read.
    I ve tested with different sample per channel and sample to read. Sometimes I have an error and sometimes know and I would like to know why. If you have any example for I understand better, it will be great.
    I really need to understand this part for my project
    Thank for your help
    Romaric GIBERT
    Solved!
    Go to Solution.

    Hi Roro,
    As you mentioned, when acquiring continuous samples you can specify the sample buffer size by placing a value at the input "samples per channel" on the timing vi. The "number of samples per channel" input on the read vi which automatically names a control/constant with "samples to read" specifies the number of samples you wish to pull out of the buffer in one go when reading multiple (N) samples. This link may provide a bit more clarification. I have also attached a good example from the NI example finder which you may find useful to explore. I'm assuming you are using the DAQmx driver set so please let me know if this is not the case, but the same principles should apply either way.  
    This therefore means when sampling at a given rate, you need to ensure you are pulling data out in big enough 'chunks' to prevent the buffer from overflowing (which may well be causing the error you are seeing). Conversely if your sampling rate is slow and your read vi is having to wait for the number of samples to read you specified to be available, it may throw a timeout error. You can avoid this by either increasing your sampling rate, reducing your samples to read or increasing the timeout specified at the read vi input (-1 means it will wait indefinitely).
    Let me know if this helps and how you get on.
    All the best.
    Paul
    http://www.paulharris.engineering
    Attachments:
    Cont Acq&Graph Voltage-Int Clk.vi ‏27 KB

Maybe you are looking for