Runtime error example NOR-DAQmx ANSI C in the Windows 7 virtual machine

I am under a guest Windows 7 system with a host of Ubuntu 14, using VirtualBox and have encountered a problem running even the simplest examples provided by National Instruments, using the ANSI C API for NOR-DAQmx.

The first time that the DAQ hardware is turned on, I can run a single measure, and after that, any other indicator displays the following error message:

Attempted to read samples that are no longer available.
The requested sample was previously available, but has since been overwritten.
Increasing the buffer size, reading the data more frequently, or specifying
a fixed number of samples to read instead of reading all available samples
might correct the problem.

Property: DAQmx_Read_RelativeTo
Corresponding Value: DAQmx_Val_CurrReadPos
Property: DAQmx_Read_Offset
Corresponding Value: 0

Task Name: _unamedTask(0)
Status Code: -200279

In order to start a new measurement, I have to restart the DAQ hardware, probably in order to clear the internal buffers that are in the process of substitution.

I am interested in a measure of continuous tension in basic by using a callback function. (The example of ContAcq_IntClk provided by OR)

The exactly the same setup, same version of NOR-DAQmx (9.7.5) and running on Visual Studio 2012 smoothly on a computer that is running Windows 7 directly.

I suspect that the problem is with the internal buffer being somehow messed up because of the connection with the Virtual Machine, but do not find an elegant solution to fix it.

The camera I use is NI USB-6289.

Hello fromm8

Thank you very much for your help, I managed to locate the problem.

He was not the actual code, or something like that, it was a problem of communication between the VirtualBox machine and the physical device.

Kept launches MAX test panels a comparable as error the program C.

I fixed the problem by opting for VMWare, which seems to have the best compatibility with USB devices.

See you soon!

Tags: NI Software

