Hi HKJ,
I am working on a definition for a Philips / Fluke PM2811 programmable power supply. It is SCPI compliant, and I am using the R&S HMC8043 definition for guidance.
This power supply was sold in several versions: 30V/10A and 60V/5A, front panel and back panel connectors etc. All these versions are having a bit different type number, and thus give a different answer to *IDN?.
Philips PM2811 30V / 10A: PHILIPS,PM2811/01 Philips PM2811 60V / 5A : PHILIPS,PM2811/11 |
1. Obviously the 30V/10A and 60V/5A versions need a bit different definition.
Would this work:
; Meta definition for PM2811 30V/10A version
#metadef
#idString PHILIPS,PM2811/01
....
; Meta definition for PM2811 60V/5A version
#metadef
#idString PHILIPS,PM2811/11
.....
Would TC automatically pick the right #metadef, depending on the *IDN? Answer?
I suppose the easy way would be to create just two model names: “Philips PM2811 30V/10” and “Philips PM2811 60V/5A”. But that seems to be a less elegant solution.
2. The second digit after the slash can change too…
Probably it means "front- or back panel connectors". But it could also be "Country Version" (In the full Type Number there are 3 digits after the slash…)
Anyway, the value of this last digit is not important for the definition. (No changes in the definition are needed when this digit changes)
But with a different *IDN? Answer TestController will not recognize the device…
So, is it possible to “mask” this last digit when TC does the device recognition with *IDN? Or is there another solution?
3. These power supplies were sold by Philips, but after the Fluke/Philips T&M alliance, they were sold under the Fluke brand. (In practice, I see more Fluke PM2811 than Philips PM2811).
However, also with the Fluke version, the *IDN? Answer remained PHILIPS,PM2811/xx
So, would you like to have both the Fluke and Philips version in your supported list?
And would coding like this work, as both #metadef’s are having the same #idstring:
; Meta definition for Philips PM2811 Power Supply
#metadef
#idString PHILIPS,PM2811/01
#name Philips PM2811
#handle PM2811
....
; Meta definition for Fluke PM2811 Power Supply
; As far as known the later Fluke versions kept "PHILIPS" in de *IDN? answer string
#metadef
#idString PHILIPS,PM2811/01
#name Fluke PM2811
#handle PM2811
....
Thanks in advance & regards, Gertjan.
edit: added the info that PM2811 is a SCPI instrument.