« Close

Datasheets and User Guides

App Notes

Software & Driver


LabWindows/CVI for UD - Windows


Basic example for LabWindows/CVI and the Windows UD library. The Windows UD library is the high-level Windows library/driver for the LabJack U3, U6 and UE9. For other LabJack devices, go to the Software page.

The attached archive has 1 simple example, but what is most important about this example is it shows how to use any of the many examples from our VC6_LJUD archive in CVI.


File Attachment: 


Hi Tech Support

I try to call "c:\windows\system32\labjackud.dll" explicitly with LoadLibrary() from an evaluation version of CVI 2012 and I encountered an error:



int _InitializeLabjackDll (const char *dllPath)


int status=0;

gLabjackU6 = NULL;

if (!status) gLabjackU6 = LoadLibrary(dllPath); 

if (gLabjackU6==NULL) status = GetLastError(); //Ok here



if (!status) Close = (CLOSE) GetProcAddress(gLabjackU6, "Close"); 

if (Close==NULL) status = GetLastError(); //Ok here

if (!status) ListAll = (LISTALL) GetProcAddress(gLabjackU6, "ListAll"); 

if (ListAll==NULL) status = GetLastError(); // Ok here

if (!status) ListAlls = (LISTALLS) GetProcAddress(gLabjackU6, "ListAlls"); //GetProcAddress can not find "ListAlls" and return NULL

if (ListAlls==NULL) status = GetLastError(); // status = 127



Could you let me know what could go wrong?


Thanks in advance