Bad first USB 6211 data samples

I work with the USB-6211 and Signal explicit, and for one of my sensors that I will receive entry incorrect for each sampling period. My sample rates and capture rates is at 44 kHz. The first attachment shows the first few samples each period. At the beginning of each sample is the same as the image below, and this only happens on my device of the accelerometer. My other devices do not exhibit this behavior.

You see, this is explained in your chart title:

FILTERED entry

It is an artifact of conventional filter (the step response of the filter you use coarsly)

You can try to reduce it by mirroring the first ms (?) of data, but usually you just capture some data more and cut.

Tags: NI Hardware

Similar Questions

  • Sampling frequency for the output of an acquisition of data USB-6211 card?

    Hello-

    I use a CGI CMOS FireWire camera to read an interference figure, then using a transformed of Fourier transform spectral interferometery (FTSI) phase recovery simple algorithm to detect the relative phase between the successive shots.  My camera has a linear 28 kHz scan rate, and I programmed my phase retrieval algorithm take ms ~0.7 (of a trigger of camera at the exit of the phase). I use the live signal to control a piezoelectric stack, by sending a voltage single sample to the analog output of a data USB-6211 acquisition card.

    Send this output voltage increases the time of my loop 4 m, I would really like to achieve a 1 kHz or better sampling rate. Is the problem with my DAQ card or with the processor in my computer? The DAQ cards of NOR can support these speeds?

    Thank you

    -Mike Chini

    Hey Mike,

    With USB, your loop rate will be around or under 1 kHz, even on the best of the systems. USB has a higher latency and less determism PCI and PCIe. You can get rates AO one much better sample on a PCI card, potentially a PCI-6221. We have a few HAVE points of reference for targets of RT for PCI, / AO in a loop, you should be able to get similar performance in Windows, but if you do a lot other treatments may suffer from your local loop rates.

    Hope this helps,

    Andrew S

  • The sampling frequency is divided between channels USB-6211

    I use a USB-6211 DAQ card.  The jury is announced with a rate of 250 kech. / s.  I started to take action with 2 channels and could not get the frequency of sampling of 125kHz, then when I tried to make measurements on 5 channels, I could get a maximum of 50 kHz sampling frequency.  This figure of 250 kech. / s is really the sum on all channels, or is there a way to get that channel?

    I have only a simple Laview program with a while loop, 1 assistant DAQ entry with 5 channels, assistant DAQ 1 exit with 1 output channel, box 'Relaxation and door' to catch a progressive input signal, a smoothing filter and graphics.

    250 kech. / s is an aggregation rate as shown on the first page of the document specifications.  This means that the device has a single A/D converter that is shared by all channels under analysis.  According to th etime to the multiplexer and all time for the internal amplifier, your maximum rate may be slightly less than 250,000 / N where N is the number of channels.

    Lynn

  • AI data seem to be fallen on the NI USB-6211 case

    Hi all

    It seems that, after a thorough inspection, I am having some problems with a DAQ USB (USB-6211).  I try to read and to capture a series of samples to a fixed dt for a fixed rate (i.e. 50 ksps / s to 50 kHz for 1 s).  At every point I have retrieve the data (using the vi DAQmx Read), I add the (recovered as a waveform) data to all previously retrieved data (using the vi Append waveform).  After that I captured my 50 kS, I then ship the data off the coast in a queue for processing in the frequency domain using one of the FFT routines. Pretty easy, right?   However, according to what is happening on the desktop, it seems that the data acquisition time can vary at least +/-20 we tell me that some of the sampled data may have been deleted (if only a few samples) and is irregularly spaced out in time.  It is a problem like falling none of the data is likely to skew the results in the frequency domain.

    If you have a thought, please let me know.

    Thanks, Matt

    Thanks for the timely response, kikiduu and I apologize for the delay in responding.  It turns out that I've implemented my evil FFT and it was question thereal I deal with.  Briefly, I was generating a tophat in the shape of signal in the frequency domain, and then using the IDFT to convert the singal to a time field that could be sent to the DAC.  When I got the signal that I had generated, depended on the result of the where the AO signal was sampled.  The simple answer to why it happened was with the windowing feature that I used.

    However, as you pointed out, my use of the DAQmx Read and add waveforms is unnecessary and causes data drops that I demanded a fixed number of samples each time.  I have since implemented the reading as you suggested and everything works perfectly (and uses a lot less time CPU).  Thanks for the comments.

    Cheers, Matt

  • Data acquisition high speed (200 ksps / s) with pci-6224 or usb-6211 is possible?

    Hello

    I need assistance to complete a task.

    The task:

    Record a switch contacts twists every 5 microseconds (200 ksps / s).  DAQ cards I have at my disposal at the present time are PCI-6224 and the USB-6211. The two cards are rated up to 250 kech. / s. I only watch 1 channel that will monitor the voltage.

    Here are the settings I use:

    CSR

    Continuous samples

    Sampling rate of 200 kech. / s

    Analog DBL1 1 sam chan

    timeout of 10 seconds (Read DAQmx)

    The problem:

    (1) every time I try to taste 200 kech. / s I get an error that reads

    Measurements: Tried to read samples that are no longer available. The requested sample was already available, but has since been replaced.

    Increase in the size of buffer, most frequently the reading of data or by specifying a fixed number of samples to read instead of reading all available samples would correct the problem.

    (2) when you try to taste at a much slower pace of 50 kech. / s, the speed of the loop iteration is not realizing this speed setting.

    My question is this: are these 2 cards (PCI-6224 or USB-6211) DAQ fast enough at my request and I do something wrong? OR

    I use the wrong hardware to accomplish my task?

    Thank you in advance,

    Gerardo

    The number of iterations has nothing to do with the number of samples if you do it right. You specify the rate and the number of samples you want and number of samples returned. You DO NOT loop 200,000 times. If you ask for 200 000 s/s and 200,000 samples, you will get this number of samples every second. It's really as simple as that.

  • OR USB-6211 is used to count climbing on board TTL

    Hello

    I'm new to NOR-DAQ cards, and so before buying whatever it is would like to know if it is possible to use a device, NI USB-6211

    County and bin amounting to edges of a TTL signal.

    What I want to do is to count how many rising edges of a TTL signal I get in a period of 1 ms; a 20 Mhz sampling frequency should be fine.

    I would like to use Matlab to control and read the number of edges that are counted as well as in the meantime write and read digital IO ports from the USB-6211.

    Is it maybe possible to leave the external TTL signal trigger a 6211 counters, an output then periodically (1 ms) and reset the value of the counter?

    Is it possible and if yes, is it a good idea?

    Thanks and regards,

    Manual

    Manual Hi

    In order to generate this signal, I could use a second timer mode continuous pulse Train generation, right?

    -> Right. You can choose between 2 options

    (1) get the signal to another device, for example signal generator or something like that. If you cannot use such a device, you must select the second solution->

    (2) generate the 1ms period square wave with the meter of the USB-6211 seconds

    I don't know a smart way to generate the 1ms period signal without the software side. You need the software to configure the second counter, route the signal to the second counter for the first counter and so on.

    Maybe you can use what is called "panel test" inside the Explorer Measurment & Automation to generate signal. The Measurment & Automation Explorer is a tool provided with the driver for the DAQ cards. The original purpose of this software utility is to configure your hardware, test and so on.

    I don't know if it works, but I imagine that the following solution:

    You use the test panel called inside the Measurment & Automation Explorer to generate the 1ms period signal (see attached screenshot and http://www.ni.com/white-paper/4638/en). You have no additional program to run the test Panel. Box USB-6211, you use a wire to connect the signal output of the meter of second at the entrance to the first counter. After that, you run Control Panel to test the generation of signals for the seconds counter. At the same time, you start your Matlab program and configure only the first counter. You will need to run the Testpanel all the time if you want to run your measurment.

    Not very nice, but maybe the only solution.

    Best regards, Stephan

  • Lack of charges, USB-6211 with linear gauge Mitutoyo (542 series)

    I use a USB-6211 box with a race of 10mm Mitutoyo Linear Gage (542 series, model LGA-110). The Mitutoyo has output similar to an encoder without the time by rev signal quadrature. (B has a phase shift of 90 degrees of A). Signals A and B are airline pilots. I have a k 2 5V to A resistance and another 2K to 5V to B, gives me a minimum of 0.05v and a maximum of 4.75V.

    The problem I encounter is that I seem to be missing certain counts that I can't always zero.

    I found that if I caress the complete range of meter and the return to zero in 20 seconds, I get a value close to 180 meter microphone. If I press the complete range of meter and the return to zero quickly in a second, I get a value close to 800 micrometer.

    If I caress the quick pledge on the compression and rebound more slowly, I find myself with a positive value. I caress the slow pledge on compression and quick on the rebound, I find myself with a negative value.

    As I said before, it seems miss me certain counts. With a pulse of each mic of 4 meters, it means I get only 2500 pulses per 10mm. This means that 10mm per second is only 2500 pulses per second. It seems slow for me, so I don't know what would be the problem.

    Does anyone have ideas for me to try?

    With this type of signal you should not missing any counts.  The time base on the box USB-6211 is 80 Mhz and therefore should have no problem to solve your two pulses per train.  I have a couple of steps that I would like you to try troubleshooting.

    1 to ensure that we plugged the inputs correctly to our DAQ hardware.

    2 ensures that we use both the non-reversed or two signals reversed.  Do NOT mix or 'type' of the signal.

    3 allows you to wire signals A and B in two inputs analog and we will try to read signals to ensure that the sensor is actually be set correctly by the sensor.  Be sure to taste pretty quickly--> 10 the frequency of the pulse train.  If you race through 10 mm in 1 sec--> 2500 pulses per second--> 25 kHz sampling rate.   Allows to check two things.  First we have a good TTL signals, and that we get the right number of charges.  If you reply to this thread plaese attach a screenshot of the present.

    4. we will try different encoder types x 1, x 2, x 4 in the DAQ assistant.  The x 2 and x 4 encoder allows the best sensitivity for small movements (which I'm not sure that it is the source of your proplem but it will be a good thing to check).  Types of encoder are discussed in more detail in the following developer area: quadrature encoder measures: How To?

    Let us know how it shapes to the top.

  • The PCIe for USB 6211 OEM replacement

    Hi you all,.

    We want to change our design to use PCIe card data acquisition, since we had a few USB driver problem in the past. Is the PCIe-6321 a good match to replace the capture USB-6211-OEM card

    Is there a better alternative?

    Thank you

    Fabrice

    Hello Fabrizio,

    Thank you for taking an interest in our line of PCIe cards DAQ. I took a glance at the USB-6211 OEM and PCIe-6321 to see if they are similar in specifications and capabilities. I would say the 6321 is a good match to replace your current USB card. As long as you intend to use no more i/o lines than expected or exceeds the designated sampling rate then it should be a good substitute.

    If you need high speed sampling or more i/o lines for various tasks, then another card can better meet your needs.

    The resources below compares several of our devices (USB and PCIe) X series.

    What is NI X Series? -1. Presentation of the product

    ---

    These links may also be useful during your upgrade:

    Major differences between series E, series M and material X NI DAQ series

    ---

    Guide to upgrade NI X series (USB to USB devices however)

    ---

    Kind regards
    Alex C.

  • Installation of the USB-6211 for DA

    I try to use a USB-6211 housing in a very simple system of Visual Studio C++. The final goal is to continuousely output for both channels to 180 samples per second. At this point, I have the following Setup:

    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateAOVoltageChan (taskHandle,
    devcmd, //physical channel
    ' ', //name assigned.
    -10.0, the production of //min value
    10.0, output value of //max
    DAQmx_Val_Volts, release //units
    "" scale //custom name
    ));
    DAQmxErrChk (DAQmxCfgSampClkTiming (taskHandle,
    "", //source (default OnboardClock)
    180.0, //rate in the samples per second
    DAQmx_Val_Rising, //active edge
    DAQmx_Val_FiniteSamps, finite number of samples (to change) //a
    samples_to_write //samples to acquire
    ));
    DAQmxErrChk (DAQmxStartTask (taskHandle));

    On the last drive, I get the message:

    Non-bufferered of NI by the equipment operations are not supported for this device and the type of channel. I can't make any sense of it. Any suggestions?

    One of your support staff helped on the phone. It appears as a somewhat obscure command

    DAQmxSetWriteRegenMode (taskHandle, DAQmx_Val_DoNotAllowRegen)

    It takes to get buffering to work properly. It is a command badly documented, and there is no real indication that this is necessary.

  • PWM - output meter (PFI4) USB-6211

    I managed to control a motor based on PWM signal output via USB-6211 AO continuous. Now, I'm trying to use the Terminal counter instead.

    Can't seem to make it work. NA not get a signal when link the PFI4 terminal to an oscilloscope.

    I don't know wheather my coding is wrong or does not have my wiring (i.e. of USB-6211 for motor continuous). I need to use the terminal of meter that I used the analog output to a different measure.

    Please advice. Attached encodings.

    Thank you very much.

    Front of conneting to DC motor, make sure first that the PWM is get generated correctly... use oscilloscope.

    And have you changed the constant (physical terminals) for your device...?

    Change to:

    Dev1/ctr0 & Dev1/PFI4 and the scheme of connection must be:

  • Strange analog output of USB-6211

    I just got USB-6211 to replace USB-6001 to set the clock to external sampling on analog output for LED lighting control. The part of external clock example works fine, but the analog output voltage is strange. To do self-monitoring, I connected control pin LED to AO0 & AI0 of surveillance in the NI MAX test panel and LED control on the ground at AO - GND & GND HAVE since I have both USB-6001 and USB-6211, I conducted tests on two of them with the same setting of wire. When I generate sine wave - 5V to 5V to AO0 (from NI MAX test panel), USB-6001 can monitor the same signal AI0, but watch USB-6211 - 3, 4V to 3.4V voltage truncated. I did the test separately (wiring one device at a time), so there is no interference between the two devices. USB-6211 past self-calibration and self-monitoring. Also, I did reset devices. I don't know why they would behave differently with the same configuration, and I hope that someone could help with this question. Thank you.

    Hi skuo1008,

    The USB-6001 can support + / 5 output current my from terminals to analog output, while the USB-6211 box can provide only +/-2 my current output.  It is likely that the load impedance is too low, causing the 6211 to hit its current compliance and thus cut the tension.  If you try to exchange your load with a resistance of at least 5 v/.002A = 2500 Ohms, you should be able to see the full +/-5V sine wave.  I suspect that your DUT has a words 3.4V/.002A = 1700 Ohms impedance.  You could use a device with higher output current or use a more current source buffer circuit.  If you do not need a bipolar output, you might also consider using digital lines to control the LEDs.

    Kind regards

  • Digital magnification of output using USB-6211

    Hello

    I'm trying to use the example of LV "Cont writing dig port - Int clk.vi" to generate a model.

    But I get the error-200077 on the sample clock. The popup error message suggests

    using "we demand", but it doesn't have the choice with the DAQmx.

    Any clue?  Thank you.

    It is correct. USB-6211 case doesn't have a digital time - analog base only. That's why the (63xx) X series cards are supported only for this example.

  • USB-6211 - digital output not supported?

    Hi all

    I can't use the USB6211 device port... I use daqmx with Delphi7 API functions.

    First of all, I tried this:

    DAQmxCreateTask('', @TaskDO);
    DAQmxCreateDOChan (TaskDO, PChar('Dev1/port0'), ", DAQmx_Val_ChanForAllLines);
    DAQmxWriteDigitalU8 (TaskDO, 1, 1, 1, DAQmx_Val_GroupByChannel, $FF, @written, nil);

    I had an error in the DAQmxWriteDigitalU8:-200012 (= digital output not supported). (???)

    OK, I tried to disable autostart option based on DAQmxWriteDigitalU8 and insert a 'manual' start in the code:

    DAQmxCreateTask('', @TaskDO);
    DAQmxCreateDOChan (TaskDO, PChar('Dev1/port0'), ", DAQmx_Val_ChanForAllLines);
    DAQmxStartTask (TaskDO);
    DAQmxWriteDigitalU8 (TaskDO, 1, 0, 1, DAQmx_Val_GroupByChannel, $FF, @written, nil);
    DAQmxStopTask (TaskDO);

    Now, I got the same error in DAQmxStartTask:-200012 (Digital Output not supported, once again). (?????)

    I don't understand.. 'Digital output not supported "? USB-6211 has 4 lines! What is the problem?

    I want to just turn on and off the lines from code...

    -Cs George-

    Well, finally I figured out...

    Here is the solution:

    DAQmxCreateTask('', @TaskDO);
    DAQmxCreateDOChan (TaskDO, PChar('Dev1/port1'), ", DAQmx_Val_ChanForAllLines);
    DAQmxWriteDigitalU8 (TaskDO, 1, @dummy, 1, DAQmx_Val_GroupByChannel, @bitmask, @written, nil);

    Digital output lines are on port1! Corrected parameter.
    And the part of the interface of DAQmxWriteDigitalU8 had to be changed (in nidaqmx.pas).
    I don't know why, but the AutoStart (dummy) parameter in the DAQmxWriteDigitalU8 function is ignored: function always starts task automatically, regardless of the value of autostart. But this isn't a problem for me.

    -Cs George-

  • USB 6211 Digital Out does not

    Ive got an acquisition of data USB-6211 (and LabView 2009) and Im trying to get the output (5v) device to run a relay on and outside. IM using a tutorial I found on Internet to make the diagram Labview (http://www.pages.drexel.edu/~pyo22/mem639/lab-usb6211DigitalInputOutput/lab-usbDigitalInputOutput082...) and the circuit is simple. I tried to run the DAQ Assistant to test if my output was working, and it is not. I'm not sure if my connections for data acquisition are correct or not. Any help would be useful.

    Thank you.

    Hello NT_Mech,

    Indeed, it is possible that you do not drive enough current for the relay.  You can check the specifications of your USB-6211 and see that the digital line will result in a maximum of 16mA.  That being said, your relay control current that is needed, you may need to run the two outputs in parallel to offer twice more common provided.  Recently, I drove a Soviet Socialist Republic of a Luminary Micro Prototype Board that did not provide enough current as well.  In the case of the tat, I was driving the relay by running two lines in parallel.

    You can always simplify the software side of things by opening the measurement and Automation Explorer (MAX) and right click on your device and select test panels.  "" ' Start ' programs ' National Instruments ' Measurement & Automation then expand devices and Interfaces. Right-click and select Test panels.  You can then configure a digital output for your USB-6211 and toggle On / Off and check out.

    Best,

  • Can I use two USB 6211 to replace a USB-6009

    Hello

    I got a labview vi., 5 output channels digital, 2-channel digital input, 2 analog inputs are necessary for the execution of this vi.  Initially a 6009 usb is used to run the vi. But I have only two usb ports 6211 now, which has digital to digital for each data acquisition 4 inputs and 4 outputs. I wonder, can I use two usb 6211 to run the vi. ? What should I do?

    Reverse lines are wrong, does that mean it will display 0 for false and 5 V 1.

    Active drive is the normal mode of the digital output: it generates tension when said.

    I forgot one thing: that you are behind the wheel of these lines, how much power do you need?

    Analog output is less powerful, it can give only 2-4 mA, while the digital output 6009 could give 8 my.

Maybe you are looking for