Specifications

14
4.5 Example code output
If the autophase procedure is unable to find a clock phase location that yields a
BER result below the threshold, the output looks like:
N4963A CLOCK SYNTHESIZER13.5 GHZ GPIB::16 setup..done
N4962A SERIAL BERT 12.5 GB/S GPIB::5 setup..done
Autoalign and error check..14 degrees..failed
0.1, BER: 0.000100685; bits: 985661000; errs: 99241
When the autophase is able to successfully align the clock and data, the BER
measurement runs for 10 seconds and the output looks like:
N4963A CLOCK SYNTHESIZER13.5 GHZ GPIB::16 setup..done
N4962A SERIAL BERT 11.3 GB/S GPIB::5 setup..done
Autoalign and error check..12 degrees..passed
10s BER measurement
1.021, BER: 0; bits: 9839830000; errs: 0
2.054, BER: 0; bits: 20049800000; errs: 0
3.087, BER: 0; bits: 30251400000; errs: 0
4.121, BER: 0; bits: 40460300000; errs: 0
5.157, BER: 0; bits: 50729000000; errs: 0
6.19, BER: 0; bits: 60974700000; errs: 0
7.223, BER: 0; bits: 70917300000; errs: 0
8.257, BER: 0; bits: 81128300000; errs: 0
9.29, BER: 0; bits: 91336200000; errs: 0
10, BER: 0; bits: 98367900000; errs: 0
4.6 Useful code snippets
Once you’ve referenced the VISA-COM library in your Visual Studio project,
assigned a using command to simplify the object namespace, initialized a
resource manager object and a message-based session object, and connected
to an instrument, now what?
To reset the N4963A clock synthesizer13.5 GHz, set the frequency to a pre-
specified value, turn all output amplitudes to the maximum level, and enable all
outputs:
src.IO.Clear();
src.WriteString(“*RST;*OPC?”, true);
string temp = src.ReadString();
src.WriteString(“:FREQ “ + srcFreq, true);
src.WriteString(“:AMPL 1 1.5”, true);
src.WriteString(“:AMPL 2 1.5”, true);
src.WriteString(“:AMPL 3 0.8”, true);
src.WriteString(“:AMPL 4 0.8”, true);
src.WriteString(“:OUTP ON”, true);