Communicating with PSoC using Matlab | Cypress Semiconductor
Communicating with PSoC using Matlab
I've been trying to control my PSoC code from Matlab via USBUART and have had difficulty sending data from Matlab to the chip.
I have tried impementing both the SPIM_SAR_USB example project and CE60246 (modified for an updated USB interface). Implementing CE60246, I have tried sending data using the fwrite and binblockwrite (I don't think this second one should work). In both cases, Matlab does not complete the transmission and freezes.
Sending data from the PSoC to Matlab has worked fine, so long as the ..PutData() script is inserted in a forever loop. Sending a receipt acknowledgement from Matlab that would terminate the for loop and allow the program to continue is exactly what I want to do next. Has anybody had similar issues, and if so, is there a solution?
Thanks for reading