USB-6215 DI ReadMultisamplePortByte rate is only 2 kHz

I'm trying to use the USB-6215 for determine the speed and direction of a fan with two optical sensors. I use the following code in a .NET library to get 1000 samples of two lines and use the data when optical sensors are enabled to determine the speed and direction.

using (Task ctr0 = new Task())
{
  using (ctr0.DIChannels.CreateChannel("usb6215/port0/line1:2", "", ChannelLineGrouping.OneChannelForAllLines))
  {
    ctr0.Stream.Timeout = 500;
    DigitalSingleChannelReader dReader = new DigitalSingleChannelReader(ctr0.Stream);

    try
    {
      // Start the task
      ctr0.Start();
      byte[] results = dReader.ReadMultiSamplePortByte(1000);
      ctr0.Stop();
    }
    catch (DaqException e)
    {
      Console.WriteLine("DAQ Exception: " + e.Message);
    }
  }
}

// Analyze sample data and calculate speed/direction
//...

It seems to work fine, except for one thing: the samples seem to only take at 2 kHz. This means that to some rpm, the acquisition of data sometimes will lack one optical sensor being activated. According to the datasheet, the USB-6215 is a sampling frequency maximum of 250 kech. / s, and looking through some other threads, this rate is divided by the number of channels you are sampling (i.e., samples of two channels gives you a rate of 125 ksps / s for each channel). My question is, why my sample notes so low, and how can I taste at a faster rate?

Sheet indicates that the rate you quote is for the analog input. It clearly states that the digital I/o is a programmed software and you have the chance to see 2 kHz. The max with a timing of software is usually around 1 kHz.

Tags: NI Hardware

