Why the following code causes a time-out when you try to read a finite number of samples of the USB-6216?

I do not have Measurement Studio, but I use the 4 available with DAQmx .NET support.

The following code throws a timeout when calling ReadMultiSample(). Can someone please tell me what I'm doing wrong? I would get 40 000 samples with a sampling rate of 20 kHz. I've renamed by device USB-6216 of 'Meas1' by using MAX.

[edit] I want to emphasize that I use AnalogMultiChannelReader because I intend to grab more than one channel once I understand that.

Thanks in advance!

            using (task task = new Task()) {}
task. AIChannels.CreateVoltageChannel ("Meas1/ai1", "", AITerminalConfiguration.Differential, -0.2, 0.2, AIVoltageUnits.Volts);
task. Timing.SampleQuantityMode = SampleQuantityMode.FiniteSamples;
task. Timing.SampleClockRate = 20000;
task. Timing.SamplesPerChannel = 40000;
AnalogMultiChannelReader reader = new AnalogMultiChannelReader (task. Stream);
task. Start();
samples is reader. ReadMultiSample (40000); // <-- timeout="" occurs="" during="" this="">
task. Stop();


I forgot to put the SampleTimingType:

task. Timing.SampleTimingType = SampleTimingType.SampleClock;

Tags: NI Software

