Agilent 34401A SRQEvent Programming Sample
Development ADE: C#, Visual Studio 2003
IO Library: VISA-COM w/o formatted IO
Description
The Agilent 34401A SRQEvent Programming Sample demonstrates how you can use the multimeter's status registers to determine when a command sequence is completed. For more information see "The SCPI Status Model" in the Agilent 34401A User Guide.
NOTE: This Example uses the IEventHandler. This will only work with GPIB
i. During the Init IO the IO address and the IEventHandler is set to fire the Event 'HandleEvent'
ii. The meter is cleared and set to give an SRQ when its operation is complete
iii. The meter is set for dc, and multiple readings. This will take about 3 seconds for 10 readings
iv. We start the reading with INIT. This will put the data into memory. When the meter is finished, it will set SRQ.
v. When HandleEvent event fires, then get the reading from the meter with the routine ReadData.
To build and run 34401A SRQEvent, you must have Visual Studio 2003 and Agilent IO Libraries Suite installed on your PC.
Building the Sample
To build the sample, open the solution file SRQEvent.sln in Visual Studio 2003. From the menu, select "Build | Rebuild Solution".
Running the Sample
From the Visual Studio 2003 menu, select "Debug | Start", of press the F5 key.
Copyright
© 2004-2005 Agilent Technologies Inc. All rights reserved.
You have a royalty-free right to use, modify, reproduce and distribute the
Sample Application Files (and/or any modified version) in any way you find
useful, provided that you agree that Agilent Technologies has no warranty,
obligations or liability for any Sample Application Files.