Agilent Technologies InfiniiVision 3000 X-Series Programmer's Manual page 1207

Oscilloscopes
Hide thumbs Also See for InfiniiVision 3000 X-Series:
Table of Contents

Advertisement

Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
nViStatus = visa32.viPrintf(m_nSession, strCommandAndLength,
nLength);
CheckVisaStatus(nViStatus);
// Write the data to the formatted I/O write buffer.
nViStatus = visa32.viBufWrite(m_nSession, DataArray, nLength,
out nBytesWritten);
CheckVisaStatus(nViStatus);
// Check for inst errors.
CheckInstrumentErrors(strCommand);
return nBytesWritten;
}
public StringBuilder DoQueryString(string strQuery)
{
// Send the query.
VisaSendCommandOrQuery(strQuery);
// Get the result string.
StringBuilder strResults = new StringBuilder(1000);
strResults = VisaGetResultString();
// Check for inst errors.
CheckInstrumentErrors(strQuery);
// Return string results.
return strResults;
}
public double DoQueryNumber(string strQuery)
{
// Send the query.
VisaSendCommandOrQuery(strQuery);
// Get the result string.
double fResults;
fResults = VisaGetResultNumber();
// Check for inst errors.
CheckInstrumentErrors(strQuery);
// Return string results.
return fResults;
}
public double[] DoQueryNumbers(string strQuery)
{
// Send the query.
VisaSendCommandOrQuery(strQuery);
// Get the result string.
double[] fResultsArray;
fResultsArray = VisaGetResultNumbers();
// Check for inst errors.
Programming Examples
1207
40

Advertisement

Table of Contents
loading

Table of Contents