Agilent Technologies InfiniiVision 3000 DSO-X 3054A Servisní příručka Strana 923

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 970
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 922
Programming Examples 37
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide 923
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.
CheckInstrumentErrors(strQuery);
Zobrazit stránku 922
1 2 ... 918 919 920 921 922 923 924 925 926 927 928 ... 969 970

Komentáře k této Příručce

Žádné komentáře