HP VXI 75000 C Series User's And Scpi Programming Manual page 29

Algorithmic closed loop controller
Table of Contents

Advertisement

exit(1);
}
/*************************************************************************/
voidid_scps() /* Check ID of all installed SCPs */
{
int16scp_addr;
charscp_id[100];
/* Get SCP identifications of all SCPs */
printf("\nSCP Identifications:\n\n");
for (scp_addr = 100; scp_addr <= 156; scp_addr += 8)
{
INST_QUERY(e1415, "SYST:CTYP? (@%d)", "%s", scp_addr, scp_id);
printf("ID for SCP %d is %s\n", (scp_addr - 100) / 8, scp_id);
}
}
/************************************************************************/
int32check_error( char *message ) /* Check for module generated errors */
{
int16error;
charerr_out[256];
/* Check for any errors */
INST_QUERY(e1415, "SYST:ERR?", "", &error, err_out);
/* If error is found, print out the error(s) */
if (error)
{
while(error)
{
printf("Error %d,%s (in function %s)\n", error, err_out, message);
INST_QUERY(e1415, "SYST:ERR?", "", &error, err_out);
}
return 1;
}
return 0;
}
Chapter 1
Getting Started
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents