HP54645D print screen via RS232 - Page 1
Forum section: electronics / testgear

author: Rémi
author_rank: Regular Contributor
timestamp: August 09, 2017, 03:44:25 pm
content: Hello,I'm trying to capture the screen of my HP54645D oscilloscope. The oscilloscope is connected to my computer (win 7) using a serial to USB adapter that I bought (apparently the adapter is constructed around a PL2303TA chip). The driver of the adapter is installed and visible in the Device Manager (I've determined the COM port using that). I've tried to run hyperterminal et putty to get the data but I had no success. I've checked with another oscilloscope and there is data going out of the TX pin of the oscilloscope.I've setup the oscilloscope capture settings as follow :Format : PlotterFactors : ONColors : 2Baud rate : 19200Handshake : DTRI'm using the same settings in hyperterminal & Putty but I wasn't able to retrieve data. I'm not familiar with Hyperterminal or Putty so maybe something is wrong in the settings.Thanks a lot if you can helpRémi

author: free_electron
author_rank: Super Contributor
timestamp: August 09, 2017, 05:09:07 pm
content: You will need a fully wired serial port for that. set handshake to off or xon/xoffthe scope will want to see a handshape from a real plotter and possibly will ask the plotter information . if nothing is sent to the scope it will not start transmission.switch the handshake off.there is a plotter emulator program out ther that emulates a HP7550 plotterhttp://www.aphena.com/pltgeist/pltgeist.htmhttp://www.ke5fx.com/gpib/7470.htmhttp://www.printcapture.com/details.html

author: Rémi
author_rank: Regular Contributor
timestamp: August 09, 2017, 06:57:10 pm
content: Quote from: free_electron on August 09, 2017, 05:09:07 pmThanks for your answer. The plotter emulator program is not cheapRegarding the ke5x and PrintCapture program, they work with GPIB.I tried with the handshake set to xon/xoff and to off but still no luck

author: elecman14
author_rank: Unknown
timestamp: August 09, 2017, 07:08:39 pm
content: The ke5fx program works with RS232 and is free. It just needs a few config files tweaked to get it to work. You have to tell it to speak RS232 instead of GPIB. Their are multiple config files, I just changed all of them from the start. Not sure which one the program actually looks at.Since you say you see signals on the TX pin from the scope you might want to verify you USB to RS232 adapter is working by creating a loopback. With this connected text sent out should appear coming back in a serial terminal. With it disconnected sent text should not appear. Assuming your terminal does not echo.

author: Rémi
author_rank: Regular Contributor
timestamp: August 09, 2017, 07:30:48 pm
content: Quote from: elecman14 on August 09, 2017, 07:08:39 pmThank you, I will try that. I need to modify the file default_connect.ini where the line starts by "interface_settings" ?

author: elecman14
author_rank: Unknown
timestamp: August 09, 2017, 07:35:11 pm
content: I modified the default_connect.ini and the with this:;----------------------------------------------------------------------;interface_settings GPIB0interface_settings com3:baud=19200 parity=N data=8 stop=1;----------------------------------------------------------------------and the serial.ini with this (not 100% sure it was not like this or is needed)serial_device COM3:baud=115200 parity=N data=8 stop=1Also make sure your scope is in "DTR" mode to disable handshakeing

