09-05-2024 03:09 AM
Hello,
I'm currently programming the power meter E4416A from Agilent in LabWindows and since NI had an official "plug and play" instrument driver I felt this was the easiest way to go. The drivers include "help-functions" and also a word document that describes the different function and their variables and return.
All of my functions work for example initialization, reset, self-test, calibration, offset, measuring and their configurations except a function called "age441x_configureChannelATrigger" that configures primarily if trigger reacts on positive/negative flank and on what power level. This gives me the error code "Instrument status error" which comes from reading the system status byte where the "Standard Event Register" is set for some reason.
Currently I'm only initializing the instrument before running the function and thus far I've verified that the input variables and its values are correct. I suspect that I have to set up something more before running the function. Has anyone worked with programming a power meter with NI's drivers and/or have seen the error code before? I can't seem to figure this problem out even after reading the datasheet of the power meter and the driver documentation.
Thanks in advance, William.
09-10-2024 12:50 AM
If anyone stumbles in on this thread I've now solved the problem. When trying to set the trigger parameters I got the error "-221, Settings conflict" on the instrument, the problem were solved by using the source "internal". I.e. you can't set another source than "internal" and also setting the slope flank and power level.