EasyManua.ls Logo

Tescom TC-3000C - Example Using DLL; Measuring Output Power

Default Icon
255 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5.9 Example using DLL
205
5.9 Example using DLL
5.9.1 Measuring Output Power
#include <stdio.h>
#include "tester_dll.h"
int main(void)
{
unsigned long int error; // Error code
char err_str[128]; // Error string
int i; // counter
char c = 0;
unsigned short dll_version; // the version of the dll file
unsigned short dll_subversion; // the subversion of the dll file
unsigned short nap;
unsigned long ulap;
// Check DLL version
read_dll_version(&dll_version, &dll_subversion);
if((dll_version != DLL_VERSION) || (dll_subversion != DLL_SUBVERSION))
{
printf("Incorrect version of DLL-file\n");
getchar();
return -1;
}
// Initialization
error = tester_init();
if(error)
{
errorcode_2_str(error, err_str);
printf("Error initialization of the tester. %s\n", err_str);
getchar();
return -1;
}
error = dut_init();
if(error)
{
errorcode_2_str(error, err_str);
printf("Error initialization of the tester. %s\n", err_str);
tester_close();
getchar();
return -1;
}
// End of initialization
// This is main test routines
while((c != '0') && (c != 'q') && (c != 'Q'))
{
while(new_dut())
{
printf(" ! DUT is not plugged in. Check and try again.\nPress 'q' and ENTER to quit or ENTER to continue: ");
c = getchar();
if(c == 'q')
{
tester_reset();

Table of Contents

Related product manuals