problem with matlab2016 load C dll

The NNow i am trying to control NI instrument by matlab code. But there are some problems.If i use the line 6 words, the matlab shows
"warning no reference to header "niDigital" added with addheader was found in source"
"warning no reference to header "ivi" added with addheader was found in source"
but if i sue
[a,b]=loadlibrary(dll_file1,lib_file2_func,'includepath',data_trace); the matlab shows:
" fatal error: ivi.h: No such file or directory"
  1. clc
  2. dll_file1 = 'xxxxx\niDigital_64.dll';
  3. lib_file1_typedef = 'xxxxx\IviVisaType.h';
  4. lib_file2_func = 'xxxxx\niDigital.h';
  5. data_trace = 'xxxxx\IVI\Include';
  6. [a,b]=loadlibrary(dll_file1,lib_file1_typedef,'addheader','ivi.h','addheader',lib_file2_func,'includepath',data_trace)
  7. libfunctions('niDigital_64','-full')
the attachment is the dll and header file.
thanks so much

답변 (0개)

카테고리

도움말 센터File Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

제품

릴리스

R2016b

질문:

2018년 11월 27일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by