02-19-2007 01:07 PM
02-20-2007 02:12 AM
02-20-2007 04:09 AM
02-20-2007 04:24 AM
Hi Michal,
I cannot say that the VI i use is better but it works for me for all my devices at RS-232 and RS-485 interfaces.
The VI writes data to the COM port and then waits for the number of bytes OR waits for the same number of bytes at the com port for the last 5 cycles (100msec / cycle) or times-out.
Like you said if you know the number of bytes it's easy. But it also helps if you only know the maximum number of bytes.
The VI works fine for me also for jobs where I don't know the number of bytes to receive. Just give it a try.
02-20-2007 04:28 AM
02-20-2007 07:24 AM
Misio,
Thanks for your efforts.
KC,
I too work with an undetermined amount of bytes to read from many instruments so I can hopefully make use of your COM vi. Also, thanks for saving the other vi in 7.1, I appreciate it.
Regards,
02-20-2007 07:33 AM
02-20-2007 07:51 AM
For a few stars I'll do everything
Here it is. Although it's not much
02-20-2007 08:29 AM
02-20-2007 08:37 AM