LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

interface not registered

When I tried to write data using datasocket, there is an error while debugging the line:

DS_Open (URL, DSConst_Write, UpdateDSCallback, NULL, &DSWriteHandle);  

The error is:

Function DS_open:(return value==-2147221163[0x80040155]).interface not registered.

 

What should I do to slove the problem. Also, I am not clear of how to set up the URL. Does one file folder should be contained in it? All suggestions are appreciated.

0 Kudos
Message 1 of 2
(3,054 Views)

Hi sinaco,

 

If you look at the  CVI help for the DS_Open function, it will give you a description of how the URL should be formatted, as well as several example URLs that you can look at.  One test that I would encourage you to try is running datasocket example programs that ship with CVI to ensure that these work without error.  These sample programs are in the C:\Program Files\National Instruments\CVIxx\samples\datasocket folder.

 

Additionally, you may want to look at using network variables.  Sample programs can be seen in C:\Program Files\National Instruments\CVIxx\samples\networvariable.

Cheers,
Kelly R.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,020 Views)