At a given CW freq, I need to step through input power levels (or do a binary search) through roughly -25 to -20dBm and when the output reaches a desired level (say -18dBm) I need to stop and measure a dc voltage related to that output level. I then must repeat this at 5 additional freqs. OR if there is some way to SLOWLY do a power sweep from -25 to 20dBm and sync a dc measurement with the sweep so I can correlate the dc voltage with its freq that might work. Any suggestions? I'm using the N5230A PNA with 7.5 firmware and need to do this programmatically.