

One to stimulate the input and one to measure the output. First, unless you use a GPIB interface, you are stuck using one instrument at a timeĪnd, as you saw in Example 1, a simple automated test would need at least two instruments, Why do I want to reinvent the wheel? Well, my experience of these interfaces is that they are Like Agilent, even provide utilities that allow the instrument to operate within Excel. Should I ignore the Handshaking property, or set it to something?Ī little advice, up front, should help me get this coding started.Many electronic instruments are supplied with a computer interface. Is this equivalent to the previous "With" statement?Īlso, the protocol says the use of handshaking when communicating with the controller is optional. Settings = "9600,O,7,2" 'baud,parity,data bits,stop bits Perhaps someone can help me "jump start" this part of the project with some simple code samples?įor example, I'd like to ask the controller what setup program is assigned to pump drive 1, "N1 and display the numeric response from the controller, "#", with the carriage return removed. I'm slowly working through a site,, a number of MicroSoft Knowledge Base articles, and code samples provided by Expert Exchange members, to get started writing actual subroutines.

Now that I am familiar with the controller protocol, I'm moving on to VBA code. The controller resonds with an "acknowledge" symbol, a "negative acknowledge" symbol, or numeric data. The body of PC transmissions may have 1- or 2-letter commands, sometimes followed by numeric parameters.

The controller responds with data, followed by. Commands from the PC begin with a "start of text" character and end with a "carriage return". The controller has its own serial protocol using ASCII characters. Since then, I have established communication with the controller using Hyperterminal. The work PC is actually hooked up to the serial device, a pump controller.

I have succeeded in getting it on my home Windows XP machine where I write code, and a PC at work running Win' 98. Recently, I got helpful advice on how to install and register MSComm32.ocx for a serial communication project I am working on.
