02-10-2008 10:26 AM
02-10-2008 11:21 AM
Hi Dana,
in your second while loop, where you read the DAQ data and write to the RS232 port, there are two wait functions, one with 200 ms and one with 500 ms (between read and write of RS232). If you want directly react on you DAQ data, i think you have to delete this wait blocks or reduce the time. The timeout of the DAQ read function should be enough to give some time to the processor.
Mike
02-10-2008 11:53 AM
02-10-2008 12:22 PM
Hi Dana
Ok in this way you are right. How do you measure your delay? What kind of machine is it?
Mike
02-10-2008 12:41 PM
02-10-2008 12:47 PM
Hi Dana,
at the moment you communicate over RS232 with 9600 Baud, is it possible for your robot to communicate with a higher baudrate? And as said before possibly the time between write and read could change something, i´m not sure, but i think it could be possible the the robot react first after sending back a command.
Mike
02-10-2008 03:37 PM