Programming instructions

Programming Examples
LAN Programming Examples
Chapter 268
status = viRead(instr, (ViBuf)buffer, MAX_COUNT, &retCount);
buffer[retCount]= ’\0’; // Indicate the end of the string
printf("Power level = "); // Print header to the screen
printf(buffer); // Print the queried power level
printf("\n");
status = viClose(instr); // Close down the system
status = viClose(defaultRM);
return 0;
}