Télécharger Imprimer la page

Agilent Technologies 33250A Guide D'utilisation page 308

Générateur de fonction 80 mhz/ signaux arbitraires

Publicité

void Check_Errors(IIO *pIOObj)
{
_variant_t ErrNum, ErrStr;
while (1)
{
ErrNum = "";
ErrStr = "";
pIOObj->Output(":SYST:ERR?");
pIOObj->Enter(&ErrNum, "#,K");
pIOObj->Enter(&ErrStr, "K");
ErrNum.ChangeType(VT_I4);
if ((long) ErrNum == 0)
{
break;
}
else
{
printf ("\nERROR %d:
}
}
}
void Pause()
{
// Routine to permit stopping of execution of program
printf ("Press Enter to continue...");
fflush(stdout);
fgetc(stdin);
printf("\n");
}
void Fill_array(double data[20])
{
// Routine can be used to fill array passed from Main Program.
// array with sequence of +/- 1.0
data[0] = -1.0;
data[1] = 1.0;
data[2] = -1.0;
data[3] = -1.0;
data[4] = 1.0;
data[5] = 1.0;
6
data[6] = -1.0;
data[7] = -1.0;
data[8] = -1.0;
data[9] = 1.0;
data[10] = 1.0;
data[11] = 1.0;
data[12] = -1.0;
data[13] = -1.0;
data[14] = -1.0;
data[15] = -1.0;
data[16] = 1.0;
data[17] = 1.0;
data[18] = 1.0;
data[19] = 1.0;
Suite à la page suivante...
Chapitre 6 Programmes d'application
Exemple : Microsoft Visual C++ pour Windows
%S\n", (long) ErrNum, ErrStr.bstrVal);
308
// Initialize variants
// Read number; don't flush input buffer
// Read the string
// Checking for: 0,"No Error"
// Wait for LF
Fills entire

Publicité

loading