Similar Questions

  • Why using the driver NOR-DAQmx ANSI C functions in a thread causes a deadlock?

    Firstly, apologies if this is bad advice, but it seemed the closest fit.

    I use MSVC 2008 Express with the library in ANSI C NI DAQmx for some analog output with a box USB-6009. I create a thread to handle the signal generation is based on fixed time. My main thread running the user interface. I found that I get intermittent blockages in release, so that libraries mode NOR are responsible (in the second thread) and I use MSVCRT features (on the main thread). My test code is attached as "deadlock2.cpp".

    I used WinDbg to try to find the cause of the deadlock. Traces of the battery of my two sons are attached as t1_stack.txt and t2_stack.txt.

    It seems that the MSVCRT localtime() function uses a lock when it is called for the first time and then went to lock the Windows DLL loader lock. At the same time libraries NOR (or less libraries mxs) are responsible for locking the charger DLL is being held. The mxsutils library uses getcwd() which seems to try to block something the MSVCRT and therefore my two sons are now deadlocked.

    I can probably work around this by calling the localtime() and the NOR-DAQmx functions before I spawn my second thread so that the DLLs are already loaded in the process. However, I have no guarantee of this to continue working if something changes in the future, and if there are any locks going on finally having the DllMain() calls for a thread hanging may still cause a deadlock. If my results are correct, is it likely that NEITHER would fix the dll for not trying to make something complex in their DllMain()?

    According to NI Measurement and Automation Explorer, I'm under DAQmx libraries v9.3.5f2. I download the latest version now to try, but it will take time.

    Hi dmcminn,

    Thank you for the comprehensive and detailed bug report. I was able to reproduce the problem with NOR-DAQmx 9.6 using the code you posted. I reported it to the R & D team suitable as CAR #366538.

    I agree with your analysis of the problem. Getcwd() so the first call to __tzset() acquired _ENV_LOCK, which Microsoft has documented as the "lock for environment variables. __tzset() also called GetTimeZoneInformation(), which can load additional libraries, that you have demonstrated.

    Here are a couple more possible solutions, but they are not great:

    • Link to the static version of the CRT (/ MT instead of /MD). This would bind a separate copy of the lock of the CRT table in your program, and DAQmx would continue to use the lock to MSVCR90.dll table. They use more of the same _ENV_LOCK.
    • Build using a different version of Microsoft Visual C++ (for example 2005 or 2010). MSVCR80.dll MSVCR90.dll and MSVCR100.dll own separate copies of the lock of the CRT table.

    Whatever it is, it does not eliminate the fact that mxsutils called the CRT while now the loader lock, and this function CRT acquires another lock.

    Furthermore, the forum Multifunction DAQ is a better place to ask questions DAQmx.


  • There was an error when you attempt to connect to the Windows Live Calendar service.

    I get this message when trying to update my calendar:

    There was an error when you attempt to connect to the Windows Live Calendar service. If the error persists, check if there is an upgrade of Windows Live Mail available or communicate with the service.

    What can I do to fix this?

    Hello Maurizo Martino,

    As your question deals with Windows Live Calendar, there is a forum for Windows Live products.
    Please post in under the category of Windows Live Mail.

    They will have experts in the Windows Live products that can better help you.


  • "' Windows live mail error ' there was an error when you attempt to connect to the Windows Live Calendar service.

    Original title: when I start my windows live mail. He asks me if I want to go online? Then, I get this error message? just started doing this yesterday?

    There was an error when you attempt to connect to the Windows Live Calendar service. If the error persists, check if there is an upgrade of Windows Live Mail available or communicate with the service.

    I'm going to ask you to start your own, new topic in this forum now for Windows Live technicians can help you more-online

    Tip: Include a link to this topic in your very first post so that Windows Live people know so much about your computer like I do.

    Good luck - I think that you're going to need!

  • Someone at - it a simple example of creating virtual machine-> the affinities of virtual machine using the PERL API?

    The question just about everything said. Is there a perl extracts to create an affinity between the virtual machines.

    Thanks, Vikas, for example and guidance. Since I am abel to make it work, I thought I'd share the code example:

    My $vm_name_list;    # A list of names of virtual machine.

    My @vm_morefs;      # Filled in the managed object refes to the virtual machines, this detail not included.

    My $cluster_name;    # Name of the cluster to create the rule in

    # Find the Cluster Compute resource object.

    My $cluster_views = Vim::find_entity_views (view_type-online 'ClusterComputeResource',
    filter-online {name-online $cluster_name});
    If (! @$cluster_views) {}
    Die "no cluster don't compute resource named $cluster_name detecte\n";

    My $cluster_view = $cluster_views-> [0];

    My $rule_name = 'affinity for $vm_name_list. "

    # Create the nest of objects required for ReconfigureCluster_Task:
    # ClusterConfigSpec
    rulesSpec #-> [ClusterRuleSpec]
    operation #-> ArrayUpdateInformation
    # enum (add, modify, delete)
    Info #-> ClusterAffinityRuleSpec

    My $aff_rule_spec = new ClusterAffinityRuleSpec (name => $rule_name,)
    enabled-online "TRUE."
    mandatory-online "TRUE."
    VM-online \@vm_morefs);

    My $array_update_operation = new ArrayUpdateOperation ("add");

    My $clus_rule_spec = new ClusterRuleSpec (operation => $array_update_operation, info-online $aff_rule_spec).

    My @clus_rule_specs;
    Push (@clus_rule_specs, $clus_rule_spec);

    My $cluster_config_spec = new ClusterConfigSpec (rulesSpec-online \@clus_rule_specs);
    $cluster_view-> ReconfigureCluster_Task (spec => $cluster_config_spec,)

    change-online 'TRUE'));

  • Runtime error program. This application has requested the execution in an unusual way. Contact the application support team.


    Please can you help me.
    When I go into my pictures, click on organize, click new file, my computer freezes and I get a runtime error message. "Error running program. This application has requested the execution in an unusual way. Contact the application support team.
    Can you please advise me on what to do in a way that I can understand technical jargin baffles me.
    Thank you
    PETA x


    • What application you use to display pictures?

    Try the SFC scan on the computer.

    SFC/scannow is a very useful command that you can use in any version of Windows. When the SFC (System File Checker) command is used with the/scannow switch, the tool analyzes all the important files of Windows on your computer and replace if necessary.

    Missing and the corruption of the operating system (like many DLLs) files are probably the main cause of the major problems of Windows. In view of this, plus the fact that the SFC/scannow is completely automatic and very easy to use, the tool should be usually one of your top not troubleshooting.


    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

  • Error 5 when you try to start the Windows Installer service

    There was NOTHING on the internet that has helped me. While I thought, on the permissions, and I thought of my C:\ (main one with what you have).

    Here's what I did to fix (this applies to all versions on Windows):

    (1) right click on C:\ (or E:\ whatever one holds your stuff)

    2) go to properties

    (3) under Security, click SYSTEM

    (4) ensure that the SYSTEM has all the permissions on ALL

    NOTE: When you do that on that day will be "cannot give permission to C:\boot (for example)" that's fine, just click continue until it's over

    And I'll put the first response as response so that when people search he said answered


    My windows installer does not work so I went to go and start it I just got "error 5 access denied". Then I went to start another service to see if it was my computer or if it was just Windows Installer and it worked. I tried to go here ( and everything he does, but he did nothing. I tried to run hard but he gave me "80072F8F" error code and I didn't spend time fixing something that might fix something.

    I tried to go to regedit.exe and did all what is written on, but nothing worked!
    Help, please!
    I run Windows7 64-bit Home Premium edition

    Troubleshoot Windows install

    2438651 how to solve problems that may occur when you install, uninstall, or upgrade a program on a Windows computer


    Unregister Windows Installer and then reregister Windows Installer. To do this, follow these steps:

    1. in the menu 'Start', click on ' execute:.»

    2. in the "Open" box, type "msiexec /unreg", and then press ENTER.

    3. in the menu 'Start', click 'run '.

    4. in the "Open" box, type "msiexec/regserver", and then press ENTER.

    If this is insufficient, the I would say to install the Windows Installer Cleanup utility and run that to remove the Java remains Setup files that can cause problems with your current installation.

    For more information, visit the below mentioned link:


    Click Start Orb, in the box, type search: Regedit.

    Highlight: HKEY_lOCAL_MACHINE/SYSTEM/CurrentControlSet/services/msiserver

    Verify that the SYSTEM account has full control. If it does not, add the SYSTEM account with full control.

    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.

  • BCCode error on blue screen 1 has in the Windows XP computer.

    Original title: BSOD on XP Pro.

    I recently started having BSOD on a computer running XP Pro, which had no material or changes in drivers or updates for some time.

    After re-booting, I get the following:

    BCCode 1A BCP1: 00000780 BCP2: C06D 4250 BCP3: CA 81 9898 BCP4: 000004CD OSver:5_1_2600 SP3_0 product 256_1

    Online it suggests incompatible drivers but the only change has recently been anti-virus and the problem predates this.

    Sometimes it happens on startup and the other time when in different programs or even idle.

    The computer is a Dell Vostro, who is just two years old.

    Yes - is not too much sense.

    You can see you are running SP3 from the information you have provided and it makes even less sense as the hotfixes in this section of the Microsoft Support Engineer are already included with SP3.  But, this is a link to an article.

    If/when it crashes again to follow this procedure in order to watch your own crash dump files for clues or download them to your SkyDrive so someone can help you to look at.  It's just a copy/paste that I send to anyone who needs help with a BSOD.

    If you have a few dumps already accumulated on your system before the new video card, they must remain on your system if you want to watch.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    What is your Internet browser and version?

    Your system's disks IDE or SATA drives?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a genuine XP installation CD bootable, which is the same Service as your installed Service Pack (this is not the same as any recovery CD provided with your system)?

    Do you see that you think not you should see and when you see it?

    What do not you think that you should see?

    If the system works, what do you think might have changed since the last time it did not work properly?

    Your system seems to start OK and then crash or didn't he start not at all?
    Can you make the system crash when you want?  For example, you would say that there is no specific system activity that coincides with the accidents (like watching videos, playing games, etc.).

    The next time your system crashes, provide more information on what you see.

    Here's a BSOD example showing information you provide:
    Send for the nose and the Red arrows (3 to 4 lines total).
    Send all * line STOP message since there are clues in the 4 parameters.
    If there is a name of the file listed in the STOP message, don't forget to include this information too.
    Ignore the boring text unless it seems important to you.  We know what a BSOD looks like, we need to know what your BSOD looks like.
    Now provide more information about your system and data against more recent accidents.
    Click Start, run and enter in the box:
    Click on OK and when the system info summary appears, click on Edition, select all, copy, and then paste the information here.
    For information about video drivers, expand components, click view, click on edit, select all, copy and then paste the information here.
    There will be some personal information (such as the user name and the name of the system), and anything that turns information private for you, simply delete the pasted information.
    This will minimize back Q & A and eliminate guesswork.
    Download BlueScreenView here:
    Unzip it and run it (BSV installs nothing) and let him complete the digitization of all your crash dump files.
    If you double-click on depressed, you will get information on it (including the field caused by the driver) and you should be able to spot the problem right away - especially if you see a model in landfills where Caused by field pilot is the same (beginning with this driver).
    BlueScreenView tries to find the right driver or module that caused the blue screen by looking inside the stack of the accident. However, be aware that the driver detection mechanism is not 100% reliable, and you should also look in the lower pane, that display all drivers/modules found in the stack.

    Sometimes BlueScreenView will involve XP files as being the cause of the accident (ntoskrl.exe, win32k.sys, hal.dll etc.) but they are probably not the real cause of the accident (BSV is doing the best he can).

    You will need to either pick up some example crashes over and look through them, or find somewhere the XP files are not the 'cause' or you can upload your files to your SkyDrive crash dump and someone with the windows debugging tools can help take a look at them more closely.

    Select (highlight) one or more of the most recent dump files by clicking on them and hold down the CTRL key to select multiple files.  Try to select only the most recent links that relate to your problem (perhaps five or six to start dump files).
    Click on file, save selected items and save information from the dumps to a text file on your desktop called BSOD.txt.

    Open BSOD.txt with a text editor Notepad, WordPad, etc.), select all (Ctrl-A), copy all the text in the Windows Clipboard (Ctrl-C) and paste the text to the Clipboard (Ctrl-V) back here in your next reply.

    Here's an example of report ASB to a single BSOD I initiated on purpose that indicates the cause of the accident as the pilot i8042prt.sys belonging to Microsoft Corporation:

    Dump file: Mini102911 - 02.dmp
    Crash time: 2011-10-29 04:54:36
    Bug check code: 0x000000e2
    Parameter 1: 0x00000000
    Parameter 2: 0x00000000
    Parameter 3: 0x00000000
    Parameter 4: 0x00000000
    Caused by the driver: i8042prt.sys
    Caused by the address: i8042prt.sys + 27fb
    Description of the file: i8042 Port driver
    Product name: Microsoft® Windows® Operating System
    Company: Microsoft Corporation
    File version: 5.1.2600.5512 (xpsp.080413 - 2108)
    Processor: 32-bit
    Plant address: ntoskrnl.exe + 22f43
    Stack address 1: i8042prt.sys + 27fb
    Stack address 2: i8042prt.sys + 2033
    Battery 3 address: ntoskrnl.exe + 6e715
    Computer name:
    Full path: C:\WINDOWS\Minidump\Mini102911-02.dmp
    Number of processors: 4
    Main version: 15
    Minor Version: 2600
    Size of the dump file: 94 208

    Send information BleuScreenView of 5 last memory dumps (if you have 5 dumps memory yet, send the most recent, you).
    While you wait, please follow these steps:
    Perform scans for malware, and then fix any problems:
    Download, install, update and do a full scan with these free malware detection programs:
    Malwarebytes (MMFA):
    SUPERAntiSpyware: (SAS):
    They can be uninstalled later if you wish.

    Restart your computer and solve the outstanding issues.

    It is sometimes easier just to download the memory dump files since your last breaks down on your SkyDrive (everyone has a SkyDrive for file sharing).   So can someone who already has Windows debugging tools to look at things and understand what is happening.

    Dump memory of recent crashes and BSOD files are usually in this folder:


    The files will be named something like this:

    Mini120311 - 01.dmp

    You need to download the latest... maybe 5-10 of the most recent crash dump files should be sufficient if you who have a lot.  If you do not have that much, send what you have.

    Getting started with SkyDrive:

    Once you get your downloaded files and watch them on your SkyDrive, you need to 'share' your folders/files so that others can see them.

    Here is a link that tells you how to:

    Then click on the button "insert a link".  When you click on that, a window opens that contains the link to your SkyDrive files.

    Copy the contents of the box "copy this link to share:" in selecting the content of the link (it will be all highlighted), press Ctrl + C (copy) and then come back to the forum and in your next message, press Ctrl + V to paste the contents of the link back here.

    What you paste the return will look something like this link on my SkyDrive:! 311

  • Error code: 0xC800042D while trying to access the Windows Update Web site

    Original title: Windows Update error Access

    When you try to access the Windows update site to see what optional updates are available I got OxC800042D error message and can not access the site. Please tell us how to get around this problem. Thank you

    Hi AlanHy,
    These errors can occur caused by one of the following problems:
    • Applications or processes that interfere with Internet communications
    • Problems on your computer
    • Strong Internet activity
    • Recoverable database errors

    Follow the steps listed in this article to resolve the problem:

    You may encounter temporary connection related errors when you use Windows Update or Microsoft Update to install updates

  • "Window could not find updates. Error (s) found: Code 80244018. Update the window has encountered a problem.


    I found the error in my system, "window 8.

    The message that is displayed when the search for updates,

    "Window could not find updates. Error (s) found: Code 80244018. Upgrade from window fell on a problem".

    To get help on this error, no feedback is provided by help and support section as well.

    Please help me solve this problem


    Generally attributed to a proxy server or a firewall.

    See the info here:


  • The internal error message when you try to download the windows OS for Palm.

    Whenever I try to download from a disk or download from the site of Palm, the palm operating system, I get a message saying "Internal error 2738" and he won't let the software load. I'm stuck and can't do anything. Help, please. Thank you.

    Using a search engine, I found this answer in a few seconds...


  • Get error 1723 - there is a problem with the Windows Installer package

    Hi, I have problems with the .msi files. An example of this would be logmein hamachi. It would be me with error 1723. There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. Contact your provider to support personal or package. What should I do? I am currently using windows 8 pro with media Center. my windows installer is the installation of Windows® program. V 5.0.9200.16384. Thank you

    I had the same problem. The solution is to go into c:\users\"username"\AppData\Local\ and then right click on 'temp' and choose 'properies. Choose 'security'--> edit--> add and add the user name, you use and you give all the rights. After that, it will work :)

    Good luck!
  • When I start my computer I get an error message about V protect Application on the Windows XP-based computer

    When I start my computer, I get an error message, "V Protect Application has encountered a problem and needs to close".

    System information Utility version

    OS version: Microsoft Windows XP Home Edition, Service Pack 3, 32-bit

    Processor: Intel (r) Celeron (r) CPU clocked at 2.66 GHz, x 86 Family 15 Model 4 Stepping 1

    Number of processors: 1

    RAM: 1 GB

    Graphics card: RADEON 9250, 128 MB

    Hard disks: C: Total - 76316 MB, free - 47785 MB; KC: total - Mo 305168, Free - Mo 304760;

    Motherboard: MICRO-STAR INTERNATIONAL CO., LTD, P4M266-8233,

    Antivirus: AVG Free Antivirus, update: Yes, On-Demand Scanner: enabled

    I run the above system and would appreciate any help with the removal of this message as if I don't send it to Microsoft, it goes.

    Thank you


    You can try those Microsoft committed the 'experts' ideas Support Engineer (1, 2, 3) for safe, clean boot Mode, Online Scanner, but I think that most of the people who know how XP would recognize that there is no component 'V protect' in Windows XP and a simple search Google reveals that your problem is with your AVG software and has nothing to do with Windows XP.

    You should look in their forums (like me) and here's what they suggest:

    Vprotect belongs to AVG Security Toolbar.
    Please try to run repair installation using the latest installation package.

    If the problem persists, please follow all the steps in the instructions to complete reinstallation .

    I think that if I were you, I would follow the instructions on the page AVG to uninstall and reinstall your AVG because there may be other parts of AVG who are afflicted that you have not yet discovered, but in AVG, some people with V forums protect problems find that AVG repair install works.

  • 0x8024400A error when trying to install updates in the Windows XP computer.

    Original title: Foutnummer: 0x8024400A.

    After new installation of windows XP, I want to update the system and get a Foutnummer (erro): 0x8024400A

    I can't update the system

    Hi LeoKoch,

    You can follow this link & check if the problem persists:

    Temporary connection related errors may occur when you use Windows Update or Microsoft Update

    Hope the helps of information.

  • -Error 1068: when I try to start the "Windows"(Windows XP Pro). Search Service ".

    I get an error 1068 and the service cannot be started. My PC is slow to find things and start. How to go beyond this error and get my indexing job?

    I checked and installed all windows updates for all my software from microsoft.


    {7D096C5F-AC08-4F1F-BEB7-5C22C517CE39} = Manager of Windows search.

    It is quite all right, but you have a virus / malware infestation the or about July 7, 2011. Malware will address management tools such as event viewer and the Task Manager.

    You might have been able to resolve the problem by using the system restore, but very probably will have passed too much time for you to have a restore point before the alleged infestation. What you have with a Windows XP CD? I suspect that you need to do a repair installation and for this you need an original CD. If it's a branded computer which includes most laptops, this will be a restore to factory settings after you back up your data files.

Maybe you are looking for

  • two new machines synchronize

    Hi 1632 GMT/UTC on Friday, March 15, 2013 I have 2 new machines. When I go through the process of synchronization and try the two options to create an account or I have an account my e-mail address is already in use (maybe off a previous machine.) Ho

  • Satellite L500-1kk and output HDMI for FULL HD LCD TV

    Hi all! I want to connect to my laptop L500-1kk to the TV LCD Full HD Sharp Aquos LC-42A77M via HDMI port, my question is that in the display properties that the maximum resolution is 1366 x 768, 1920 x 1080, so I'm afraid that if I buy a ([http://ww

  • OfficeJet Pro 251dw: Officejet Pro 251dw printerhead damaged

    Hello!New here.My printer may explain his printerhead is damaged or has a defect. What can I do about it?Thank youJesper

  • Compaq presario SR1420NA: power

    I can't turn on desktop.  Flashing green light on the back.  What can I do?

  • Pavilion P7 - 1047C: pavilion p7-1047 CPU cooling fans

    Anyone can provide parts for the fan numbers on the back of the central unit and one inside. Certainly in the search to replace the one inside the processor, its been a lot of noise. Yes, I did a thorough cleaning. Also, best place to buy and what ki