I am using a TI microcontroller to control a system. I sample at 10kHz and each sample is a 16 bit unsigned integer value. The development board is connected by USB to my PC and there are two channels of serial interface carried – one for the JTAG emulation and one that is available for other uses.
My question is this: Is it possible to log data back to the PC over serial and then use MATLAB as an oscilloscope to view it in real time? This would be extremely useful for debugging and for gathering experimental data. A VERY rough calculation would suggest it is possible: 10000 samples * 16 bits = 160,000bps. The microcontroller datasheet shows the serial interface operating at 6.25Mbps in one of the applications.
Are there any examples out there of this being done, or resources that I could look at?
Best Answer