Programming Examples
42
Keysight InfiniiVision 3000T X-Series Oscilloscopes Programmer's Guide
1389
Console.WriteLine("Trigger edge source: {0}", strResults);
myScope.SCPI.TRIGger.EDGE.LEVel.Command(1.5, "CHANnel1");
myScope.SCPI.TRIGger.EDGE.LEVel.Query("CHANnel1", out fResult);
Console.WriteLine("Trigger edge level: {0:F2}", fResult);
myScope.SCPI.TRIGger.EDGE.SLOPe.Command("POSitive");
myScope.SCPI.TRIGger.EDGE.SLOPe.Query(out strResults);
Console.WriteLine("Trigger edge slope: {0}", strResults);
// Save oscilloscope configuration.
string[] strResultsArray;
// Results array.
int nLength;
// Number of bytes returned from instrument.
string strPath;
// Query and read setup string.
myScope.SCPI.SYSTem.SETup.Query(out strResultsArray);
nLength = strResultsArray.Length;
// Write setup string to file.
strPath = "c:\\scope\\config\\setup.stp";
File.WriteAllLines(strPath, strResultsArray);
Console.WriteLine("Setup bytes saved: {0}", nLength);
// Change settings with individual commands:
// Set vertical scale and offset.
myScope.SCPI.CHANnel.SCALe.Command(1, 0.05);
myScope.SCPI.CHANnel.SCALe.Query(1, out fResult);
Console.WriteLine("Channel 1 vertical scale: {0:F4}", fResult);
myScope.SCPI.CHANnel.OFFSet.Command(1, -1.5);
myScope.SCPI.CHANnel.OFFSet.Query(1, out fResult);
Console.WriteLine("Channel 1 vertical offset: {0:F4}", fResult);
// Set horizontal scale and offset.
myScope.SCPI.TIMebase.SCALe.Command(0.0002);
myScope.SCPI.TIMebase.SCALe.Query(out fResult);
Console.WriteLine("Timebase scale: {0:F4}", fResult);
myScope.SCPI.TIMebase.POSition.Command(0.0);
myScope.SCPI.TIMebase.POSition.Query(out fResult);
Console.WriteLine("Timebase position: {0:F2}", fResult);
// Set the acquisition type.
myScope.SCPI.ACQuire.TYPE.Command("NORMal");
myScope.SCPI.ACQuire.TYPE.Query(out strResults);
Console.WriteLine("Acquire type: {0}", strResults);
// Or, configure by loading a previously saved setup.
int nBytesWritten;
strPath = "c:\\scope\\config\\setup.stp";
strResultsArray = File.ReadAllLines(strPath);
nBytesWritten = strResultsArray.Length;
Содержание 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...