I need to control a device using the 2 standard serial ports of my PC. I am using LV 6.0 and as OS Win2000.
COM 1 is used to move an arm over a table (VISA not used). This is a message driven communication.
COM 2 is used to read out a laser distance meter (use VISA). This device gives continuously data.
Using both COM ports separately works fine. At least I didn't noticed a problem when using VISA.
However when I use both COM ports together the second COM port sometimes don’t get data.
COM 1 is always open. COM 2 I open just before I want to measure data and close it afterwards. And sometimes, after opening COM 2, the number of bytes available stays 0, although the measuring device continuously gives data.
Although VISA works
better, I still have problems when using both COM ports together.
Does anyone have analogous experiences and what is the best way to solve this problem?
Can both COM ports influence each other? Is using a separate board with serial ports a solution?
Can I clear the serial buffer of a COM port with VISA, or must I just read the data and through them away?