Keysight Technologies InfiniiVision MSO-X 4022A Programmer's Manual page 1502

Hide thumbs Also See for InfiniiVision MSO-X 4022A:
Table of Contents

Advertisement

42
Programming Examples
1502
' Initialize - start from a known state.
Initialize()
' Capture data.
Capture()
' Analyze the captured waveform.
Analyze()
Catch err As System.ApplicationException
Console.WriteLine("*** VISA Error Message : " + err.Message)
Catch err As System.SystemException
Console.WriteLine("*** System Error Message : " + err.Message)
Catch err As System.Exception
Debug.Fail("Unexpected Error")
Console.WriteLine("*** Unexpected Error : " + err.Message)
End Try
End Sub
'
' Initialize the oscilloscope to a known state.
' --------------------------------------------------------------
Private Shared Sub Initialize()
Dim strResults As StringBuilder
' Get and display the device's *IDN? string.
strResults = myScope.DoQueryString("*IDN?")
Console.WriteLine("*IDN? result is: {0}", strResults)
' Clear status and load the default setup.
myScope.DoCommand("*CLS")
myScope.DoCommand("*RST")
End Sub
'
' Capture the waveform.
' --------------------------------------------------------------
Private Shared Sub Capture()
' Use auto-scale to automatically configure oscilloscope.
myScope.DoCommand(":AUToscale")
' Set trigger mode (EDGE, PULSe, PATTern, etc., and input source.
myScope.DoCommand(":TRIGger:MODE EDGE")
Console.WriteLine("Trigger mode: {0}", _
myScope.DoQueryString(":TRIGger:MODE?"))
' Set EDGE trigger parameters.
myScope.DoCommand(":TRIGger:EDGE:SOURce CHANnel1")
Console.WriteLine("Trigger edge source: {0}", _
myScope.DoQueryString(":TRIGger:EDGE:SOURce?"))
myScope.DoCommand(":TRIGger:EDGE:LEVel 1.5")
Console.WriteLine("Trigger edge level: {0}", _
Keysight InfiniiVision 4000 X-Series Oscilloscopes Programmer's Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the InfiniiVision MSO-X 4022A and is the answer not in the manual?

This manual is also suitable for:

Infiniivision 4000 x seriesInfiniivision mso-x 4032aInfiniivision mso-x 4034aInfiniivision mso-x 4054aInfiniivision mso-x 4104aInfiniivision mso-x 4154a ... Show all

Table of Contents