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

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

Advertisement

42
Programming Examples
1454
m_IoObject.WriteString(strQuery, true);
// Get the result number.
double fResult;
fResult = (double)m_IoObject.ReadNumber(
IEEEASCIIType.ASCIIType_R8, true);
// Check for inst errors.
CheckInstrumentErrors(strQuery);
// Return result number.
return fResult;
}
public double[] DoQueryNumbers(string strQuery)
{
// Send the query.
m_IoObject.WriteString(strQuery, true);
// Get the result numbers.
double[] fResultsArray;
fResultsArray = (double[])m_IoObject.ReadList(
IEEEASCIIType.ASCIIType_R8, ",;");
// Check for inst errors.
CheckInstrumentErrors(strQuery);
// Return result numbers.
return fResultsArray;
}
public byte[] DoQueryIEEEBlock(string strQuery)
{
// Send the query.
m_IoObject.WriteString(strQuery, true);
// Get the results array.
System.Threading.Thread.Sleep(2000); // Delay before reading.
byte[] ResultsArray;
ResultsArray = (byte[])m_IoObject.ReadIEEEBlock(
IEEEBinaryType.BinaryType_UI1, false, true);
// Check for inst errors.
CheckInstrumentErrors(strQuery);
// Return results array.
return ResultsArray;
}
private void CheckInstrumentErrors(string strCommand)
{
// Check for instrument errors.
string strInstrumentError;
bool bFirstError = true;
do
// While not "0,No error".
{
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