Aller au contenu principal

LookupSpecMaster

This function returns attribute information about a master currently being used for the calibration. This master will be referenced by the 'Master Rule' name in the uncertainty module. As you will remember, when the test points grid is selected in the calibration event, GI maps each master rule to an actual master. So, it takes 2-4 parameters. Returns a Numeric.

1) Text the name of the master alias you are looking up.

2) Text the name of the attribute you are looking up (as entered on the new 'Uncertainty' tab on the main screen). If you are looking up a Table or Set, you can put in additional names separated by a semicolon. If additional names are required by the parameters below but not specified, they'll be treated as if they were the same as the last name used.

3) Text (optional), this parameter is only relevant if you are looking up a value in a Table. If so, the second parameter is where you specify the number you are looking up in the table. You can separate them with a semicolon if you have multiple values to compare. If additional values are required by the parameters above or below but not specified, they'll be treated as "". If your attribute is a Lookup, Formula, or Set type, you can skip this or use "".

4) Text (optional), this parameter is only relevant if you are looking up a value in a Table. If so, the third parameter is where you specify the units you are looking up in the table. You can separate them with a semicolon if you have multiple values to compare. If additional values are required by the parameters above but not specified, they'll be treated as "". If your attribute is a Lookup, Formula, or Set type, you can skip this or use "". If left blank, any unit of measure is considered a match.

Failure to find a matching specification row will return 0. Table lookups that go deeper than exists will return 0.

Examples:

LookupSpecMaster("MASTER","ACCURACY"): This is treated as LookupSpecMaster("MASTER","ACCURACY","",""). For a Table or Set type, it's treated as LookupSpecMaster("MASTER","ACCURACY;ACCURACY","","")

LookupSpecMaster("MASTER","ACCURACY",0): This is treated as LookupSpecMaster("MASTER","ACCURACY","0",""). For a Table or Set type, it's treated as LookupSpecMaster("MASTER","ACCURACY;ACCURACY","0","")

LookupSpecMaster("MASTER","ACCURACY",0, "mm"): This is treated as LookupSpecMaster("MASTER","ACCURACY","0","mm"). For a Table or Set type, it's treated as LookupSpecMaster("MASTER","ACCURACY;ACCURACY","0","mm")

LookupSpecMaster("MASTER","SPECIFICATION;AC VOLTS;INDUCTANCE","50;7"): This is treated as

LookupSpecMaster("MASTER","SPECIFICATION;AC VOLTS;INDUCTANCE","50;7","";"").

Lookup And Formula will treat it as LookupSpecMaster("MASTER","SPECIFICATION","",""), Set will treat it as LookupSpecMaster("MASTER","SPECIFICATION;AC VOLTS")

LookupSpecMaster("MASTER","ACCURACY","11","V;mA"): This is treated as

LookupSpecMaster("MASTER","ACCURACY;ACCURACY;ACCURACY","11;""","V;mA")

LookupSpecMaster("MASTER","ACCURACY;ACCURACY;ACCURACY","5","V"): This is treated as

LookupSpecMaster("MASTER","ACCURACY;ACCURACY;ACCURACY","5;""","V;""") |