Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
Post a new Thread
RTDX for huge data transferring - ahma...@yahoo.com - Oct 9 2:52:00 2005
hello
How can I exchange image data between host (MATLAB 7) and target program on C6711 dsk?
My hoost and target codes for RTDX are as below this text. When the amount of data to be
transfered
is more than 1010 Byte, the MATLAB sends timeout error for reading data from 'ochan';although I
set the timeout=1000s.
Do you know Why? Is it because of parallel port?
-------------------------------
THE HOST (MATLAB 7) CODES:
-------------------------
cc=ccsdsp('boardnum',0,'procnum',0);
configure(cc.rtdx,2048,4)
open(cc.rtdx,'ichan','w')
open(cc.rtdx,'ochan','r')
enable(cc.rtdx);
enable(cc.rtdx,'ichan');
set(cc.rtdx,'timeout',1000);
I=imread(['d:\image\1475.jpg']);
I1=rgb2gray(I);
I1=255*im2double(I1);
ui8=uint8(I1(1:1020));
if iswritable(cc.rtdx,'ichan'),
writemsg(cc.rtdx,'ichan', ui8)
end
pause(9)
enable(cc.rtdx,'ochan');
num_of_msgs = msgcount(cc.rtdx,'ochan')
outdata = readmsg(cc.rtdx,'ochan', 'uint8')
disable(cc.rtdx,'ALL');
% DISABLE RTDX
disable(cc.rtdx);
% CLOSE channels
close(cc.rtdx,'ichan');
clear cc; % Call destructor
-----------------------------------------------------------------------------------
THE TARGET APPLICATION CODE ON 6711DSK:(it is very similar to MATLAB RTDX tutorial)
--------------------------------------
#include <rtdx.h> /* RTDX_Data_Read */
#include <stdio.h> /* printf */
#include

(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )