Programming Guide
Digital Oscilloscopes Series
152
ViSessioninstr;
ViUInt32numInstrs;
ViFindListfindList;
ViUInt32retCount;
ViUInt32writeCount;
ViStatusstatus;
CharinstrResourceString[VI_FIND_BUFLEN];
Unsigned char buffer[100];
Charstringinput[512];
Int i;
/** First we must call viOpenDefaultRM to get the manager
* 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;
}
/* Find all the USB TMC VISA resources in our system and store the
number of resources in the system in numInstrs. */