Why ni845xDioReadLine takes several milliseconds to run?

I use a USB-8451 to communicate with a device of RM3000 using the SPI protocol.  My program uses 'base' 8451 C API.  The RM3000 has a DRDY line which goes high when the requested data are available. This is connected to port 0, line 0 the 8451 dio interface.

When I use ni845xDioReadLine to check the DRDY line after having written a command and before reading the response, the call of ni845xDioReadLine takes several milliseconds to execute.  The DRDY line is always already high because the ni845xDioReadLine call takes so long.

You expect the appeal ni845xDioReadLine take as long?  The DRDY would check using the "Advanced" version of the call of ni845xDioReadLine script be faster? I'm hoping to read a 200 Hz and need to minimize the time of transaction to achieve this sampling rate.

I am able time glancing SPI transactions on a scope and looking at the order and time of response with and without the call of ni845xDioReadLine commented.

Any help would be appreciated.

Thank you.

Hi IntAndTest,

Yes, script often improve performance because it allows the programmer to manage the measures that are being taken.  In turn, this allows to eliminate steps that the screw top level, run and manage it for you and which may not be necessary depending on the application.  "There are examples of scripts in the Finder of the example, in input and output hardware' I2C and SPI" Advanced of SPI or I2C Advanced.  It is also possible that higher speed, USB port having not made a difference, but the only real way to know would be to try a USB 2.0 port to your request.

Hope this helps,

Jen W

Technical sales engineer

National Instruments

NI.com/support

Tags: NI Hardware

