DMMIsAutoRange. Artison SMX2040, S-LCR-DM, SMX2042, SMX2044

Add to My manuals
127 Pages

advertisement

DMMIsAutoRange. Artison SMX2040, S-LCR-DM, SMX2042, SMX2044 | Manualzz

Description

Remarks

Initialize a DMM.

#include "sm2 04032.h"

int DMMInit(i nt nDmm, LPCSTR lpszCal)

This function m ust be the first function to be execut ed. It opens the driver for the specified DMM. The first DMM being 0, the second 1, etc... It also initializes the DMM hardware and d oes extensive self test to th e DMM hardware. It then initializes the software and reads the appropriate calibration record for the respective DMM from the file specified by lpszCal.

Parameter Type/Description

nDmm int Identifies the DMM. DMMs are numbered starting with zero.

lpszCal

Return Value

LPCSTR Po ints to the name of the file containing the calibration constants for th e DMM. Calibration information is normally read from the file n amed SM40CAL.DAT located in the current directory.

The return value is one of the followi ng constants.

Value Meaning

DMM_ OKAY DMM initialized successfully.

Negative Val ue Error code

Example int i = DMMInit(0,"C:\SM40CAL.dat");// Initialize 1st DMM

DMMIsAutoRange

SMX2040 ; SMX2042 ; SMX2044

;

Description Get the status o f the autorange flag.

#include "sm2 04032.h"

DMM IsAu toRange(int nDmm)

Remarks This function return s the DMM autorange flag state.

Parame ter Type/Description

nDmm int Identifies th e DMM. DMMs are numbered starting with zero.

Signametrics 74

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

advertisement

Related manuals

advertisement

Table of contents