In TestController, I expect when using [LOC], that a ++loc is sent to the meter (and intercepted by the GPIB controller). But this is not the case. Nothing is sent. And nothing appears in the debug log...
I wrote a as small as possible definition for testing, and it seems that none of the TC GPIB commands are working. (I tried [CLR], [LLO] and [LOC] ). Example: #finalCmd [LOC]; or #finalCmd [LOC];[500];
So these findings are in line with the post of dl6lr above...
Can these commands only be used with the ASCII driver, or is something broken? I was testing with a AR488.
The beta version I posted a link to above (Post #3220) has added these commands to the SCPIx driver, but it is not tested.
Hi HKJ,
I found the root cause of these problems.
The Prologix commands should be in lowercase, and TC outputs CAPITALS.
I did tests, comparing AR488 with the original Prologix GPIB adapter:
IMG 1837 AR488 and Prologix-2000pix.jpgIt turns out that the commands in the Prologix command language should be in lowercase. The AR488 is tolerant for CAPITAL LETTERS, and executes the command just the same. But the original Prologix is not tolerant! A command in CAPITAL LETTERS is NOT executed, and the Prologix returns an error message.
A piece of TC debug log of the shutdown procedure (ASCII driver, for Keithley 199 I was working on):
with original Prologix
=============
;; K199: Tx <clear>
;; K199: Tx <tx [CLR]>
;; COM27: Tx: <++CLR.> 2B 2B 43 4C 52 0A <--- UPPERCASE, is not a valid command
;; K199: Delay: 1000ms
;; K199: Tx <goLocal>
;; K199: Tx <tx [LOC]>
;; COM27: Tx: <++LOC.> 2B 2B 4C 4F 43 0A <--- UPPERCASE, is not a valid command
Using a AR488
=========
;; K199: Tx <clear>
;; K199: Tx <tx [CLR]>
;; COM15: Tx: <++CLR.> 2B 2B 43 4C 52 0A <--- UPPERCASE, but is executed by AR488
;; K199: Delay: 1000ms
;; K199: Tx <goLocal>
;; K199: Tx <tx [LOC]>
;; COM15: Tx: <++LOC.> 2B 2B 4C 4F 43 0A <--- UPPERCASE, but is executed by AR488
;; K199: Delay: 1000ms
;; COM15: Close
- With the Prologix the ++CLR and ++LOC are not executed, the meter stays in remote.
- with the AR488 ++CLR and ++LOC are properly executed, the meter goes to local control, end the COM port is properly closed.
I checked the Prologix behaviour in a terminal program:
++ver
Prologix GPIB-USB Controller version 6.107
++VER
Unrecognized command
++CLR
Unrecognized command
++LOC
Unrecognized command
Please can you adjust the TC code so it will output ++ commands in lowercase for [CLR], [LLO], [LOC] and [TRG]?(The GPIB init commands are fine, TC sends these in lowercase.)
regards, Gertjan.