5492GPIB B&K Precision, 5492GPIB Datasheet - Page 65

no-image

5492GPIB

Manufacturer Part Number
5492GPIB
Description
DMM BENCH 5 1/2DGT WITH GPIB CRD
Manufacturer
B&K Precision
Type
Digital (DMM)r
Datasheets

Specifications of 5492GPIB

Includes
Test Leads
Style
Bench
Display Digits
5.5
Display Type
VFD, Dual
Display Count
120000
Function
Voltage, Current, Resistance, Frequency
Functions, Extra
Continuity, dB, Diode Test
Features
Hold, Min/Max, RS-232 Port
Ranging
Auto/Manual
Response
True RMS
Accuracy
+/- 0.012 %
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
!
#include <stdio.h>
#include <conio.h>
#define COM1 0x3f8
#define COM2 0x2f8
#define COM3 0x3e8
#define COM4 0x2e8
#define RS232 COM1
void init_rs232(void);
void send(char);
char read(void);
void send_buffer(char*);
void tkecho(char*);
char* tkdata(char*);
int scan_key(void);
int err;
void main(void)
{
char buffer[35];
clrscr();
init_rs232();
printf("Initial RS232....\n");
send_buffer("RST\015\n");
tkecho("=>\015\n");
tkecho("*>\015\n")
send_buffer("S101\015\n");
tkecho("=>\015\n");
send_buffer("S211\015\n")
tkecho("=>\015\n");
sleep(3);
send_buffer("R1\015\n");
printf("%s",tkdata(buffer));
tkecho("=>\015\n");
send_buffer("R2\015\n");
printf ("%s",tkdata(buffer));
tkecho("=>\015\n");
printf("Press any key to continue");
getch();
}
Example Program Using Turbo C
//'Waiting "=>" and checking if the command is executed successfully.
//'Waiting "=>" and checking if the command is executed successfully.
//'Waiting "=>" and checking if the command is executed successfully.
//'Waiting "=>" and checking if the command is executed successfully.
//'Waiting "=>" and checking if the command is executed successfully.
//Waiting "*>" to make sure the meter is in power on initial state.
//Clear screen
//Initial RS232 interface
//Print "Initial RS232....”on screen
//Send “RST” to meter.
//Send “S101” to meter.
//Send “S101” to meter..
// Wait for 3 seconds.
//Send “R1” to meter. Read primary display reading.
//Print primary display reading on computer screen.
//Send “R2” to meter. Read primary reading.
//Print secondary display reading on computer screen.
//Wait for a key.
65