Similar Questions

  • Why my network time-out when you try to download the update for ipod?

    I keep trying to download Ipod software version 5.0.1 which takes about 2 hours, but after an hour or two, says network error message has expired. I checked all the settings that I found but nothing helped.


    I removed the suggestion of Brian Tillman on the accounting in the Forum Feedback since I went ahead and moved this thread in a forum more appropriate responses.

    However, I still agree with his second suggestion to ask in the forums of Apple. As you mention that this problem occurs by updating your iPod, I think there must be a problem with her or with iTunes which is at the origin of the network to time out.

  • AMT: operation time out when you try to debug via vs2005 Server Explorer

    using v110621 of ODP.net

    I have a valid connection to an oracle 9i DB. If I set a breakpoint in a stored procedure then click right sp in Server Explorer and to "start debugging".

    the immeadite window reads: -.

    The PL/SQL debugger starts.
    PL/SQL Debugger is listening on the port 49152.
    The database cannot connect to the PL/SQL debugger.
    Ends of PL/SQL debugger

    I get the following popup error message

    Server Explorer

    An error has occurred during execution of the procedure/function:
    ORA-30683: failure connecting to the debugger
    ORA-12535: TNS:operation expired
    ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
    ORA-06512: at line 1

    So im not sure what I should be specifying where to the debugger attaches?

    found this on the cshays blog, but I still don't understand if its something that I need to define locally or on the server?

    Any help is greatly appreciated.

    See you soon

    In my case the problem was caused by multiple NICs on my development machine.
    ORA_DBMS_JDWP has been set at ip_address of wireless adapter which was on the other network segment as the oracle server.
    Rotation of the wifi adapter and then restart visual studio solved the problem.

    If you are using vmware workstation that ora_dbms_jdwp can also be assigned to the IP address of the virtual map of vmware.


  • error code 0 x 80246007 appears when you try to install updates and the windows store purchases.

    error code 0 x 80246007 appears when you try to install updates and the windows store purchases.

    any help appreciated

    Original title: error code 0 x 80246007


    Please try the patches for Windows Updates:
    And for store related issues, use Troubleshooting Windows App tool:
    Hope this helps, good luck :)
  • "Popup error ' A:\ is not Accessible, incorrect function" when you try to read the "A" drive in Explorer.

    When you try to read a disk in the 'A' drive from Windows Explorer, I get a Popup with a white 'X' in a red circle and a message that "A:\ is not Accessible" "Incorrect function" and an OK button at the bottom.  It happens to any disk, formatted or not, with the files or empty.  I replaced the disk drive - no help.

    I don't know if it's a windows setting went crazy or a motherboard problem.  My BIOS seems correct.  If I do a 'fill' of window hardware in administrative tools he tells me that I have data on the disk.

    I have XP - SP3.

    Any ideas-

    go to a command prompt and type "sfc/scannow" (without the quotes) and let it run... see if this is helpful at all.

    Hope do you feel better soon.

  • Impossible to download and install KB 948465.Error code 80070570. Problem started when you try to install a package of new McAfee after uninstalling old. Also unable to follow the links in the e-mails. I tried the system restore.

    I can't return Macafee for them to help me

    When you uninstall McAfee, it often leaves remainders you need the tool to remove.

    You will have to contact McAfee yourself.
    Take the phone Option!

    It is a separate link under the Chat/email link.

    Click on 'Customer Service phone' > put to the United Kingdom as country > phone number > Contact McAfee



    Information about Service Pack 2 for Windows Vista and Windows Server 2008


    Read the info at the link above.

    If the above does not, Windows Update issues:

    Windows Update Forum:

    This is the recovery and repair of Vista Forum.

    You will get the best help for any problem of Update/Service Pack in the Windows Update Forum; the link below:


    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

  • BlackBerry Smartphones run-time error when you try to synchronize the Blackberry

    I recently updated from the Blackberry pearl for the "BOLD" with the new desktop software. Since the upgrade, I am more able to synchronize microsoft Outlook for my Blackberry "BOLD". When you try to configure the synchronization I recievethe Runtime error:

    Impossible to find in the file system table. I tried all kinds of patches without solution, does anyone have any suggestions?

    Hi and welcome to the Forums!

    I found this KB, although the wording of the error is just a bit different... but maybe it'll help?


    Good luck!


    Due to virus I had to rebuild PC using the RECOVERY partition on hard drive. All windows updates have been applied to date (August 2011). Before the virus problem (July 2011) WAS able TO SELECT THE "MASTERED" OPTION WHEN YOU are GOING to USE WINDOWS TO BURN a VIRGIN DVD + r. NEW once AGAIN, this WORKED BEFORE, NOW THE MASTER OPTION IS GRAYED OUT.  I have a brand new DVD + R blank and tried several of them thinking it was the disk (I've used this same brand (magnavox) DVD + R 4 years now never this problem of the "controlled" option is grayed out.) I use the same DVD burner which came with the PC and it allowed me to select the option "Mastered" last month (July 2011). I am using Windows HomePrem 32-bit OS (originial system that came with PC and this allowed me to select the mastered option last month. I applied all the updates Win at present. I have no other problems with the PC. Once again, driving the nail: this WORKED BEFORE, last month on the exact same hardware and the software/OS (Juillet2011), then why this option appears GRAYED out now?  This question has been asked before and 'experts' simply stressed totally USELESS MS pages showing how to select either under control or direct - I DO NOT NEED THIS HELP as I ALREADY KNOW HOW TO SELECT either option and what each is for. Also the other 'fixed' DOES NOT APPLY to this situation. (Do NOT send me to the following links because they DO NOT ANSWER to THE QUESTION: http://answers.microsoft.com/en-us/windows/forum/windows_vista-hardware/burn-a-disk-mastered-is-unavailable-grayed-out/9eb41f09-1778-e011-8dfc-68b599b31bf5?page=1&tm=1312314316719#footer or http://answers.microsoft.com/en-us/windows/forum/windows_vista-sound/mastered-format-option-grayed-out/aee1469f-1095-436c-9f12-acce80c2bb99.) These 2 links DO NOT ANSWER THE QUESTION, so answer the question, do not send us in circles, always looking for the answer.  How SIMPLY THE QUESTION IS: Fix us the radio button for 'Mastered' so that it is NO LONGER GRAYED OUT when you insert a brand new, clean the DVD + R in my DVD burner (same that I had for years, which worked before) on my Vista 32 bit OS HomePRem? I have a host of (222 blank GB) of disk space and a lot of RAM (4 GB) and again I WAS able TO select the "mastered"option before my restoration." Help!

    Hi RandyDonaldson,

    You can check out the following link and try the suggested steps to fix the problem.


    The above link contains third party links provided by other users.

    Note: The use of third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information is useful.

  • Windows media player error "Windows Media Player has encountered a problem when you try to read the file" after burning CDs.

    Original title: "missing songs" in my windows media player then burn them on several cd :((

    I burned songs to several cd using my Windows media player to make different Cd, but after I returned to my library all the songs that I burned to the CD have disappeared, they are there, but they won't play it is as if they have been deleted, a window appears saying that windows media player has encountered a problem when you try to play the file. I did not notice this until after Cd burning a few I can't do more because if I keep going I'm not going to have more songs in my library! I don't know what to do im going crazy, it took me a long time to get all of these songs and now he disappeared! I have Windows 7 Ultimate is the version 12.0.7601.17514 hope that helps

    They were playing before you burn CDs?
    Method 1:
    Open the troubleshooting Windows Media Player settings Troubleshooter

    Method 2:
    This problem may be due to database corruption. You can delete the Windows Media Player database and check if the problem persists.

    Steps to clear the database of windows media player:

    a. exit Windows Media Player.
    b. Click Start, run, type %LOCALAPPDATA%\Microsoft\Media Player and then click OK.
    c. Select all files in the folder and then click on Delete on the file menu.

    Note you don't have to remove the folders that are in this folder.

    d. restart Windows Media Player.

    Note: Windows Media Player automatically rebuilds the database.

    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:

    a. exit Windows Media Player.

    b. Click Start, click Run, type % LOCALAPPDATA%\Microsoft and then click OK.

    c. Select the Media Player folder, and then click on Delete on the file menu.

    d. restart Windows Media Player.

    Note Windows Media Player automatically rebuilds the database.

  • When you try to read the book to Win 10 PC get message E_ADEPT_NO_TOKEN?

    I downloaded an ebook and when I try to read I get an E_ADEPT_NO_TOKEN error message.  What is going on?  Other CMHA ebooks open very well.

    E_ADEPT_NO_TOKEN there is an error in the file itself. Download the new file otherwise work ask the Depo to check the download of the file.

  • USB 8451: Is the controllable time-out when you make an I2CWRITE I2CREAD?

    Sorry if this isn't in the right advice.

    I use the NI USB-8451 box make communication I2C to talk to multiple devices.  I would like to put some features in my program to set up a list of devices that are connected to the bus.  It will attempt to communicate all 112 available addresses.  I tried testing this point by connecting the USB-8451 housing to any device and providing the address 10. It took about 5 seconds for the USB-8451 timeout box.  It would take a long time to proceed to any address 112.  So my questions are:

    Is it possible to shorten the duration of the timeout?

    Is there a better way to do this?


    Although the value of timeout is not adjustable, I was able to interview everyone address 112 using the API script fairly quickly.  Here is the VI I've used.  Let me know if it helps.

    Have a great day!

  • Windows Media Player error when you try to read the file: error downloading codec

    Yesterday, I got no sound and video, today I have sound but no video.  What is happening with this?

    I updated my drivers and now the video does not work.  I use Windows Media Player c.  When I click on read the file, in the black bar at the bottom ready it flashes very fast "error downloading codec".  Before I updated the drivers, I got the video with no sound.  Where this codec disappeared to?   How can I get that back?

    I have updates for the 9 Series Player and I'm happy with it.  If I move up to 10 or 11, codecs and drivers will work with it automatically or will I have the same problem?

    OS: Windows XP sp3

    Thanks for any help, Cdee.

    Hi CDEKV,

    Check to see if the following is useful.

    Method 1: Follow the steps in the below article mentioned to see if it helps.

    How to Download Codecs automatically in Windows Media for Windows XP player

    Method 2: Install the Codec Installation Package to check the issue.

    Download details: Codec Installation Package

    Method 3: Upgrade to the latest version of Media Player.

    Download Windows Media Player - Microsoft Windows

  • Error "your license may not be downloaded, put to upgrade to internet explorer 7 or higher, I have windows 9" when you try to read the torn pieces.

    Actual title: windows media player

    Hi guys ive update to windows 7 on xp, but having a problem of playing music with media player 12. IM tearing my drive and it works but when I try to play a song, it goes to the web and says your license may not be downloaded, put to upgrade to internet explorer 7 or higher, I have windows 9.

    So to make sure she wasint my disc I downloaded i tunes and they all copied without probs and play without a disc loaded.
    Can anyone help please id prefer to use media player

    Hi Grego,

    Thanks for posting your query in Microsoft Community.
    You are not able to play songs torn on Windows Media Player 12. I'll be happy to help you with this problem.

    Method 1: I suggest you follow the steps to run the troubleshooter from the link and if it helps.
    Open the troubleshooting Windows Media Player settings Troubleshooter
    Open the troubleshooter in the Windows Media Player library
    Method 2: If the problem persists, I suggest you delete the database of Windows Media Player. To do this, follow these steps:
    (a) output Windows Media Player.
    (b) click Start, run, type %LOCALAPPDATA%\Microsoft\Media Player, and then click OK.
    (c), select all the files in the folder and then click on Delete on the file menu.
    Note: You don't have to remove the folders that are in this folder.
    (d) restart Windows Media Player.
    Note: Windows Media Player automatically rebuilds the database.
    If this does not resolve the problem, disable the Windows Media Player database cache files. To do this, follow these steps:
    (a) output Windows Media Player.
    (b) click Start, click Run, type % LOCALAPPDATA%\Microsoft, and then click OK.
    (c) select the folder Media Player and then click on Delete on the file menu.
    (d) restart Windows Media Player.
    I hope this helps. Try the above steps and get back to us for more assistance and with the requested details, if the problem is not resolved.
  • Error Code 1327 Invalid Drive Z:\ when you try to install a program

    I found this solution to the question on the forum

    1. Check that the values under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders use valid drive letters.
    2. If there is no valid drive letters, change them to point to valid readers
    3. Try to install the software and check if that helps.

    This method works.  I changed the references to the Z drive in the registry and I am able to install the program.

    However, drive Z is not an invalid drive.  I have mapped a network drive to Z:\ and changed the place of My Documents, my music and my pictures in a folder on Z:\.

    Am I destined to temporarily change my registry keys whenever I want to install or uninstall a program?  There must be a better solution.

    I guess when you install a program, you get a UAC prompt to raise. This will switch you to another opening of session with a full administrator token. Information on mapped drives are specific to each logon when the high performance you do not see the drives mapped unelevated session.

    It's quite complicated so, rather than give a long explanation, I suggest you watch the following presentation addresses this question in the section from 49 minutes. The mapped drives is discussed 53 minutes.


    I guess right here - try the drive mapping in a command prompt before starting the installation.

    Or use the full name of the network in the folder redirection instead of the mapped drive letter


    Or let your user files in their default location and add folders to the network disk libraries


    Which of them is practical depends on the nature of the network drive.

  • Why do I get a disabled account error when you try to log on Itunes

    When I try to download an app on my Ipad Air2 I keep getting 'Account disabled for security reasons' reset password. I now have about 40 times and I get quite sick. I can connect on apple and Icloud without problem.


    Go to bottom of homepage itunes support itunes.

    See you soon


Maybe you are looking for

  • just reinstalled firefox, but I still have a bug

    wouldn't my password to connect to firefox. so I asked for an email reset, had this message instead: "Account device notice activity begins synchronization with the devices connected to your Firefox account." What should do? In addition, after reinst

  • Update to Apple TV causing 7.2.1 of network problems

    Hello Since the 7.2.1 update has been installed on my 3rd Gen Apple TV, I was not able to maintain a stable network via ethernet or Wifi connection. I tried to reset my base station Apple TV and Apple Extreme several times - this has resulted in the

  • Music Maker 16 crashes in Windows 7

    Whenever I run MM16 in windows 7, it freezes. The only way I can get out is obtained in Manager tasks and complete the task. I contacted Magix through several emails and got nowhere. I am very satisfied with their lack of technical support. Does anyo

  • Orientation of the accelerometer / rotation

    Is it possible to determine the rotation round a particular axis with the accelerometer, or you would have to assume its zero from the start and try and calculate using the acceleration of the other two?

  • MCU selfview

    Hello I have a MCU 4501 and I would like to set up, within the page layout, a selfview, this means that if I put in place a layout available to six participants in one of them should be locatel a picture seen free, - is this possible? Thanks in advan