Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

What Causes Error 0x80040500 when Using Datasocket Calls on a Real Time (RT) Target?

Primary Software: LabWindows/CVI Add-ons>>Real-Time Module
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have developed a CVI Real Time DLL project that uses DataSocket function calls. When I build and deploy the DLL to the Real Time target, I receive the following error:

NON-FATAL RUN-TIME ERROR
"RT.c", line 23, col 5, thread id 0x0000008F

Function DS_OpenEX: (return value == -2147220224 [0x80040500]).
Could not load the DataSocket Support DLL

How can I fix it?

Solution:
The DataSocket API is not supported under LabWindows/CVI Real-Time (RT). While there is DataSocket support in LabVIEW Real-Time (RT), we do not intend to add support for this feature in CVI RT.

LabWindows/CVI Real-Time Module 8.1 and later provides support for communicating with Network Variables on RT using CVI. With the CVI 8.1/5 Real-Time module you can use the CVI Network Variable library to communicate with LabVIEW Shared Variables and Measurement Studio Network variables from the RT environment. 



Related Links:
KnowledgeBase 37NIMB5B: Datasocket with LabWindows/CVI and LabVIEW Real-Time

Attachments:
errorMessage.JPG




Report Date: 06/27/2008
Last Updated: 11/10/2009
Document ID: 4MQ9GVBG

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit