LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

newbie q: why does sample "Acquiring, Analyzing, and Presenting Data with LabWindows/CVI" CVIDemo.c fail to compile?

The sample CVI tutorial called "Acquiring, Analyzing, and Presenting Data with LabWindows/CVI" at:
http://zone.ni.com/devzone/cda/epd/p/id/136

fails to compile on my CVI 8.1 system (it also failed on 8.0).  We see:

 6 Project link errors
  Undefined symbol '_DS_GetDataType@16' referenced in "CVIDemo.c".
  Undefined symbol '_DS_GetDataValue@24' referenced in "CVIDemo.c".
  Undefined symbol '_DS_GetLastMessage@12' referenced in "CVIDemo.c".
  Undefined symbol '_DS_Open@20' referenced in "CVIDemo.c".
  Undefined symbol '_DS_Update@4' referenced in "CVIDemo.c".
  Undefined symbol '_DS_DiscardObjHandle@4' referenced in "CVIDemo.c".
I assume this demo should work. Did my (full development) install somehow fail in a way that isn't obvious to me?  Any suggested diagnosing steps? Thanks very much.

0 Kudos
Message 1 of 3
(3,348 Views)
Those link errors indicate that the project uses the DataSocket library, but it was not found to link against.  To fix this, you should explicitly add the DataSocket FP (CVI81\toolslib\datasock\dataskt.fp) to the project.  The program will also build if you just load the FP from the Library menu, but it is better to explicitly associate it with the project that needs it.

Hope this helps.

Mert A.
National Instruments
0 Kudos
Message 2 of 3
(3,344 Views)
Why yes, it does help quite a bit.  I've submitted  a bit of text (as user-comment) at the bottom of the tutorial page (http://zone.ni.com/devzone/cda/tut/p/id/2978) but it hasn't appeared yet. 

It's interesting to note that the URL embedded in the code (weather.ni.com/msdemo) seems to be defunct as well. But the tutorial still seems useful if it includes your hint.

Thanks.
0 Kudos
Message 3 of 3
(3,333 Views)