01-11-2006 04:49 AM
01-12-2006 02:24 AM
Hi,
this is a know issue with the Datasocket API for CVI 7.1 or earlier and it was fixed in CVI 8.0
Attached here you can find an example that will connect to an array of double and plot it on a graph in CVI. This example is connecting to the DS Item in Polling mode. In CVI 8.0 this works fine, while in CVI 7.x it was not working, as the dimension of data returned by DS_GetDataType() was =0, as you indicated in your post.
A workaround to this is found in the example, an it is represented by line 73 --> dim1=20; This of course assumes you know the dimension of the array you are going to get data from, but it allows to make things work.
AlessioD