When I run the following code:
hfile = ['C:\Program Files\National Instruments\CVI80\include\visa.h'];dllfile = ['C:\WINDOWS\system32\visa32.dll'];[result, warnings] = loadlibrary(dllfile, hfile)
I obtain the following warning messages:
warnings = Failed to parse type '...' original input ' ...' Found on line 365 of input from line 149 of file C:\Program Files\National Instruments\CVI80\include\visa.h Error parsing argument for function viPrintf function may be invalid. Failed to parse type '...' original input ' ...' Found on line 367 of input from line 151 of file C:\Program Files\National Instruments\CVI80\include\visa.h Error parsing argument for function viSPrintf function may be invalid. Failed to parse type '...' original input ' ...' Found on line 371 of input from line 155 of file C:\Program Files\National Instruments\CVI80\include\visa.h Error parsing argument for function viScanf function may be invalid. Failed to parse type '...' original input ' ...' Found on line 373 of input from line 157 of file C:\Program Files\National Instruments\CVI80\include\visa.h Error parsing argument for function viSScanf function may be invalid. Failed to parse type '...' original input ' ...' Found on line 377 of input from line 161 of file C:\Program Files\National Instruments\CVI80\include\visa.h Error parsing argument for function viQueryf function may be invalid.
If I load the 64-bit version of the DLL, visa64.dll, I get the following warning messages:
Warning: The data type 'error' used by function viPrintf does not exist. > In loadlibrary at 402 Warning: The data type 'error' used by function viSPrintf does not exist. > In loadlibrary at 402 Warning: The data type 'error' used by function viScanf does not exist. > In loadlibrary at 402
The functions listed also do not work.
Best Answer