Hi,
The below code snippet is given in the TI help for RTDX.
/*************************************************************
Send data to the host;
*************************************************************/
status = RTDX_write( &ochan, arraydata, sizeof(arraydata) );
if ( status == 0 ) {
puts( "ERROR: RTDX_write failed!\n" );
exit( -1 );
}
while ( RTDX_writing != NULL ) {
#if RTDX_POLLING_IMPLEMENTATION
RTDX_Poll();
#endif
}
/*************/
When the variable RTDX_writing is NULL, no target-to-host transfer is occurring.
When the variable is not NULL, the RTDX Target Library is attempting to transfer
data from the target to the host.
So you can check this variable's value to confirm whether the data transfer
is complete or not. Be sure to check out the help as this may differ from
platform to platform.
For your 2nd question, you have not mentioned what application you are using. I
have used Visual C++ application, where I used a predefined data type called
SAFEARRAY to send the chunk of data to be passed to the target.For this you need
to configure the host buffer.
I would suggest that for detailed description, you go through the help manuals
provided by TI.
Bye
Namana
p_kdl <p_kdl@p_kd...> wrote:
Hi everybody,
I am beginner in RTDX concepts. I am using the example programs
given by the TI. I have a confusion. When we write a program to send a
data or a group of data to the host from the target, where we can
confirm that the data has been transmitted.
another confustion,
if we write a program for reception of data from the host to target,
where we should enter the data for the target.
thanking you.
pradeep kulkarni