Chapter 3 Programming Your Counter for Remote Operation
Programming Examples
Programming Guide
3-59
3
getch();
}
/* Function to send command to HP 5315xA */
void sendhp(hpib_cmd)
char *hpib_cmd;
{
char hpcmd[80];
/* Variables used by function */
int length;
strcpy(hpcmd, hpib_cmd);
length=strlen(hpcmd);
error=IOOUTPUTS(ctr, hpcmd, length);
/* Send command to HP 5315xA */
if (error!=0)
printf(“Error during HP-IB: %d Command %s\n”,error,hpcmd);
}
Summary of Contents for 53150A Series
Page 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Page 2: ......
Page 10: ...Contents x Programming Guide ...
Page 11: ...1 Before You Start ...
Page 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Page 21: ...2 Command Summary A Quick Reference ...
Page 41: ...3 Programming Your Counter for Remote Operation ...
Page 101: ...4 Command Reference A Dictionary ...
Page 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Page 163: ...5 Errors ...
Page 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Page 184: ......
Page 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...