Explicit DLL Linking
DLL Interfacing
E1852B Operating Guide
97
printf("\nSCPI Errors detected: %d",Errors);
// Read the response
RtxRd((int8 *)ResponseStr);
printf("\nSCPI response : %s\n\n",ResponseStr);
}
/
******************************************************************
* DESCRIPTION:
******************************************************************
/
int main(int argc, char *argv[])
{
printf("\nAgilent Technologies, 2001\n");
printf("\nMicrosoft Visual C++ 6.0 Win32 Console Demo
Application.");
printf("\nDemonstrating how to use the dll-interface of the
E1852B.\n\n");
if(LoadDll())
{
// Demonstrate different SCPI commands
SendScpiCommand("SYST:PC:VERS?");
SendScpiCommand("SYST:FIRM:VERS?");
SendScpiCommand("STAT:DEV?");
}
return 0;
}
E1852-90007.book Page 97 Monday, February 4, 2002 2:09 PM
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com