フィルターのクリア

How do I add link a external typedef to matlab

3 ビュー (過去 30 日間)
Hurter
Hurter 2013 年 1 月 23 日
回答済み: justin 2017 年 11 月 10 日
Hi
I have to access data from 'n custom electronic card to matlab via the usb port.
When loading the external dll using:
[notfound, warnings] = loadlibrary ('ftd2xx','ftd2xx')
notfound =
Empty cell array: 0-by-1
warnings =
Bitfields are unsupported in structures. Structure s_FTCOMSTAT skipped. Found on line 1061 of input from line 1096 of file d:\..\ftd2xx.h
Bitfields are unsupported in structures. Structure s_FTDCB skipped. Found on line 1092 of input from line 1127 of file d:\..\ftd2xx.h
Now I am not sure if these warnings are the problem or not but when I try to add variable related to a typedef I get this:
ftHandle = libstruct ('PVOID') ??? Error using ==> feval Undefined function or variable 'lib.PVOID'.
Error in ==> libstruct at 15 ptr=feval(['lib.' structtype]);
What am I doing wrong?

回答 (1 件)

justin
justin 2017 年 11 月 10 日
Total longshot, but did this ever get resolved? running into a similar issue with loadlibrary.

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by