Error -2147220719 Occurred at DAQmx Create Task

Updated Nov 26, 2018

Reported In


  • NI-DAQmx

Issue Details

I'm monitoring a NI-DAQmx process with NI I/O Trace and I can see the following error happening:
> 6746.  DAQmxCreateTask ("ni_DAQmx_ReadChannelData", 0x00000000)
> Process ID: 0x000015A0         Thread ID: 0x00000F38
> Start Time: 13:33:27.7850      Call Duration 00:00:00.0000
> Status: -2147220719 (0x80040311)

What is causing this and how can I fix it?


If you have other programs that use WSAStartup and WSACleanup calls, verify you're calling the appropiate number of calls before closing the execution. 

Calling WSACleanup prematurely is going to close Windows Socket runtime and cause problems in communication between NI-DAQmx and NI-MAX.

Additional Information

Windows Sockets API (Winsock) enables programmers to create advanced Internet, intranet, and other network-capable applications to transmit application data across the wire, independent of the network protocol being used. With Winsock, programmers are provided access to advanced Microsoft® Windows® networking capabilities such as multicast and Quality of Service (QoS).

This API can be used by other programms to stream packages of data, for example video capture applications.