Similar Questions

  • Example of Code OR-DAQmx (C/C++) for playback of 8 differential analog inputs on USB-6215?

    Are there examples using the API C/C++ of NOR-DAQmx in an application that illustrates how to read all 8 analog channels (differential) on a device USB-6215 or similar?  I can find examples to read only one channel, but nothing for multiple channels.  When I try to read all 8 channels, I get only entry on the first channel.  Any help would be appreciated.

    Kind regards

    Bob

    Brandon:

    Thanks for the tips.  I have it working now.

    Kind regards

    Bob

  • To write a waveform to two outputs analog of DAQ(USB-6215)

    Hello

    I use USB-6215, who has two analog outputs and having to send the same waveform through the analog outputs two of my DAQ. at the same time. in fact, I have a text file consisting of a code word (please see the attatchment) with dt, freq and annex 0 in the first column and other columns contain the word coded. Withe the help of dt, the rate and the data I did a waveform with the wave of construction VI. I am able to write this wavefrom through an analog output A01 right now. I want to know how I could write the same analog waveform other AO0 out simultaneously. I use a source of external triggering via PFI0 to be triggered. for now, I use the write.vi DAQmx (analog channel 1 DBL 1 d N samples) and DAQmx create virtual channel.vi with dev1/ao1 as the physical channel. For more information, I am attatching the program along with the text file. Please see page 2 of my structure of matter in the VI attatched.

    Thank you.

    Kind regards

    Raja

    Hi Steve,.

    his works now. I changed the instance of writing DAQmx for analog waveform samples N channel N. still, I now that a single waveform. How could I do like two like it (writing DAQmx) will not accept a single waveform as the entry as the number of channels in the task will now be 2 where, under the waveform has an exit.

    Kind regards

    Raja

  • External USB 2.0 Hard Drive detected only 10 seconds in the Device Manager

    I am running Windows 7 and trying to plug my hard drive 200 GB from an old computer with XP in my new computer via USB 2.0 to an external case.  The external box is its own source of power and requires no drivers. When I plug it into the USB port, I hear the Bell indicating the window detects an external device and she appears under USB devices in Device Manager, but only for about 10 seconds then disappears.  It never appear in disk management or in the computer as a mass storage device.  I tried to use other cables/USB ports. I tried exchanging the external box for a new thought the first one was defective, but that did not help.

    Hi Stroke77,

    ·         Did you get the computer pre-installed with Windows 7?

    It is about if the external drive worked when the computer was working with Windows XP or Windows Vista.

    Here are some steps that may help you solve the problem.

    1. plug in and turn on the external USB hard drive
    2. right mouse click on workstation
    3 left click on manage
    4. click on Device Manager
    5 expand the USB list
    6 find the USB device to USB hard drive
    7. the right mouse click - Uninstall
    8 turn off the external USB hard drive
    9. turn on the external hard drive USB and let it find and install the driver
    10. it should work

    You can see other steps from the link below:

    http://social.technet.Microsoft.com/forums/en/w7itprohardware/thread/dd9cd509-F9AC-4295-a75b-863f92f5595f

    Thank you, and in what concerns:
    Swathi B - Microsoft technical support.

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

  • How to make Toshiba USB 250 GB HARD drive read-only?

    Hello

    I just plug a Toshiba USB 250g external hard drive to replace all the sticks of memory, I've been using.

    I'll use this external hard drive to copy files to other computers and I would like to know how to make the drive read-only.

    Moreover, all the other tips to protect the disc would be extremely welcome.

    I use a Dell with Windows 7 laptop.

    Thank you very much

    Dougal

    I don't know what HARD drive you have exactly, but I know that Toshiba offers a software protection with external hard drives.
    Did you check manuals? Is something like that provided with your HARD drive?

    Maybe you need to use some third party software part for the protection of files on the HARD drive. Google all over the place.

  • USB 2.0 Ext. DD causing USB error on any pc. -Only USB 1.0 speed

    Hey,.

    I have an external hard drive Toshiba 250g. Worked well for a while, always very well. Suddenly one day I turned it on and it takes a long time for the PC to recognize (4 min), then a popup told me that the HARD drive is connected to a USB port on low speed and I would plug it into a faster, and it displays one list of other 6. However, my pc has only 2!
    Any other ext hdd works fine however.

    What will fix it?
    Thank you

    Have you tried the HARD drive on another PC?
    And shows the same behavior? YES: The HARD drive has a problem / no.: your PC has a problem (I guess then the driver/software)

  • Broken screen - problems of transfer of files on USB stick due to the "read-only".

    I have a screen broke on my G2 bike. I can turn the phone on and off, but I can't get past my password because the screen is unresponsive. When I connect the phone to my pc via the usb port I can still access the files because of the default value to "charge only".

    Does anyone know of a way to change my phone to another parameter as 'charge only' that does not involve the use of the touch screen?

    I tried to use adb to transfer my files using the android devices Manager or command prompt but usb debugging is disabled.

    Even if usb debugging was, would not be required to change the settings for usb 'charge only' in order for my pc to detect the phone?

    The otg worked perfectly. With the help of a mouse instead of the touch screen, I was able to activate the bluetooth and transfer the files this way.

  • Re: PX1256E-1TVH hybrid USB TV Tuner - see black screen only

    HY guys,.

    I bought this USB to watch a free analog channel on my laptop.
    I installed correctly the savvy TV software; I get the channels and he finds more than 300 free TV progs.
    But when I look I see black screen and there is no sound for all channels.

    I tried in another laptop and it works correctly, I do not understand why.
    I installed all the codecs needed.

    Hello

    You use laptop LCD only or one external monitor too?

  • Why won't my display of current heart rate by only the 1 min there is rate watch?

    My screen iwatch only my heart misses the past, but when I try to get a current read always say try again. It will display the current heart rate in large print, but now it doesn't. Is there a way to reset the access point?

    Hello

    It can help to restart your iPhone and your watch. Turn on both devices off the power together first, and then restart your iPhone before restarting your watch:

    -To switch off your watch: press and hold the button side until you see the cursor off the power; slide it to turn off;

    -To switch on: press and hold the side button until you see the Apple logo.

  • No CD or USB-boot on Satellite C850-Z19 - only win 8 starts

    Hello!

    I just bought a Toshiba Satellite C850 - Z19 (Windows 8 is installed).

    Although I edited the BIOS to boot with the CD and USB before the HD, my usual bootable Debian Lenny and Squeeze CD (32 or 64 bit version) can I boot not, only Windows 8 finally made.

    I tried several BIOS config, I don't remember; .the retailer (using Ubuntu) could not help.

    Is this possible?

    jchrbe

    A new PC have new starting secure UEFI. You may need to provide what is called a signature key. Try to search these terms and see if a solution appears.

  • 6218 USB OR on Mac OS - read only 8 differential channels?

    agree General information, I am an architect of LabVIEW, been drawing code almost 16 years on the PC. A customer needs a MAC OS data acquisition system - I use a new MacBook Pro with a NI USB 6218 OR DAQmx Base 3.4 (btw this download of NI DAQmx Base came with C examples only and not LabVIEW, whats with that?) In any case, after a bit of a learning curve, I have the voltage reading material (Dev1 / ai0:7) (unfortunately) is not as robust as it is on a PC, but it works. The 6218 is 32 channels SE or 16 differential, but if I try to play 16 channels (Dev1 / ai0:15) I get the following error:

    Error 200077 specific configuration of terminal of input value is not valid for this channel

    I'm attaching a VI small I used to get the material upward and running.

    Any comments would be very welcome

    thanx

    lmd2

    This is not the appropriate channel list. When you select differential, ai0 is paired with ai8, ai1 is paired with ai9, etc.. You don't list the second string in the pair, so for 16 channels, you must specify Dev1 / ai0:ai7, Dev1 / ai16:ai23

  • Continuous monitoring of the mouse (USB) with fixed sampling rate (500 Hz)

    Hello

    I'm quiet new to LabView and there are simple applications that I am still unconfortable with. I have to constantly monitors some analog channels to my DAQ and simultaneously to the value of X and Y of the mouse (USB). Signal acquisition of surveillance data are a simple procedure, but how to capture X and Y of the mouse as contibuous undulations sampled 500Hs (for example) so I can merge them to signal data acquisition? What is the synchronyzation of the signals of the acquisition of data and the extra-DAQ chanels created with data from the mouse?

    Thanks a lot for your help and your patience!

    Olivier

    Quick explanation:

    When I said "throw a timed loop around this" what I really wanted to throw a loop timed around "acquire input data.  I don't know how it applies to these screws (it certainly when you talk about material!), but generally when talking to a device we open/close only once and loop on the functions of acquisition/generate.

    -memoryleak

  • USB Flash drive can be used only on 1 computer?

    I have the Cruzer Blade Flash Drive 8 GB USB key.

    It seems that I can use it only on a single computer. I am running Windows XP Home SP3.

    When I try to copy files to the flash drive on the second computer, I get an error message.

    "You are currently on a guest PC you can not create a new online backup. '.

    Please notify.

    DRM

    I decided to call your Technical Support number.

    1-866-SANDISK (726-3475)

    First thing I asked was if I could copy files on the flash drive using SanDisk Secure Access Manager on multiple computers? He said: "Certainly."

    So, then I explained that I was getting the error I described above on computer 2.

    He had me try again. I copied a single 24KO file and this time there was no errors.

    Naturally, I am always intrigued by the error message I received last week. It was agreed that the text of the error message is misleading and can indicate a variety of problems such as a bad sitting flash drive for corrupted data or a user error is a copy & paste or click on & drag. He recommended to click & drag as the best option.

    I make backups more before this closing. But so far so good.

    Michael T.

    Software Engineer Senior

    San DIego, CA

  • Can read/write internal NAS200 fine readers - USB drives seem to be read-only

    I seem to have the opposite problem of most people.  I have two internal drives in a RAID 1 array on my NAS200 and I have no problem with them.  I can insert a flash drive into one of the USB ports and I have no problem reading and writing to it.  I can even insert a USB camera card reader and can read and write to him as well.

    But I can't seem to write to an external drive, I have plug into one of the USB ports.  I tried several USB drives - none of them work in the NAS200.  They WILL work on my PC and my MAC Powerbook. I tried several disks in a thermal BlacX doc take a 2.5 external hard drive case and another box of 3.5 inches.  I have tried everything I can think of - have had this problem since I purchased the NAS200 4 months.

    Any advice on how I can write on a USB external drive attached to the NAS200?

    Thank you

    Without backup

    Your USB device is probably formatted to NTFS, and the NAS200 only supports NTFS in read-only mode. If you want to write to a device via the NAS200, it must be FAT or FAT32 format.

    = Jac

  • 2 PCs to a printer with Staples USB 2: 1 splitter - work light only one?

    I have two computers to a printer with Staples USB 2: 1 splitter but only one of the LEDs are lit and only that one works.  When I reverse the son again once the same side on works.  Is this new defective product or only light #1 and you must constantly spend to print from alternation of computers?  Thank you very much ~ is probably going to return the product because it does not work otherwise.

    Hello

    I got it now... did not know there was an installation CD inside packing... happy that I kept the package because I thought I was going to come back he ~ works great!

    Thank you

Maybe you are looking for