From another window, start MEDM. Make sure that the P and R
macro values match those from st.cmd.
You should see something like the window shown below. I've made a
few changes to the original values including increasing the trace I/O
truncate size to 100 characters, enabling the traceIOEscape display and
turning on traceIODriver debugging.
Click on the 'More...' button and bring up the "asynOctet Interface
I/O" window. I've made some changes here as well – I've selected
Binary input format and increased the requested input length to
100. If your device messages are 40 characters or less you don't
have to make this change. If you're using a non-GPIB device you
probably need to specify appropriate input and output terminator
Try entering some commands. A good one to start with is the SCPI
Device Identification (*IDN?) command. You can see why I had to
arrange for reply messages longer than the default 40 characters!
The readback display is truncated. Since I have traceIODriver
enabled I can see the entire message in the IOC console window:
2007/09/20 09:01:15.998 L0 24 vxiWrite
2007/09/20 09:01:16.009 L0 24 vxiRead
KEITHLEY INSTRUMENTS INC.,MODEL 2400,1163289,C30 Mar 17 2006 09:29:29/A02 /K/J\n