public static int daqRead(uint index, ref UniSetPacket setPacket) { int error_code; const uint DOBLOCK = 1; error_code = DAQ.USCOMM_Read(index, ref setPacket, DOBLOCK); return(error_code); }