AnsweredAssumed Answered

retrieving the impedance data

Question asked by Mick on Oct 14, 2008
Latest reply on Oct 14, 2008 by Mick
How can I retrieve the impedance data (N5230A, COM interface, C++)? This is part of my code:

pMeas->Format = naDataFormat_Smith;
hr = pMeas->QueryInterface(IID_IArrayTransfer,(void**)&pTrans);
num_points = pChan->NumberOfPoints;
NAComplex* pComplex = new NAComplex[num_points];
pTrans->getNAComplex(naMeasResult, (long *)&num_points, pComplex);

The problem is that the buffer pComplex contains real and imaginary parts of S11 parameter but the marker on analyzer shows the impedance on the display.