r/MetCal • • Dec 01 '25

Question Storing standard values in a variable?

Hello! I am a little bit familiar with the metcal environment and I have a question.

We use a set of shunt resistors to use as standards to calibrate low resistance ohmmeters, and I would like to store their values in a file or a variable to use in our procedures, so we can accomodate for the resistors drifting in value over time.

How would you guys implement something like this?

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Similar-Priority-776 Dec 01 '25

I won't say its "solved" but we have managed it well for a couple decades, we have many ini files for discrete standards like shunts, high accuracy resistor sets, capacitors, and inductors. The shunts have multiple current variables to determine the ohm value, similar to our caps and inductors have several frequency variables to load up a Farad/Henry/DF value

2

u/CalibrationAustralia Dec 02 '25

It looks like your question has been answered but I'll add in an example that I use. We don't use Met/Cal for our uncertainty calculations so there are is no accuracy data. We have a few ini files for different resistors, I've included the entire ini file for one of our shunts here:

[Details]
CalDate = 12/04/2021
Serial = WA6344

[Resistance]
90A = 100.57 uOhm
200A = 100.34 uOhm
300A = 100.38 uOhm
500A = 100.40 uOhm

And the code to access it. I include a DISP box confirming the serial number and calibration date to ensure it's the correct device for this one:

  4.007  MATH         @1000AShuntFile = "Z:\JLWILLIAMS-1000ASHUNT.ini"
  4.008  MATH         ShuntCalDate = RIF(@1000AShuntFile, "Details", "CalDate")
  4.009  MATH         ShuntSN = RIF(@1000AShuntFile, "Details", "Serial")

And in the measurement sub-routine to select the resistance value based on the current:

#Resistance value to use
  3.006  IF           BASE(@Current) <= 90
  3.007  MATH         CurrentRange = "90A"
  3.008  ELSEIF       BASE(@Current) <= 200
  3.009  MATH         CurrentRange = "200A"
  3.010  ELSEIF       BASE(@Current) <= 300
  3.011  MATH         CurrentRange = "300A"
  3.012  ELSE
  3.013  MATH         CurrentRange = "500A"
  3.014  ENDIF
  3.015  MATH         Resistance = RIF(@1000AShuntFile, "Resistance", CurrentRange)

In another instance, we have 2 Time 5070 resistor banks, each of the two has it's own ini file. I read the serial number from the Met/Team database depending on which asset is defined in the Met/Cal Instrument List as a user defined instrument named "TIME 5070" like this:

  2.002  MATH         @5070SN = SN(ASSET("TIME 5070"))
  2.003  MATH         @5070CalFile = "Z:\TIME5070-" & @5070SN & ".ini"

1

u/arcticsim12322 Dec 01 '25

Thank you both for the explanation! I’ll start working on making an INI file and implementing this!