Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
Post a new Thread
RTDX - stephane D - Dec 12 12:43:00 2005
Hi all,
I would like to establish a communication protocol
between an Host client and my CCS application. To do
that, I would like to use RTDX. I have read the
tutorial and some examples are done in C++. To
initialize RTDX com a library is imported from
"c:\ti\cc\bin\rtdxint.dll" but I don't find any
documentations about the interfaces??.
More over all exemples are created with only one
instance of RTDX and it works very well but I would
like to create two instances one to read and one to
write and in that case all is frozen.
Is it possible to do that?
// initialize COM
::CoInitialize( NULL );
// instantiate the RTDX COM Object
hr = rtdx.CreateInstance( L"RTDX" );
cout.setf( ios::showbase );
hr2 = rtdx.CreateInstance( L"RTDX" );
cout.setf( ios::showbase );
// open a channel (ichan) for writing
status = rtdx->Open( "ichan", "W" );
// open a channel (ochan) for reading
statusOchan = rtdx->Open( "ochan", "R" );
Thank you
stephane

(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )
RE: RTDX - robert - Dec 15 23:07:00 2005
Yes, this is possible. Instantiate both read and write, like you have
below. Configure both read and write. Open both read and write.
Robert
> -----Original Message-----
> From: c6x@c6x@... [mailto:c6x@c6x@...] On
> Behalf Of stephane D
> Sent: Monday, December 12, 2005 10:44 AM
> To: c6x@c6x@...
> Subject: [c6x] RTDX
>
> Hi all,
> I would like to establish a communication protocol between an
> Host client and my CCS application. To do that, I would like
> to use RTDX. I have read the tutorial and some examples are
> done in C++. To initialize RTDX com a library is imported
> from "c:\ti\cc\bin\rtdxint.dll" but I don't find any
> documentations about the interfaces??.
> More over all exemples are created with only one instance of
> RTDX and it works very well but I would like to create two
> instances one to read and one to write and in that case all is frozen.
> Is it possible to do that?
>
> // initialize COM
> ::CoInitialize( NULL );
> // instantiate the RTDX COM Object
> hr = rtdx.CreateInstance( L"RTDX" );
> cout.setf( ios::showbase );
> hr2 = rtdx.CreateInstance( L"RTDX" );
> cout.setf( ios::showbase );
> // open a channel (ichan) for writing
> status = rtdx->Open( "ichan", "W" );
> // open a channel (ochan) for reading
> statusOchan = rtdx->Open( "ochan", "R" );
>
> Thank you
> stephane
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.371 / Virus Database: 267.13.13/200 - Release
> Date: 12/14/2005
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date: 12/14/2005

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