6 Programming Examples

Trigger Programming Example

This example illustrates how to set up and trigger a voltage and current change. The voltage is measured before and after the trigger.

Sub main_Trig()

Dim IDN As String

Dim IOaddress As String

Dim ErrString As String

Dim msg1 As String

'This variable is used to monitor the status Dim stat As Long

'This variable controls the voltage

Dim VoltSetting As Double

'This variable measures the voltage Dim MeasureVolt As Double

'This variable controls the current Dim CurrSetting As Double

'This variable represents the trigger current setting Dim trigCurrSetting As Double

'This variable controls the triggered voltage setting Dim trigVoltSetting As Double

'This constant represents the register value for Waiting for Trigger Const WTG = 32

'These variables are necessary to initialize the VISA COM

Dim ioMgr As AgilentRMLib.SRMCls

Dim Instrument As VisaComLib.FormattedIO488

'The following line provides the VISA name of the GPIB interface IOaddress = "GPIB0::5::INSTR"

'Use the following line instead for LAN communication

'IOaddress="TCPIP0::141.25.36.214"

'Use the following line instead for USB communication

'IOaddress = "USB0::2391::1799::US00000002"

'Initialize the VISA COM communication

Set ioMgr = New

AgilentRMLib.SRMCls

 

Set Instrument = New VisaComLib.FormattedIO488

 

Set Instrument.IO = ioMgr.Open(IOaddress)

 

VoltSetting = 3

 

' volts

CurrSetting = 2

 

' amps

trigVoltSetting

= 5

' volts

trigCurrSetting

= 3

' amps

With Instrument

'Send a power reset to the instrument

.WriteString "*RST"

'Query the instrument for the IDN string

.WriteString "*IDN?" IDN = .ReadString

84

Series N5700 User’s Guide

Page 84
Image 84
Agilent Technologies 5752A, 5744A, 5743A, 5748A, 5741A, 5746A, 5751A, 5742A, 5745A, 5747A, 5749A, 5750A Trigger Programming Example

5751A, 5744A, 5743A, 5750A, 5749A specifications

Agilent Technologies has been a leader in electronic measurement and analysis, with a suite of powerful instruments that cater to various applications in research, development, and manufacturing. Among these, the Agilent 5746A, 5745A, 5741A, 5748A, and 5742A models stand out for their advanced capabilities and features.

The Agilent 5746A is a high-performance signal analyzer that excels in time and frequency domain analysis. This device offers a wide frequency range and exceptional dynamic range, making it suitable for both RF and microwave applications. Its advanced digital signal processing allows for high-resolution spectrum analysis and real-time signal processing, which is essential for engineers and researchers working on complex signals.

The Agilent 5745A is known for its versatility as a multifunctional signal generator. It combines the functionalities of a vector signal generator with the precision of a traditional oscillator. This model provides high-quality waveform generation for a variety of modulation schemes, making it ideal for testing communication systems and conducting research in advanced modulation techniques.

The Agilent 5741A is a precision power meter that offers accurate measurements of RF power in a compact format. It is equipped with state-of-the-art sensing technology that ensures reliable and repeatable measurements. The 5741A is particularly useful for monitoring power levels in transmitters and receivers, and its intuitive interface makes it user-friendly for both novices and experienced professionals.

For those focused on harmonic and intermodulation distortion analysis, the Agilent 5748A provides exceptional performance. This model allows users to analyze distortion products in various devices with precision, helping in the design and testing of amplifiers and other RF components. Its comprehensive sweep functionality enables users to observe the behavior of devices across a wide frequency range.

Finally, the Agilent 5742A complements the range with its dedicated spectrum analyzing capabilities. Offering high sensitivity and ability to capture short-lived events, this model is optimal for monitoring transient signals. The 5742A is frequently used in the telecommunications sector to ensure signal integrity and compliance with regulatory standards.

Together, these Agilent Technologies instruments provide a comprehensive toolkit for professionals in electronics and telecommunications, enabling detailed analysis, accurate measurements, and advanced signal generation. Their integration of modern technologies ensures that users can tackle the complexities of today’s electronic environments with confidence and precision.