AnsweredAssumed Answered

N5230A guided calibration using C

Question asked by ceken on Jan 30, 2007
Latest reply on Jan 30, 2007 by odanzy
Dear All,
I try to write guided SOLT calibration by taking into account the example code given in help file(Perform Guided Mechanical Cal using SCPI) I use the 85052D calibration kit. Although there are 7 steps(Short,Open Load for Port1 and 2,thru) to complete the calibration, command      visa32.WriteLine("sens:corr:coll:guid:steps?") returns 13 which then causes non-sense strPrompt to user(in for loop) . Here is the complete code:

string step,strPrompt ;

' Specify the DUT connectors
visa32.WriteLine("sens:corr:coll:guid:conn:port1 'APC 3.5 female'");
visa32.WriteLine("sens:corr:coll:guid:conn:port2 'APC 3.5 female'");

' Select the Cal Kit for each port being calibrated.
visa32.WriteLine("sens:corr:coll:guid:ckit:port1 '85052D'");
visa32.WriteLine("sens:corr:coll:guid:ckit:port2 '85052D'");

' Initiate the calibration and query the number of steps
numSteps = visa32.ReadInt();//read integer value in buffer
MessageBox.Show("Number of steps is " +numSteps);

' Measure the standards
for(int i = 1;i<=numSteps;i++)
step = "Step " + i + " of " + numSteps;
visa32.WriteLine("sens:corr:coll:guid:desc? " + i);
strPrompt =visa32.Read();//read string value in buffer
MessageBox.Show(strPrompt ,step);
visa32.WriteLine("sens:corr:coll:guid:acq STAN" + i;

' Conclude the calibration

Any Suggestion?

Cengiz EKEN
Test Engineer