X-Series Measurement Applications for Modular Instruments Startup Guide
44
4.
Use IVI
#region Use IVI HW driver resource
// Note that if we are doing multiple checkout/checkin we may be
able to skip
// some setup stuff if we know we were the last user.
if (!m9000Resource.StateQuestionable)
{
Console.WriteLine("No one used the driver since we last
unlocked it.");
}
driver.RestoreDefaultProperties();
driver.AcquisitionMode =
AgM9391AcquisitionModeEnum.AgM9391AcquisitionModePower;
driver.PowerAcquisition.Configure( 10.0e6 /* MHz BW */, 1.0e-3
/* seconds duration */ );
driver.Apply();
driver.Arm();
double power = -200.0;
bool overload = false;
driver.PowerAcquisition.ReadPower( 0,
AgM9391PowerUnitsEnum.AgM9391PowerUnitsdBm, ref power, ref
overload );
Console.WriteLine("IVI driver power measurement result: {0:G4}
dBm", power);
#endregion
Checkin
#region Check-in (unlock) IVI HW driver so others may use it
_myM9000Session.Checkin(m9000Resource);
Console.WriteLine("\nDriver checked in, ready for use by
others");
#endregion
Internally, the M90XA is also checking out the same resource, using it, and checking it back in.
Содержание M90XA
Страница 1: ...Agilent M90XA X Series Measurement Applications for Modular Instruments Startup Guide...
Страница 2: ......
Страница 4: ......
Страница 10: ...X Series Measurement Applications for Modular Instruments Startup Guide 6 Documentation Map Introduction...
Страница 29: ...X Series Measurement Applications for Modular Instruments Startup Guide 25...