Facing issue in RS 232 communication with Keithley 2000 DMM

2000, 2001, 2002, 2010, 2100, 2110
Post Reply
mahesh@biss.in
Posts: 2
Joined: November 15th, 2016, 1:52 am
Country: India

Facing issue in RS 232 communication with Keithley 2000 DMM

Post by mahesh@biss.in » November 15th, 2016, 2:00 am

Hello All,

I am facing problem in communicating with KEITHLEY 2000 multi-meter. I have installed Qbasic and i am trying to communicate with the below example program. But Com port itself is not opening and it saying that "bad file error"(error code is 64). Pls help me what could be the problem

RD$ = SPACE$(1500)
CLS
PRINT "Set COM37 baud rate to 9600"
PRINT "Set no flow control, and CR as Terminator"

ComOpen$ = "COM37:9600,N,8,1,ASC,CD0,CS0,DS0,LF,OP0,RS,TB819"
'OPEN "COM37:9600,N,8,1,ASC,CD0,CS0,DS0,LF,OP0,RS,TB819" FOR RANDOM AS #21 LEN = 25

OPEN ComOpen$ FOR OUTPUT AS #1 LEN = 64

PRINT #1, "*RST"

PRINT #1, "*CLS"
PRINT #1, ":INIT:CONT OFF;:ABORT"
PRINT #1, ":SENS:FUNC 'VOLT:DC'"
PRINT #1, ":SYST:AZER:STAT OFF"
PRINT #1, ":SENS:VOLT:DC:AVER:STAT OFF"
PRINT #1, ":SENS:VOLT:DC:NPLC 0.01"
PRINT #1, ":SENS:VOLT:DC:RANG 10"
PRINT #1, ":SENS:VOLT:DC:DIG 4"
PRINT #1, ":FORM:ELEM READ"
PRINT #1, ":TRIG:COUN 1"
PRINT #1, ":SAMP:COUN 100"
PRINT #1, ":TRIG:DEL 0"
PRINT #1, ":TRIG:SOUR IMM"
PRINT #1, ":DISP:ENAB OFF"
SLEEP 1
PRINT #1, ":READ?"
LINE INPUT #1, RD$
PRINT RD$
PRINT #1, ":DISP:ENAB ON"

finish:
CLOSE #1
CLEAR
END

Andrea C
Keithley Applications
Keithley Applications
Posts: 1225
Joined: October 15th, 2010, 10:35 am
Country: United States
Contact:

Re: Facing issue in RS 232 communication with Keithley 2000 DMM

Post by Andrea C » November 17th, 2016, 4:23 am

Are you running DOS?
What version of Qbasic?

COM37 implies that you have one of those USB to RS-232 converter dongles.
You might try reassigning it to a lower COM port number (1 thru 4) which historically could be controlled from Qbasic.

I also suggest that you try an alternate utility program such as Realterm. It might let you validate your COM port and connections to the instrument and separately deal with programming syntax issues in Qbasic.
http://realterm.sourceforge.net/

mahesh@biss.in
Posts: 2
Joined: November 15th, 2016, 1:52 am
Country: India

Re: Facing issue in RS 232 communication with Keithley 2000 DMM

Post by mahesh@biss.in » November 17th, 2016, 10:16 pm

Hello Andera,

Yes true.I have used RS232 to USB converter cable to communicate with the DMM. I am able to open the COM port from one of the serial communication tool. I have enabled the RS 232 and the baud rate 9600, flow control :none and Tx term as CR.
I am sending these commands from PC
*RST\r
*CLS\r
:SYSTem:PRESet\r
:SYSTem:VERSion?\r
the DMM is not responding to these commands. What mistake i am doing it here?

Post Reply

Return to “Series 2000 and Series 2100 DMM's”

Who is online

Users browsing this forum: No registered users and 1 guest