VB 6.0 and HP34401 Multimeter

J

Thread Starter

Jim Jones

Hello.

I've got a problem with controlling HP34401 multimeter via RS232 port. I wrote a software using GP-IB port and everything works, but in case of RS232 it's a problem. I configured everything like they said: baudrate,parity,etc. And nothing.
My Code would be for example:

MSComm1.PortOpen=True
MSComm1.Output="SYST:REM" (this is the multimeter command - it should become REMote controlled)

And nothing.
I'm trying and thinking and checkin conf for 100 times and no response from the multimeter. Did anybody have experience with that stuff?

Could you please mail me?

Best regards
Jim Jones
 
Y

Yeasir Rahul

<p>What response are you expecting from the meter?

<p>Should it send back some bytes througfh the RS232 port?

<p>Have you captured the return data?

<p>The code snippet you gave do not have anything to capture data from the multimeter. It must have something like
<pre>
Private Sub Form_Load()

MSComm1.CommPort = 1
MSComm1.Settings = "19200,E,7,1"
MSComm1.Handshaking = comNone
MSComm1.RThreshhold = 1
MSComm1.InputLen = 0

If Not MSComm1.PortOpen Then
MSComm1.PortOpen = True
End If

End Sub



Private Sub MSComm1_OnComm ()

Dim strResponse as String

If MSComm1.CommEvent = comEvReceive Then
strResponse = MSComm1.Input
End If
Debug.Print strResponse

End Sub
</pre>

<p>Yeasir Rahul<br>
VoltSmith Technology<br>
http://www.voltsmith.com
 
Hello,

You should add the line feed character after HP commands.

ex: MSComm1.Output "SYST:REM" & Chr(10)

I had the same problem and now it works...

Sylvain from France
 
Top