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.

    Hello

    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?
    http://cshay.blogspot.com/2006/10/debugging-PLSQL-from-ASPNET-and-Visual.html

    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.

    Sebastian

  • 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

    Hello

    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


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/948465

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

    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.windowsupdate&tid=cc98f6bd-50b3-45f5-a40f-df9bfb708d11&cat=en_US_56d1dd45-de9e-4fc5-9bc1-2d1d0de6daee&lang=en&cr=US&sloc=&p=1

    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:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    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?

    http://www.BlackBerry.com/BTSC/microsites/search.do?cmd=displayKC&docType=kc&externalId=KB15278&SLIC...

    Good luck!

  • MASTERED OPTION IS GRAYED OUT WHEN YOU TRY TO BURN A HOME PC PREM BRAND NEW VIRGIN DVD + R ON VISTA 32-BIT

    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.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-hardware/DVD-burner-is-recognized-but-cannot-burn-files/5b4adffc-06e7-4813-923e-7f69628a8a53

    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

    Hello
     
     
    They were playing before you burn CDs?
     
     
    Method 1:
    Open the troubleshooting Windows Media Player settings Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-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?

    Hello

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

    http://Channel9.msdn.com/events/TechEd/NorthAmerica/2012/SIA311

    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

    http://Windows.Microsoft.com/en-us/Windows7/redirect-a-folder-to-a-new-location

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

    http://Windows.Microsoft.com/en-us/Windows7/include-folders-in-a-library

    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.

    Hello

    Go to bottom of homepage itunes support itunes.

    See you soon

    Brian

Maybe you are looking for

  • Loading the content of the old iPhone to new iPhone

    I was very disappointed when I tried to load the content from my old iPhone in my iPhone via iTunes. I received an error message saying something to the effect that my iPhone backup file was too old or obsolete. I had everything backed up my old iPho

  • Apple ID has been disabled

    My Apple ID has been forgotten, if I got the full carton can I was able to go back to the Apple Store unlock it?

  • RunDLL error on connection

    I get the following error whenever I log on: ' RunDLL here, it was a problem starting \users\user\AppData\Local\Temp\ssqplcc\svbxwpx\wow.dll specific module could not be found. "  It does not appear when other users log on.  How can I remove this err

  • BlackBerry Z10 organizing data transfer from my Z10 and Q10 to my curve 9220

    Hi team, I want to transfer my contacts from Z10 and Q10 on my device inherited from curve 9220. I have already backed up my data using the BlackBerry link and I know that my curve is not compatible with BlackBerry Link. Can you give me a step-by-ste

  • Configure subinterfaces on a context several ASA.

    Hello I was just confused. When do we need to set up sous-interfaces on a context several ASA. Thank you