Opt.005 features can be programmed using the COM interface. This interface, IParallelPlate, is described in the type library MaterialsMeas.dll. The interface has the methods listed below.
HRESULT Init();
Init() must be called before any of the other methods can be used. It opens a copy of the N1500A.exe. It returns S_OK if successful and S_FALSE if not.
HRESULT Quit();
Close N1500A program.
HRESULT Hide();
Make N1500A run in the background.
HRESULT Show();
Make N1500A main frame show.
HRESULT SaveSetupFile(BSTR file);
HRESULT OpenSetupFile(BSTR file);
Save and Open a setup file.
HRESULT SetMeasurement(double start, double stop, long num, long mode);
Sets the start and stop frequencies, number of points, and sweep mode.
Sweep Mode
LINEAR_SWEEP = 0,
LOG_SWEEP = 1
HRESULT GetStartFrequency(double *start);
HRESULT GetStopFrequency(double *stop);
HRESULT GetNumberPoints(long *num);
HRESULT GetSweepType(long *type);
Returns the start, stop frequencies, number of points and sweep type.
Sweep Mode: LINEAR_SWEEP = 0, LOG_SWEEP = 1.
HRESULT GetOSC(long* unit, double* level);
HRESULT SetOSC(long unit, double level);
Set and Get OSC unit and leve. Unit: VOLTAGE = 0, CURRENT = 1.
HRESULT GetMeasTime(BSTR* measTime);
HRESULT SetMeasTime(BSTR measTime);
HRESULT GetPointAverage(long* pointAve);
HRESULT SetPointAverage(long pointAve);
HRESULT GetSweepAverage(long* sweepAve);
HRESULT SetSweepAverage(long sweepAve);
HRESULT GetPointDelay(double* pointDelay);
HRESULT SetPointDelay(double pointDelay);
HRESULT GetSweepDelay(double* sweepDelay);
HRESULT SetSweepDelay(double sweepDelay);
HRESULT GetCalibrationPoints(long* calPoints);
HRESULT SetCalibrationPoints(long calPoints);
Set and Get calibration/Compensation points. FIXEDPOINT = 0, USERPOINT = 1.
HRESULT GetFixture(long* fixture);
HRESULT SetFixture(long fixture);
Set and get fixture type.
Fixture: FIXTURE16451B = 0, FIXTURE16452A = 1, FIXTURE16453A = 2, FIXTURE16454AL = 3, FIXTURE16454AS = 4.
HRESULT Get16451B(long* electrode, double* diameter, double* thickness, long* method, double* gap);
HRESULT Set16451B(long electrode, double diameter, double thickness, long method = 0, double gap = 0);
Set and get 16451B fixture parameters.
Electrode: A = 0, B = 1, C = 2, D = 3.
Method is for “Meas Method”: CONTACT = 0, NONCONTACT = 1.
HRESULT Get16452A(long* cableLength, long* spacer);
HRESULT Set16452A(long cableLength, long spacer);
Set and get 16452A fixture parameters.
Spacer type(1.3mm, 1.5mm, 2mm, 3mm): SPACER1P3 = 0, SPACER1P5 = 1, SPACER2 = 2, SPACER3 = 3.
For example
Set16452A(1,SPACER1P3) set cable length to 1m, Spacer to 1.3mm.
It is the same as Set16452A(1,0).
HRESULT Get16453A(double* MUTThickness, double* loadReal, double* loadLoss, double* loadThickness);
HRESULT Set16453A(double MUTThickness, double loadReal, double loadLoss, double loadThickness);
HRESULT Get16454A(double* height, double* innerDiameter, double* outerDiameter);
HRESULT Set16454A(double height, double innerDiameter, double outerDiameter);
These two commands are same. They’re both for “Adapter Setup” or “Calibration - OPEN”.
HRESULT Short();
These two commands are same. They’re both for “Adapter Setup- Short” or “Calibration - SHORT”.
HRESULT Load();
Calibration for “Calibration - LOAD”.
HRESULT LLC();
Calibration for “Calibration - LOW LOSS C (Optional)”.
HRESULT Done();
Calibration for clicking “Done” button.
HRESULT OpenCompensation();
Calibration for “Fixture Compensation – Open”.
HRESULT ShortCompensation();
Calibration for “Fixture Compensation - Short”.
HRESULT ElectrodeAlignment();
Click “OK” for “Electrode Alignment”.
HRESULT ElectrodeAlignmentPass();
Click “PASS” for “Electrode Alignment”. Return S_OK for pass state, return S_FALSE for fail state.
HRESULT LoadCompensation();
Click “OK” for “Fixture Compensation – Load”.
HRESULT LoadCompensationPass();
Click “PASS” for “Load Compensation” for 16451B fixture. Return S_OK for pass state, return S_FALSE for fail state.
HRESULT TriggerMeasurement();
This method triggers a measurement. It returns S_OK if successful and S_FALSE if not.
HRESULT GetMeasurement(long num, float *f,float * er,float * ei);
This method allows the measurement results to be returned to the calling program. The variable num is the measurement point of interest provided by the calling program. The variables f, er and ei return the frequency and measurement values for the measurement point specified by num.
HRESULT GetTemperature(float* temperature);
HRESULT SetTemperature(float temperature);
HRESULT GetCPNFile(BSTR* cpnFile);
HRESULT SetCPNFile(BSTR cpnFile);
Set and get temperature and CPN file for temperature compensation.
HRESULT GetCorrectionState(VARIANT_BOOL* state);
HRESULT SetCorrectionState(VARIANT_BOOL state);
Set and get temperature compensation state.
HRESULT DataToMemory(BSTR name);
Use after TriggerProbe() to create a new memory trace each time the probe is triggered.
HRESULT Mean();
Add “Mean” statistics trace.
HRESULT StdDev();
Add “Upper Std Dev” and “Lower Std Dev” statistics traces.