Hi Juergen,
Thanks for your reply.
I have tried this, the ncWrite function returns zero, so no flags are set.
The two lines where the problem is are:
nResult = ncWrite( CcpTxHandle[nStation], nLength, TxData );
if (nResult == 0) nResult = ncWaitForState(CcpTxHandle[nStation],NC_ST_WRITE_SUCCESS,50,StatePtr);
The ncWaitForState function works fine for a while (i.e. I can call this routine 100 or more times), then for no apparent reason it times out waiting for the write transfer to complete. I have a Vector Canalyser connected to the bus too, which shows no frame errors or bus faults.
If I replace the dual port card with two single-port cards, everything works perfectly!
Any ideas?
Regards,
Mike
Mike Evans
TRW Conekt
N.I. Alliance Member, UK
http://www.Conekt.net