Other Parts Discussed in Thread: DDC11XEVM-PDK
I have a DDC114 (connected to a DDCMB), which connects via USB to my computer.
I would like to talk to this device via MatLAB software. I have the DDC11xEVM_DLL_Files, which include both a .dll file and a header file, but MatLAB gives an error when trying to connect to the DLL file. (Note: I am running Windows 10 within Mac.)
>> loadlibrary('USB_IO_for_VB6')
Warning: Warnings messages were produced while parsing. Check the functions you intend to use for correctness. Warning
text can be viewed using:
[notfound,warnings]=loadlibrary(...)
> In loadlibrary
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********
Type 'intclassCUSB_IO_for_VB6{public:' was not found. Defaulting to type error.
Found on line 20 of input from line 19 of file \\Mac\\Home\\Documents\\MATLAB\\DDC11xEVM_DLL_Files\\USB_IO_for_VB6.h
*********
Error using loadlibrary
Building USB_IO_for_VB6_thunk_pcwin64 failed. Compiler output is:
cl -I"C:\Program Files\MATLAB\R2017b\extern\include" /Zp8 /W3 /nologo
-I"\\Mac\Home\Documents\MATLAB\DDC11xEVM_DLL_Files" -I"\\Mac\Home\Documents\MATLAB\DDC11xEVM_DLL_Files"
"USB_IO_for_VB6_thunk_pcwin64.c" -LD -Fe"USB_IO_for_VB6_thunk_pcwin64.dll"
USB_IO_for_VB6_thunk_pcwin64.c
\\Mac\Home\Documents\MATLAB\DDC11xEVM_DLL_Files\USB_IO_for_VB6.h(15): error C2054: expected '(' to follow 'class'
\\Mac\Home\Documents\MATLAB\DDC11xEVM_DLL_Files\USB_IO_for_VB6.h(15): error C2085: 'CUSB_IO_for_VB6': not in formal
parameter list
\\Mac\Home\Documents\MATLAB\DDC11xEVM_DLL_Files\USB_IO_for_VB6.h(15): error C2143: syntax error: missing ';' before '{'
USB_IO_for_VB6_thunk_pcwin64.c(33): error C2061: syntax error: identifier 'CUSB_IO_for_VB6'
USB_IO_for_VB6_thunk_pcwin64.c(33): error C2059: syntax error: ';'
USB_IO_for_VB6_thunk_pcwin64.c(33): error C2449: found '{' at file scope (missing function header?)
USB_IO_for_VB6_thunk_pcwin64.c(332): fatal error C1004: unexpected end-of-file found
I have also tried to connect via virtual COM (serial) port, but that does not seem to be working either. MatLAB cannot seem to communicate with the virtual COM port.
I found elsewhere on this forum the DDC11XEVM-PDK files, and I can connect to the device with the executable contained within, but I need more control.