HP Sander 16500C manual Writing to \system\program from a Program

Models: Sander 16500C

1 252
Download 252 pages 12.2 Kb
Page 64
Image 64

Programming Over LAN

Writing to \system\program from a Program

/*Send command strings to the HP16500*/ file = fopen("/users/system/program", "w"); putstr(file, "*rst\n");

putstr(file, ":sel 4\n");

putstr(file, ":mach1:twav:range 1 s\n"); putstr(file, ":start\n");

putstr(file, ":mach1:twav:range 100 ns\n"); fclose(file);

sleep(2);

file = fopen("/users/system/program", "r"); while (getstr(file, receive_str) == 0); fclose(file);

printf("%s\n", receive_str);

}

4–10

Page 64
Image 64
HP Sander 16500C manual Writing to \system\program from a Program