JAVADHABIBI
Newbie level 6
Hi every one, I have a Cypress FX2LP(CY7C68013A) and need to communicate with it in Matlab. cypress have a dll for it(CyUSB.dll). after downloading latest version of dll under Cypress Suite USB 3.4.7, I try this steps:
1. Add dll with NET.addAssembly.
2.Get device list with: devList = CyUSB.USBDeviceList(CyUSB.CyConst.DEVICES_CYUSB);
3. check the number of founded device with: devList.Count
4.access to USB with devList.Item(0);
line 3 returns 1, but i cannot access to the USB. it means line 4 crashes Matlab. Using devList(0) also not allowed. What is the problem? and the more fundamental question is that is it possible to connect FX2LP with Matlab? anyone do it Until now?
NOTE: Here and Here is the same problem, But no ultimate answer!
1. Add dll with NET.addAssembly.
2.Get device list with: devList = CyUSB.USBDeviceList(CyUSB.CyConst.DEVICES_CYUSB);
3. check the number of founded device with: devList.Count
4.access to USB with devList.Item(0);
line 3 returns 1, but i cannot access to the USB. it means line 4 crashes Matlab. Using devList(0) also not allowed. What is the problem? and the more fundamental question is that is it possible to connect FX2LP with Matlab? anyone do it Until now?
NOTE: Here and Here is the same problem, But no ultimate answer!