LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

code problem with app note: "Acquiring, Analyzing, and Presenting Data with LabWindows/CVI"

Hello!!
 
I am new to programming and I am finding LabView 6i difficult to work with,
so I  am looking at LabwindowsCVI.  In working with the tutorials and app notes
I started work on the one cited here and ran into compilation problems.  I carefully
worked through steps, but it appears that something is missing.
 
I get errors like "Operands of = have illegal types 'int' and 'pointer to void' and others,
It was unclear how to deal with the section that deals with the DataSocket.
 
void dsDataCallback (DSHandle dsHandle, int event, void *callbackData)
{
 if (event == DS_EVENT_STATUSUPDATED)
{
HRESULT hr = NOERROR;
char message[1000];
hr = DS_GetLastMessage (dsHandle, message, 1000);
if (SUCCEEDED(hr))
      ResetTextBox (panelHandle, MAINPANEL_STATUS, message);
    }
}
0 Kudos
Message 1 of 2
(2,713 Views)

Make sure you have the datasocket instrument loaded in the project. Go to Instrument >> Load and then browse to ..\toolslib\datasock and select the dataskt.fp file. This will ensure CVI finds the header for datasocket.

Let me know if you still run into problems.

Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,701 Views)