This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DDC114: Connection Issues

Part Number: DDC114
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.

  • Hi Elaina,

    The USB_IO_for_VB6.dll has been tested on a Labview and Visual Basic environments and was never tested in Matlab and in Win 10 OS.
  • I don't have Labview. I can try Visual Basic, but I'm pretty much stuck with Windows 10. I can use Mac OS if that would be preferable.

    I do have access to a single Win 7 machine, but it has no software on it. However, I cannot find drivers to make the device work.

    In any case, I cannot seem to get it to open a virtual com port by which I might be able to use some sort of very low-level commands to get information to and from it. Can you help me get a serial port open to talk to it?