2635A
Users Manual
4-64
/* Request channel configuration from user */
fprintf(stdout,"1 = VDC\t\t2 = FAC\t\t3 = OHMS\t4 = FREQ\t5 =
TEMP\t\t6 = Quit\n");
func = 0;
do
{
fprintf(stdout," Selection (1-6): ");
gets(response);
func = atoi(response);
} while((func < 1) || (func > 6));
if(func == 6) /* If Quit, exit program */
break;
switch(func)
{ /* set configuration string */
case 1:
strcpy(configStr,"VDC,1");
break;
case 2:
strcpy(configStr,"VAC,1");
break;
case 3:
strcpy(configStr,"OHMS,1,2"); /* Assuming 2-terminal channel */
break;
case 4:
strcpy(configStr,"FREQ,1, 1");
break;
case 5:
strcpy(configStr,"TEMP, K"); /* Assuming K thermocouple */
break;
}
/* Send configuration to Hydra */
fprintf(stdout,"Programming Hydra...\n");
for(index = 1;index <= numCh+index)
{
sprintf(sendbuff,"FUNC %d,%s",index,configStr);
asiputs(COM2,sendbuff,-2);
checkResponse(); /* get prompt */
}
op53_3f.eps
Figure 4-7. Sample Program (QuickC) (3 of 5)
Summary of Contents for 2635A
Page 8: ...2635A Users Manual vi...
Page 26: ...2635A Users Manual xxiv...
Page 29: ...Preparation for Use Introduction 1 1 3...
Page 50: ...2635A Users Manual 1 24...
Page 53: ...Front Panel Operations Summary of Front Panel Operations 2 2 3...
Page 88: ...2635A Users Manual 2 38...
Page 180: ...2635A Users Manual 5 10...
Page 212: ......
Page 234: ...2635A Users Manual B 4...
Page 250: ...2635A Users Manual D 8...
Page 251: ...E 1 Appendix E 8 Bit Binary Coded Decimal Table...
Page 264: ...Hydra Memory Card Record DATA FILES SET UP FILES DATxx Application Note SETxx Application Note...
Page 268: ...2635A Users Manual 4...