Similar Questions

  • Automatic Updates does not take into account calendar, runs when I'm playing games and kill them

    Windows Update does three things:
    -Checks the updates - it takes several minutes of intense activity of disk and processor
    -Download updates - this hammers bandwidth
    -Installs updates - disc of hammers and cpu

    I have a dual system of fast cpu - it doesn't help not-windows update will be hammer any system, as it is not limited - it works just as fast as possible.

    Everything would be perfect if it ran only on time, by the windows update control panel.

    I put it to run at 04:00, because that's when I'm never on the system. The system is still on at 04:00. It has been set to 04:00 for 6 months now.

    However, he always runs updates at other times. More recently, it is said that she checked at 18:26 and installed at 00:50. I've often wondered why my game is either corrupt, only to discover, it does the updates of windows (the other culprit is snapshots in system restore, I plan now by using Task Scheduler to arrive at a reasonable time).

    Basically, Windows Update ignore all calendar - as has been complained by many other people.

    Its a huge process and it needs to be programmed correctly - at least to run only in idle time.

    Is it possible to control the actual schedule of windows update?

    Please DO NOT SAY to SET THE TIME in THE CONTROL PANEL as it does clearly no difference to everything that is important.

    Also do not forget that all THE STEPS of updating windows are disastrous for a game - worst, it is in fact the verification of updates, but the cheque, the download and installation are all bad - all the parties must be scheduled to happen when I'm not in the middle of a game.

    Thank you
    Jez

    Same here, Windows updates of the race and moved to all kinds of weather. Even if it is set to 03:00 on this PC.

    My Windows 7 computer did the same thing.

    The only solution I have for you is to put WU to check the updates and notify you that they are available.

    However, I have no problem with him crushing my Vista machine, when it is run. Vanguard, I play full-flow, I have Seti@Home running on all 4 cores with 100% of the time restriction, generally have to play music, and he has not brought my game stopped when he ran the updates.

    Running on an Intel Core 2 Quad Q6700 w / 4gig

    Microsoft partner - "gentlemen, you can't fight in here! This is the war room. »

  • During initialization. This may take several minutes to complete... [NEVER ENDS]

    I'm having the below problem configuring an ols PS100e, does anyone have any heads up, the system has been reset DELETEALLMYDATA,
    
     and now been on for about 30 mins, but every time I run 'setup' I get Database is not functional. The setup utility has failed ;
    
    I was going to try the remote setup wiz, but I can't find anywhere to download it?
    
    CLI> setup
    
                    Group Manager Setup Utility
    
     It appears that setup was run previously, but it did not complete. Restarting setup.
    
       ***    The battery is not completely charged. It is recommended that   you wait until the battery is completely charged before running setup. Please try again   Do you want to proceed anyway (yes | no ) [no]: yes
    
     Initializing.  This may take several minutes to complete...................   *** Database is not functional. The setup utility has failed.       Please try again.CLI>
    

    The configuration & db are stored on the hard drive, readers not the flash memory card.

    That's why I offered to put it back again.

  • Why does take so long to open a document in microsoft office, imaging files

    Why does take so long to open a document in microsoft office, imaging files. All my scans appear in a .tiff file. I open the .tiff file and it takes about 30 seconds, at the same time, everything freezes and I have to remove the mouse from the usb port wireless. I'm currently running vista

    Hello

    I hope that by "striking" means you actually "Uninstall", as simply delete the files/folders of programs can cause all sorts of issues. Maybe, there is something in the software which has been deleted these files supported? Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Why does take so long to load from the time wherever I power up until it takes to get to the login screen? help taking too long

    Why does take so long to load from the time wherever I power up until it takes to get to the login screen? help taking too long

    You should take a look at your startup programs and decide what is really necessary and what is nothing more than useless clutter. There is nothing wrong with the startup programs, some may be really useful or even necessary for your personal needs. But keep in mind that many programs build to start when you start the computer and that most of them must not start when the computer starts, all they do is slow down your boot time and clutter of things when you're trying to solve problems, and some are downright harmful!

    I mean, have you really need things like real Planner and Gadwin Print Screen running all the time? These programs will run very well, even if they are not started automatically every time that you start the computer. Go to these programs and change/disable their boot option. Some may be difficult to kill for public assistance services can be useful when you try to control startup programs. Try CodeStuff Starter, it's safe and easy to use, I think you'll like it, download it here:

    http://CodeStuff.tripod.com/products_starter.html>

    Use AutoRuns to check axis start, Richard:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx>

    Use Cclenar-> tools-> start

    http://www.CCleaner.com/download/builds.aspx>

    I can't tell you what to keep, startup items it is a personal preference, but pretty well all the startup items indicated by CodeStuff Starter are safe to disable, and changes are easy to reverse if you change your mind. Searches for items it shows you and decide whether or not these things are really useful or necessary. Some programs will be started at startup without your knowledge and over time, that list can expand to include useless parasites, part of good computer maintenance includes regular control of these startup items and the removal of the unnecessary.

    Suggest that you first spread malware as the cause of the problem by following these steps:

    I. - delete your temporary files

    Clean the system (compensation to all temp/tmp folders and included all the content offline, the tif browser, delete the cookies of compensation.)

    Do a disk cleanup. Click the Start button. in the search box, type disk cleanupand then in the list of results, click Disk Cleanup. Better and easier to use - ccleaner.

    Download the basic version (slim) via

    http://www.Piriform.com/CCleaner/builds>

    The basic version (slim) does not contain the toolbar disgusted

    DO NOT USE ANY cleaning of the advanced options. DO NOT TOUCH THE REGISTRY OR TOOLS. At least not for now.

    Reset

    II. - have your system scanned as a result of security/antivirus installed.

    III. - download, install, update and run both of these tools to a-squared free scans:

    MalwareBytes anti-malware (MBAM)

    http://www.Malwarebytes.org/products/malwarebytes_free>

    SUPERAntiSpyware (SAS)

    http://SUPERAntiSpyware.com/superantispywarefreevspro.html>

    UTC/GMT is 18:16 on Wednesday, January 18, 2012

  • several svchost.exe running

    I can't start my Windows Vista, even after several repair system. Now, I'm in safe mode and noticed to Bishop of the task that there are several svchost.exe running. This could be the culprit? The repair of the system said that a recently installed or updated driver prevents windows to start. Appreciate your comments.

    Hello

    After using the Troubleshoot utility above and if so, try a clean boot.

    Use the startup clean and other methods to try to determine the cause of and eliminate
    the questions.

    ---------------------------------------------------------------

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Why firefox makes several profiles

    My name is Mike from the Support of YER section.
    We have over and over again a user with the same problem.
    Our employees have a roaming profile with multiple browsers, but it uses Firefox that causes a problem.

    There's a datalimit on our user profiles. The problem is that Firefox uses all the space in the user profile.
    This causes an error of storage space, every two days.
    To solve it, I open the Firefox profile manager, multiple profiles are visible. So I delete unused profiles. But it is temporary, because in a few days, the user communicates with us with the same problem.
    I also tried to move the profile of its documents with the Profile Manager to free up space, also this does not solve the problem because Firefox new profiles over and over again.

    This user is the only one with this problem, and we cannot find a solution.
    We thought that maybe it has something to do with the synchronization between multiple devices, but it uses the Firefox profile on his work computer.

    I hope you can help me solve this problem. Maybe you can explain why Firefox creates several profiles, or maybe we can change the path of the Firefox profile, for all profiles including new ones that are created.

    Thank you!

    What is the content of the file profiles.ini?

    Sounds that the profile path stored in the file is not recognized.

  • Why does take hours to receive the iMessages?

    Why does take hours for the texts assigned iMessage?

    Hello

    While appearing more precisely this question is in fact not.

    There could be hundreds of reasons why they seem to be delayed.

    Some info on when they are sent, how do you know that they have been sent, if you compare it to another device would be useful.

    19:49 Monday; June 13, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • Why does'nt windows developed defender running automatically with windows 7?

    Why does'nt windows developed defender running automatically with windows 7?

    Hi GRL999,

    Welcome to the Microsoft Answers site.

    You can add, delete, enable, or disable a startup program in windows 7. Follow the steps mentioned below.

    Method 1:

    1. open the settings menu of the program.

    2. Add the program to the startup -

    Select the type option to run at startup of the program.

     

    3. to remove the startup - program

    Deselect the option type to run at startup of the program.

    Method 2:

    1. right click on the exe of the program to run at startup, or opening at startup and click create a shortcut.

    NOTE: This is the shortcut you add to the folder of boot Option one or Option two below. Skip this step if you only remove a shortcut from the startup folder.

    Single user:

    NOTE: The startup of the single (current) user folder is a hidden phone folder to the:
    C:\Users\(user-name) \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

    2. open the Start Menu.

    3. click on all programs, right-click on the Startup folder and click Open or Explorer or in the line of the Start Menu search box, type : startup of the shell and press enter.

    4. to add a startup program or file shortcut - drag the shortcut created in step 1 in the startup folder and drop it.

    5. to remove a boot program or file shortcut - right click on the shortcut in the startup folder and click Remove.

    6. close the startup folder when finished.

     

    For all users:

    NOTE: The startup folder all users is a hidden system folder:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    2. open the Start Menu.

    3. click on all programs, right-click on the Startup folder and click open all users , or to explore all users.

    4. to add a startup program or file shortcut - drag the shortcut created in step 1 in the startup folder and drop it.

    5. to remove a boot program or file shortcut - right click on the shortcut in the startup folder and click Remove.

    6. close the startup folder when finished.

    Method 3:

    1. open the Start Menu.

    (A) in the search line, type msconfig and press enter.

    or

    (B) open theControl Panel (all items view) and click the Administrative Tools icon, and then click System Configuration. Close the control panel and the windows administrative tools.

    2. If prompted, click on continue for UAC prompt or type the administrator password.

    3. click on the Startup tab.

    4. to disable a startup - program

    (A) select a listed startup program and uncheck the box.

    (B) repeat to disable more listed startup programs.

    5. to allow a startup - program

    (A) select a listed startup program and check it.

    (B) repeat to allow more listed startup programs.

    6. to turn off all startup programs listed -

    (A) click the disable all button.

    (B) proceed to step 9.

    7. to enable all startup programs listed -

    (A) click the enable all button.

    8. click on apply and OK.

    9. click on the button to restart to apply.

    Note: This will restart your computer immediately. Save and close everything you are working on the first.

    For more information about Windows Defender, see the items listed below.

    Enable or disable the Windows Defender

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Defender-on-or-off

    Enable or disable the Windows Defender real-time protection

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Defender-real-time-protection-on-or-off

    Schedule when Windows Defender scans your computer http://Windows.Microsoft.com/en-us/Windows-Vista/schedule-when-Windows-Defender-scans-your-computer

    Using Windows Defender

    http://Windows.Microsoft.com/en-us/Windows7/using-Windows-Defender

    Hope this information is useful.

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Why doesit take so long for my acer laptop to do the windows updates? I cleaned the disk and defragmented, but it takes hours to make updates

    Help, why does take hours for my acer make 3 windows updates, when my static pc does in a few minutes.

    Thanks for any help.

    Help, why does take hours for my acer make 3 windows updates, when my static pc does in a few minutes.

    Thanks for any help.

    Without real specifications-, I venture to say that the machine is old and slow, maybe not the latest hardware device drivers installed, could have some system problems that must be resolved, etc.

  • Computer XP takes several minutes to start

    When I turn on my computer, it takes several minutes for all programs to load and my upcoming desktop icons.

    * original title - startup appears extremely slow *.

    Hi ChrisHood,

    1 when was the last time it was working fine?

    2. did you of recent changes on the computer?

    3. do you have security software installed on the computer?

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

    Slow PC? Optimize your computer for peak performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx

  • When I open programs in Windows XP, the menu bar does not appear and it takes several seconds before the program responds (after that finally shows the menu bar).

    Everytime I open a program, it takes several seconds before I can do anything because the menu bar are not displayed immediately.  After the menu bar appears the function of programs very well, but it is very annoying to have to wait.  I've done an installation of Windows repair without success.

    follow the directions to this treatment... http://www.microsoft.com/windowsxp/using/setup/expert/northrup_restoreperf.mspx

  • Why Vista requires UAC to install/run onedrive customer?

    Hello-

    Why Vista requires UAC to install/run onedrive customer?

    THX

    fpefpe

    Original title: OneDrive and UAC

    For safety in order to prevent the diversion of the OneDrive process.  Like IE protected mode (which limits access to malicious sites of Java System folders), the UAC provides brokerage for OneDrive host process to access your files.

  • Why did take the motorola s9 - hd headphones drivers far?

    Why did take the motorola s9 - hd headphones drivers far?

    Ornrylilsuker,

    Click on the link below and try the USB drivers for your number of bits:
    https://Motorola-global-portal.custhelp.com/app/answers/detail/A_ID/5613/kW/S9%20hd%20driver

    Also, FYI, the S9 is not on the Windows 7 compatibility list:
    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?l=en-us&type=hardware&s=Motorolla%20s9%20headset&OS=32-bit&page=1

    If USB drivers contribute to solve your problem, you can submit your comments here:
    http://mymfe.Microsoft.com/Windows%207/feedback.aspx?formid=195

    See you soon

    Jason H. Engineer Support of Microsoft answers visit our Microsoft answers feedback Forum and let us know what you think.

  • It is possible to run Adobe Bridge CS6 on my Toshiba 32 bit?, I don't know why, but when I try to run this program, then the DEP blocks Adobe Bridge, what's the problem?

    Adobe Bridge CS6 on my Toshiba 32 bit?, I don't know why, but when I try to run this program, then the DEP blocks Adobe Bridge, what's the problem?

    This means that the program will use the incorrect memory or he is attacked by hackers or virus. See if there is an updated version.

    To allow the program to function in any case type DEP in the Start menu - Help and Support.

    Help

    Change Data Execution Prevention settings

    Data Execution Prevention (DEP) is a security feature that protects against viruses and other security threats by analyzing your programs to make sure that they use the system safely memory.

    If you choose to protect all programs, you can always turn off DEP for individual programs. If you think that a program does not run correctly when DEP is enabled, check for a compatible version of the DEP program or an update from the software publisher before you change your DEP settings.

    1. Click to open the system.

    2. Click Advanced system settings.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. Under performance, click settings.

    4. Click the Data Execution Prevention tab, and then click turn on DEP for all programs and services except those I select.

      To turn off DEP for an individual program

      • Select the check box next to the program that you want to turn off DEP for and then click OK.

        If the program is not in the list, click Add. Navigate to the Program files, search for the executable file of the program (it will have the .exe extension) and then click Open.

      To turn on DEP for an individual program

      • Clear the check box next to the program that you want to turn on DEP for and then click OK.

Maybe you are looking for