Hi Peter,
Thanks for checking. The power meter must be the 81635A?
Then both the instrument models and the firmware versions should be ok. Both modules could be updated, but I don't think that is causing your current complication. The 81980A now has version 4.84 and the power meter has 4.06.
These and the module update program for updating over the GPIB are available from the page
http://www.agilent.com/find/octfirmwareThe 81635A should be able to log with averaging time down to 100us. One possible point: the dual power meter is a master/slave configuration, so if you are using only 1 channel it should be the master channel which is the top input.
Since you mention high numbers, maybe there is a problem with the signal being too high for the chosen range? For fast logging, you should not use the autorange mode but select a power range before sending the logging parameters.
Since the 81980A can supply quite high optical power, you probably need to use the +10 dBm power range and maybe also reduce or attenuate the laser power to below this level.
Otherwise are you able to get the correct values when you read the logging results in the binary block format? It may be necessary to adjust to the byte ordering format that is used: least significant byte. If the ordering is reversed you will generally see unusual and erratic values for the logging result.
Possibly either the range setting or the byte ordering is related to your difficulty? Also of course the number of points and averaging time should be compatible between the laser settings and power meter settings, but it looks like you're checking that.
Getting the real number arrays from the binary block can also be assisted by using the 816x Plug&Play driver mentioned above. A sequence of commands using this driver could be like follows and these commands can also be replaced with SCPI commands:
816x PnP command series for swept wavelength measurement
1. hp816x_PWM_functionStop(instrHandle, 3, 0)
2. hp816x_standardTriggerConfiguration(instrHandle, 3, 0, 0, 0)
3. hp816x_set_PWM_parameters(instrHandle, 3, 0, 0, 0, 1, 1500.0e-9, 100.0e-3, 10)
4. hp816x_set_TLS_triggerConfiguration(instrHandle, 1, 0, 2)
5. hp816x_set_PWM_triggerConfiguration(instrHandle, 3, 1, 0)
6. hp816x_set_TLS_laserState(instrHandle, 1, VI_TRUE)
7. hp816x_set_TLS_sweep(instrHandle, 1, 2, 0, 1, 50m, 1.55u, 1.555u, 100p, 40e-9)
8. hp816x_set_TLS_lambdaLoggingStateEx(instrHandle, 1, VI_TRUE)
9. hp816x_set_PWM_logging(instrHandle, 3, 0, 50m, Data_Points, Estimated_Timeout)
10. hp816x_TLS_sweepControl(instrHandle, 1, 1)
11. hp816x_TLS_sweepWait(instrHandle, 1)
12. hp816x_get_PWM_loggingResults_Q(instrHandle, 3, 0, VI_FALSE, 0, Logging_Status, Logging_Result)
13. hp816x_get_TLS_wavelengthDataEx_Q(instrHandle, 1, Array_Size, Wavelength_Data)
14. hp816x_set_TLS_laserState(instrHandle, 1, VI_FALSE)
15. hp816x_set_PWM_triggerConfiguration(instrHandle, 3, 0, 0)
Comments:
1. this is mostly to help program development, in case the PWM logging function is not finished.
2. this sets the mainframe trigger to “loopback” so the TLS step triggers are routed to the PWM
3. this sets up the PWM, the range and wavelength need to set here
4. this sets the TLS to output triggers after each wavelength step
5. this sets the PWM to use triggers for individual measurements
6. this turns the laser on
7. this sets up a sweep for a TLS in any slot (in this case #1)
8. This activates TLS lambda-logging. The “Ex” form is needed to use slot # >0
9. this activates the PWM logging function with the chosen averaging time, measurements wait for the triggers
10. this starts the TLS sweep
11. this waits for the end of sweep
12. this gets the results from the PWM
13. this gets the wavelength data from the TLS
14. this turns off laser
15. this sets PWM triggering back to default
Most of these details can be handled even simpler by using the MFlambdascan routine in the same driver.
You could also try using the IL measurement application in the N7700A software, at least to confirm that the hardware is working ok.
Both the driver and the IL application can be found from this site:
http://www.agilent.com/find/n7700I hope one or more of these points help to move forward, otherwise let me know again.
Regards,
Mike