47 User Manual
EAR99 technology subject to restrictions on copyrights page.
connected to the system and tries to read back the result using a
read-write function */
/* The general flow of the code is to open the Explorer */
/* Open the VISA session to the instrument */
/* Use viPrintf to write the instrument flag */
/* Try to read a response with viScanf */
/* Close the VISA session */
/***********************************************************/
ViSession defaultRM;
ViSession instr; ViUInt32
numInstrs; ViFindList findList; ViStatus status;
char instrResourceString[VI_FIND_BUFLEN];
unsigned char buffer[100];
char stringinput[512];
int i;
/* First, we have to call viOpenDefaultRM to get the manager's
handle */
/*
We will store this handle in defaultRM */
}
status=viOpenDefaultRM (&defaultRM);
if (status < VI_SUCCESS)
{
printf ("Could not open a session to the VISA Resource Manager!\n");
return status;
}