1350
Keysight InfiniiVision 3000T X-Series Oscilloscopes Programmer's Guide
42
Programming Examples
' 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}", _
Содержание InfiniiVision 3000T X Series
Страница 1: ...Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide...
Страница 40: ...40 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 1 What s New...
Страница 50: ...50 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 2 Setting Up...
Страница 64: ...64 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 3 Getting Started...
Страница 164: ...164 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 4 Commands Quick Reference...
Страница 254: ...254 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 8 BUS n Commands...
Страница 286: ...286 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 10 CHANnel n Commands...
Страница 306: ...306 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 12 DEMO Commands...
Страница 314: ...314 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 13 DIGital d Commands...
Страница 344: ...344 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 16 EXTernal Trigger Commands...
Страница 352: ...352 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 17 FFT Commands FFT WINDow on page 362...
Страница 364: ...364 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 17 FFT Commands...
Страница 402: ...402 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 18 FUNCtion m Commands...
Страница 420: ...420 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 19 HARDcopy Commands...
Страница 442: ...442 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 21 MARKer Commands...
Страница 466: ...466 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 22 MEASure Commands MEASure CLEar on page 464...
Страница 524: ...524 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 22 MEASure Commands...
Страница 548: ...548 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 23 MEASure Power Commands...
Страница 656: ...656 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 26 POWer Commands...
Страница 666: ...666 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 27 RECall Commands...
Страница 888: ...888 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 29 SBUS n Commands...
Страница 978: ...978 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 30 SEARch Commands...
Страница 1006: ...1006 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 32 TIMebase Commands...
Страница 1232: ...1232 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 37 Obsolete and Discontinued Commands...
Страница 1240: ...1240 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 38 Error Messages...
Страница 1264: ...1264 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 39 Status Reporting...
Страница 1274: ...1274 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 40 Synchronizing Acquisitions...
Страница 1404: ...1404 Keysight InfiniiVision 3000T X Series Oscilloscopes Programmer s Guide 42 Programming Examples...