It works, initially. The 2nd try transfers about half of the waveform. Then, a quater... eventually gives out an error. Anyone knows what the cause of this problem?
Error messages are not consistent either. VISA: (Hex 0xBFFF006B) A framing error occurred during transfer. VISA: (Hex 0xBFFF006A) A parity error occurred during transfer. And after a while it works. Would that be a kind of conflict between devices?
Those are problems with serial communication. If you're running at high baud rates, you might want to crank it down a bit, use a better quality or shorter serial cable, or use hardware handshaking.
Thanks Dennis I just found that a Tektronix command 'curve?' didn't get the waveform tranferred fully unless you reset the oscilloscope. Also found that time delaying helped the program not to make an error, although it still transfers a part of the waveform. Any thought about this?