03-22-2006 02:19 AM
03-22-2006 02:34 AM
Try using the 'VISA Flush I/O Buffer' function before the first read. You will find this under VISA >> VISA Advanced >> Interface Specific, on the Functions palette.
If that doesn't work, do a dummy read before the actual read. That is, ignore the first read -- do this read outside your read-loop -- and do not error-chain this to the next function.
Hope this helps.
-Khalid
03-22-2006 04:37 AM
03-23-2006 02:40 AM
I agree with you that, ideally, we would like to get to the root of the problem and solve it.
I am just curious why doing a dummy read would take time? All you have to do is read the number of bytes at the port, do the read and ignore the results and errors. Shouldn't take more than a few milliseconds.
Again, I agree with you that, ideally, we would like to get to the root of the problem and solve it....
-Khalid
04-24-2006 02:14 AM
04-24-2006 01:43 PM
As per your earlier post, doing a dummy read did work. Maybe not?
In any case, what is the device that you're trying to talk to? Does it come with a configuration software? Can you test the communication with this software? Does it come with documentation on the Serial port settings?
If the device accepts simple string commands, try using HyperTerminal, or any other Serial port utility. Also, you can use Portmon to monitor your Serial port activity.
Thanks,
-Khalid