these intermediate vis are part of a sequence, where in the first step of the sequence a pulse is generated, and the second part the sequence the pulse is received. its a sonar system, the error occurs at teh read function, could this have something to do with the buffer?