Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.
Note: If the asterisk is on the display *RST does not clear it. TRACE:FEED:CONTROL NEVER must be sent. This is important if the meter changes back and forth between sweep and non-sweep modes.
TRACE:FEED:CONTROL NEVER // *RST does not set this back to never
The computer monitors the serial port at the single byte level. Nothing comes in until the sweep is complete.
"Thank you for your interest in Keithley products. My name is Joe Veneri.
Unfortunately due to the way the sweep is ran/data is collected you can not read the contents of the buffer until the sweep is completed."
I tried several methods and came to the same conclusion. The Operation Event Register can be read during the sweep. Bit 3 (8) is high during the sweep.
My actual sweep is five minutes long so the standard few second timeout on serial port reads needs to be dealt with also.
Please note that if either *OPC? in the code is omitted the code may not work depending on how rapidly your computer sends the commands. This is using C# and RS-232 at 19.2kbaud. GPIB is generally even faster.
So far baud rates faster than 19.2k are unreliable. If ALT-Tab is used to switch back and forth between windows under Window 7 the communications at higher baud rates will eventually hang. It doesn't happen every time but if you do it enough or get lucky and do it at the right/wrong time it can happen the first time. We see this when doing 6 measurements per second for long periods. If you only do occasional reads it may take a very long time before you see it happen. If you have solved this I would like to know how. I have tried both USB to RS-232 converters and motherboard based serial ports. They both do it. The XON/XOFF flow control doesn't help. Probably because communication errors can miss or corrupt those characters also. Table 14-2 in the manual says RTS/CTS are tied together.
Code: Select all
:SOUR:VOLT:LEV xxx; :OUTP ON; ?READ;
Who is online
Users browsing this forum: No registered users and 1 guest