02-25-2010 12:45 AM
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.
02-26-2010 11:21 AM
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.