Code C++ for USB-6211

Hello

I was wondering if the code examples provide with the DAQm base driver software, written in C, is fully compatible with C++.

I'm trying to develop my own C++ program, that will record the tensions of 3 different sources using the box USB-6211.

Hello burned,

I know a lot of code written in C can be compiled in C++, but I can't promise that the DAQmx Base code written in C will work.  Have you tried to compile an example of C in C++, and if so, did that work for you at all?

Kind regards

Tags: NI Software

Similar Questions

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

  • Satellite L550 - error code 43 for USB

    I have a Satellite L550. There are sometimes problems with the recognition of USB devices. I use Windows7. In Device Manager, I found the error code 43 is displayed under the USB controllers section. I already read on the Internet; the problem might appear because of a capacitor on USB controller that stores a charge to keep certain settings. These settings can get damaged. The proposed solution is to unplug the computer and empty the load completely from the map. When the code 43 error, any device USB is not properly recognized.

    Does anyone know the problem? Is the scenario that I described the source of the problem, I don't know, but I think it could be?
    Is there a definitive solution to the problem?

    Thanks for any help.

    > I already read on the Internet. the problem might appear because of a capacitor on USB controller that stores a charge to keep certain settings

    It can also take place... Have you tried to update the chipset utility from the [Page Driver Toshiba | http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp]? The driver of the usb controller is responsible for these functions, which is part of the chipset drivers. Thus, it is worthy to update

  • 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

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

  • Code 31, for my 2 GB USB - stick USB Device Manager,

    Hello world

    I use a HP pavilion a610t, 32, Vista premium edition, 2. 4 g, 3 G of ram, w, 4USB ports. I installed a gang self-powered USB 2.0 w/10 usbs, sometimes it turns on at startup, sometimes not and I re - plug for my system to recognize. I don't see the error messages for the band, but I got an error for 2G USB - stick in the Device Manager: code 31, tried to reinstall a driver or driver update, but it says driver is up to date. the appliance works once it is on. Is that what the problem of the USB - stick or tape USB? Also, at startup I get all my other USB devices including media Pocket Bay K: entry w/PC OEM pop ups asking what I want to do and if I want to scan or to execute without scan, I tried scanning to see and it did nothing, I didn't not lose my media in the device either. I also code 10 for my reader to CD-DVD E: that ejects and turns but does not load the driver so I don't see anything, I tried all the suggestions, reload driver, Plug connections, high-low own filters, re - install the driver, all to nothing does not. Device Manager still shows my drive with a flag and error 10 (driver may not load) are 2 separate issues but I have listed both, because they may be related, I want to understand the thumbdrive, firstly because it is a new problem, and I use my allot USB drives to save all my important files. The problem with the drive, I tried all the suggestions so far, if someone has any ideas to help I would be very grateful
    Thank you all, boulonman/Alan

    Hello

    It doesn't seem to be a model available in HP you specified.
    See the site:
    http://h10025.www1.HP.com/ewfrf/wc/pfinder?cc=us&DLC=en&LC=en&tool=&query=HP+Pavilion+a610t#n41
    I suggest you to check the model number again.
    The CD/DVD software burning should be uninstalled to uninstall or change a program and not Device Manager.
  • Video device USB has a driver problem__ __There is a problem with the driver for USB video Device.__Device information __Name: __ID USB video device: USB\VID_05CA & PID_180C & MI_00\6 & 69C3BD0 & 0 & 0000 code __Error: 10 _ _ _

    I hava a dell inspiron 1440 with windows 7 and a a few days ago, my webcam was working just fine but know that it gives me this after troubleshooting

    Has a USB video device driver problem
    Not fixed
    There is a problem with the driver for USB video device. The driver must be reinstalled.
    The device information
    Name: USB video device
    ID: USB\VID_05CA & PID_180C & MI_00\6 & 69C3BD0 & 0 & 0000
    Error code: 10

    Hey laloo.16,

    As the error message states clearly that reinstalling the driver is required, please do the same. You can uninstall the driver that is currently installed from the Device Manager.
    To access Device Manager:
    1. go to start and type Device Manager.
    2. Select Device Manager in the control panel list.
    3. go to your device.
    4. to remove:
    Right-click on it and select Properties.
    5. Select the driver tab and click on uninstall to uninstall the existing driver.
    6. close Device Manager.
    Now go to the link below. Download the Dell WebCam software for your product.

    http://support.Dell.com/support/downloads/DriversList.aspx?OS=W732&CATID=-1&DateID=-1&impid=-1&OSL=en&typeid=-1&FormatID=-1&SERVICETAG=&SystemID=INSPIRON1440&hidos=WLH&hidlang=en&TabIndex =

    Please choose the appropriate version of Windows 7.  Install the driver and see if that brings your webcam to work.

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

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

  • Equium - Windows cannot load the device driver for USB dongle

    I've been using a dongle for about a month without problems, but now it is said (in Device Manager) "Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39) »

    -what it means and how can I solve this problem?

    Hi Ozcat,

    What USB dongle is that exactly?
    What cell phone do you have?
    What operating system is installed?
    Have you already tried to reinstall the driver for USB dongle?

  • USB-6211

    Hi, recently, I ordered the DAQ USB 6211, I wonder how do I connect a quadrature encoder to the DAQ meter, I would like to only use a single meter, pin 1-4, my encoder has two channels only, CH A and CH B.

    Best regards;
    Jamal

    Hi jm56789.

    I think that the information you are looking for is located on Via MAX (Measurement and Automation Explorer) by creating a task of angular Position for your device.

    The default screen that should come has the Configuration tab selected.  In the middle of this component, there is a box that lists the "connections".  In my case, it says channel should be on PFI0 and canel B on PFI1.

    I hope this helps.

    Michael G

  • 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

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

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

  • USB-6211 w / DAQmx

    Hello all,.

    Asking if any user can check that the DAQmx; Channel Properties node; Filter; Calculation of the average of windowing is supported by the NI USB-6211 OEM Board?

    This feature is essential for the intended application and need to know before ordering.

    Group thank you,

    Chris

    Hi Chris,

    > By 'no it isn't' I assume you mean that it cannot be what I need. Make you that statement, even if you don't know whatever it is general or specific to the needs of my application )

    I wrote "No, it isn't" as an answer to your question. I should write, "no, the AI. AveragingWinSize property is not supported by the NI USB-6211 OEM Board. »

    Brad

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

Maybe you are looking for