author: texaspyro
author_rank: Super Contributor
timestamp: August 10, 2017, 05:43:20 am
content: Quote from: elecman14 on August 09, 2017, 07:08:39 pmI'm rather fond of the KE5FX 7470 plotter program. I wrote the HPGL/2 (and PCL) renderer that it now uses. That renderer was originally written for my ATMEGA 2561 single board computer with a 160x80 LCD touch screen and also is used in my program that is a swiss army knife for manipulating CNC files. The 2561 board has code that emulates a Prologix GPIB <> serial adapter. It's kind of cute seeing an instrument screen dump on a 160x80 monochrome screen.VERY few programs programs (including some rather expensive commercial ones) properly/consistently render HPGL files. The best free program came out of CERN (http://service-hpglview.web.cern.ch/service-hpglview/hpglviewer.html), but it is not designed to work with live data streaming from a device. It has a few bugs (like handling HPGL comments) but implements more of the fancy features of HPGL2.

author: Rémi
author_rank: Regular Contributor
timestamp: August 10, 2017, 06:17:35 am
content: Quote from: elecman14 on August 09, 2017, 07:35:11 pmMy scope is in DTR mode, I've modified connect.ini, serial.ini and default_connect.ini as follow :interface_settings com4:baud=19200 parity=N data=8 stop=1is_Prologix 0Now when I run the HP7470A Plotter emulator and click on Acquire -> Wait for device-initiated plot and then on the scope Print screen, all I get on my computer is "Reading data from instrument, 0 bytes received...And it stays like that.

author: Lorenzo_1
author_rank: Regular Contributor
timestamp: August 10, 2017, 10:44:04 am
content: I recently went through this process with a newly acquired LeCroy 9424 scope using RS232 output through an RS232:USB converter. Went through similar trials and difficulties initially but with the aid of an RS232 breakout box and PrintCapture got it working in one night. The breakout box was simply useful to confirm the oscilloscope and computer were talking and check which lines were in use. Turns out I needed to use a null modem in line with the RS232 cable to get the comms working properly - luckily I had one on the shelf. PrintCapture can be downloaded on a trial basis while you test it out. The setup details on their website were the key to getting the configuration right. Works like a charm now. PrintCapture also has a long list of models their software is known to work with - 94xx was listed but not the 9424 specifically, from memory.Choosing the right RS232:USB converter can be critical. Had lots of problems with cheap Chinese models with drivers that were unreliable or simply wouldn't work - in that case to set up automotive diagnostic hardware/software and also with GPS units. One of them actually caught fire connected between laptop and GPS! Finally bought a high-priced Keyspan USA-19HS and have had no problems since.FWIW I have no link/connection to KeySpan or PrintCapture - simply have found these items work for me.

author: Rémi
author_rank: Regular Contributor
timestamp: August 10, 2017, 01:20:15 pm
content: Quote from: Lorenzo_1 on August 10, 2017, 10:44:04 amThanks a lot Lorenzo, you were right, I had to use a null modem cable (just 3 wire RX, TX and GND) to get it working. Now with KE5FX 7470 plotter program I get an image.

author: pascal_sweden
author_rank: Super Contributor
timestamp: August 10, 2017, 02:16:35 pm
content: Cool that it works! This brings HP54645D back to 2017

author: Lorenzo_1
author_rank: Regular Contributor
timestamp: August 12, 2017, 11:18:24 pm
content: Good that it worked for youWhen I started I tried feeding LeCroy RS232 output via USB converter direct into HP Laserjet USB port. But that port proved to be unpowered so wouldn't drive the converter. Couldn't find an externally powered converter or work-around, so figured I'd have to run converter using laptop USB. That led me to PrintCapture to decode traffic and then print the file as a 2nd step. Clunky but effective. Haven't got round to working with GPIB interface yet.

author: alm
author_rank: Super Contributor
timestamp: August 12, 2017, 11:29:05 pm
content: You should also be able to use SCPI commands to get the raw data from the scope for further analysis or plotting. Not sure if there ready-made packages for that except ancient HP software or thefairly expensive software from Metratek.

author: Lorenzo_1
author_rank: Regular Contributor
timestamp: September 21, 2017, 11:44:22 pm
content: I commented earlier in this thread about capturing screens from a LeCroy scope RS232 interface using PrintCapture software. Thought I should let users know that my attempt to purchase a licence for PrintCapture has been singularly unsuccessful to date - their 30-day test download software works OK. When I paid for a licence I was advised I could use it for 5 days, by which time I would receive licence details. However, no licence received after several weeks and no response to emails to their support line. Free download stopped working as expected. I'm hopeful of getting money back through the payment service I used. Meantime I found, contrary to expectation, that the free downloadable LeCroy WaveStudio software works fine with my 9354AL and downloads and prints screens very nicely. Lesson learned I guess.

author: NikoJu
author_rank: Newbie
timestamp: March 01, 2022, 12:28:02 pm
content: Hi,Thanks to this thread I've now successfully set up the serial communication to my HP54645D Scope and would like to Plot my screen using the HP7470A Plotter emulator.I did however run into a slight problem that I was unable to solve yet. When I click on "wait for device-initiated Plot" I get a communications error. However when I initiate the plot from the scope's print menu and afterward click on "wait for device-initiated Plot" it perfectly plots the data it receives (although being cropped because it misses the first couple of bytes)does anyone know what I am doing wrong?Thanks!