Products > Test Equipment
Free HP3478A multimeter control program.
Miti:
--- Quote from: steve1515 on November 27, 2019, 02:51:26 am ---I believe Miti is using my customized Galvant GPIB-USB firmware version 6 and not the Arduino. I just want to clear this up in case there is any confusion.
--- End quote ---
Yes, I'm using your "v6" firmware but I think lmester's comment was in general, it wasn't addressed to me. I will give your program a try in the next couple of days.
lmester:
--- Quote from: Miti on November 27, 2019, 04:10:26 am ---
--- Quote from: steve1515 on November 27, 2019, 02:51:26 am ---I believe Miti is using my customized Galvant GPIB-USB firmware version 6 and not the Arduino. I just want to clear this up in case there is any confusion.
--- End quote ---
Yes, I'm using your "v6" firmware but I think lmester's comment was in general, it wasn't addressed to me. I will give your program a try in the next couple of days.
--- End quote ---
Sorry for the confusion. Miti is correct. This was a general comment only for users of the Arduino with ar488 firmware. I'm working with the ar488 author to solve this problem. First will be some comparisons of the responses of my real Prologix adapter and the Arduino Prologix clone.
Miti:
Hi Steve,
I tested your program. Reading seems ok, writing is unstable. could be the interface? These are the messages that I've got:
ERROR: Failed while writing calibration data to instrument.
Extended Error Information:
Failed while verifying calibration data in instrument SRAM.
Operation completed successfully.
ERROR: Failed while writing calibration data to instrument.
Extended Error Information:
Failed while verifying calibration data in instrument SRAM.
ERROR: Failed while writing calibration data to instrument.
Extended Error Information:
Invalid GPIB adapter version string.
ERROR: Failed while writing calibration data to instrument.
Extended Error Information:
Invalid GPIB adapter version string.
ERROR: Failed while writing calibration data to instrument.
Extended Error Information:
Could not communicate with instrument.
Writing calibration data to instrument...
Operation completed successfully.
I added it to my collection of utilities anyway.
Thanks!!
steve1515:
Miti,
When it writes it reads back to verify. I believe it's this step that's failing. Do you have the switch on the front panel turned to cal mode? If this switch isn't turned it should cause this.
Although, if you read and then write back the exact same data, then it should succeed even if cal mode is not turned on since the verify would pass since the data is the same.
Does the data read look kind of ok? I wonder if there's an issue with your SRAM.
I wonder if anyone else would be able to try out my firmware with the Galvant just to make sure there aren't any issues. Hmm... :-BROKE
EDIT: Just noticed that you also are getting errors getting the version string. I if you open a terminal window can you issue "++ver" and see if that works? The GPIB-USB should return a version string.
--Steve
lmester:
Steve,
I decided to try your software. You may be interested to know that it works good with a real Prologix adapter!
No luck with the Arduino. I had to add a delay in my code to get it to connect to the Arduino. The Arduino starts it's boot loader whenever the COM port is opened. It takes about two seconds from opening the port until the Arduino bails out of the boot loader and starts running application code. Do you have any delay after opening the COM port?
Also, I like the way you show the cal gain and offset. If you don't mind, i'd like to use some of your code to add that feature to mine.
--- Code: ------ save cal using Prologix ---
D:\Junk\cal>hp3478acalibration.exe -f file.cal -r 6
Reading calibration data from instrument...
Instrument contains valid calibration data.
Writing calibration data to file...
Operation complete.
Calibration Raw Raw
# Entry Offset Offset Gain Gain Checksum
-- -------------- ------ ------- ----- -------- --------
01 30 mV DC 000310 310 2CCCE 1.015558 C7
02 300 mV DC 000031 31 2CC3F 1.015629 CF
03 3 V DC 000004 4 2CCF5 1.015595 CD
04 30 V DC 999994 -6 1521F 1.015209 B6
05 300 V DC 000000 0 152DE 1.015168 DC
06 <not used> 000000 0 00000 1.000000 FF
07 AC V 999502 -498 14F45 1.013945 C0
08 30 Ohm 2W/4W 999904 -96 050DE 1.004968 B7
09 300 Ohm 2W/4W 999991 -9 054EE 1.005378 AC
10 3 kOhm 2W/4W 999999 -1 05344 1.005344 B9
11 30 kOhm 2W/4W 999999 -1 0512C 1.005116 B5
12 300 kOhm 2W/4W 999999 -1 0522F 1.005219 B1
13 3 MOhm 2W/4W 999999 -1 052D1 1.005171 B4
14 30 MOhm 2W/4W 999999 -1 0524F 1.005239 AF
15 300 mA DC 000260 260 3EF50 1.027950 D2
16 3A DC 000025 25 3E00D 1.027997 DA
17 <not used> 000000 0 00000 1.000000 FF
18 300 mA/3A AC 999502 -498 3C3F2 1.026292 BA
19 <not used> 000000 0 00000 1.000000 FF
--- save cal using ar488 ---
--- Note that AR488 does return the substring "GPIB" for ++ver ---
D:\Junk\cal>hp3478acalibration.exe -f file.cal -r 6
Reading calibration data from instrument...
ERROR: Failed while reading calibration data from instrument.
Extended Error Information:
Invalid GPIB adapter version string.
D:\Junk\cal>
--- program settings ---
<?xml version="1.0" encoding="utf-8" ?>
<Settings>
<!--Serial Port Settings-->
<SerialPort>
<PortName>COM11</PortName>
<BaudRate>460800</BaudRate>
<DataBits>8</DataBits>
<Parity>None</Parity> <!--Parity = None, Odd, Even, Mark, Space-->
<StopBits>One</StopBits> <!--StopBits = One, OnePointFive, Two-->
<FlowControl>None</FlowControl> <!--FlowControl = None, RequestToSend, RequestToSendXOnXOff, XOnXOff-->
</SerialPort>
<!--GPIB Adapter Settings-->
<GPIBAdapter>
<Timeout>1000</Timeout> <!--Serial/GPIB Timeout (mSec)-->
<VersionString>GPIB</VersionString> <!--Command '++ver' return value must contain this string.-->
</GPIBAdapter>
</Settings>
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version