advertisement
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
- 8 1.0 INTRODUCTION
- 10 2.0 SPECIFICATIONS
- 10 2.3.1 AC Voltage True RMS Measurement
- 11 2.3.2 AC Peak-to-Peak Measurement (SMX2044)
- 11 2.3.3 AC Crest Factor Measurement (SMX2044)
- 12 2.3.4 AC Median Value Measurement (SMX2044)
- 13 2.5.1 2-wire and 4-wire
- 13 2.5.2 6-wire Guarded Resistance Measurement (SMX2044)
- 13 (SMX2044)
- 14 2.8.1 Diode Characterization
- 14 2.8.2 Capacitance Measurement (SMX2042, 44)
- 14 2.8.3 Inductance Measurement (SMX2044)
- 14 2.8.4 In Circuit AC-Based Capacitance Measurements (SM2044)
- 15 2.9.1 Threshold DAC
- 15 2.9.2 Frequency and Period Measurement
- 15 2.9.3 Duty Cycle Measurement
- 15 2.9.4 Pulse Width
- 16 2.9.5 Totalizer
- 16 2.10.1 External Hardware Trigger (at DIN-7 connector)
- 16 2.10.2 PXI Bus Hardware Trigger Inputs (at PXI J2)
- 16 2.10.3 PXI Bus Hardware Trigger Output (to PXI J2)
- 16 2.10.4 Analog Threshold Trigger
- 17 (SMX2044)
- 17 2.11.1 DC Voltage Source
- 17 2.11.2 AC Voltage Source
- 17 2.11.3 DC Current Source
- 20 3.0 GETTING STARTED
- 25 4.0 DMM OPERATIONS AND MEASUREMENTS
- 25 4.1.1 DC Voltage Measurements
- 26 4.1.2 True RMS AC Voltage Measurements
- 26 4.1.3 AC Peak-to-Peak and Crest Factor Measurement (SMX2044)
- 27 4.1.4 AC Median Value Measurement (SMX2044)
- 27 4.2.1 Improving Current Measurements
- 28 4.2.2 Low Level DC Current Measurements
- 28 4.2.3 Extended DC Current Measurements (SM2044)
- 28 4.3.1 2-wire Ohm Measurements
- 28 4.3.2 4-wire Ohm Measurements
- 29 4.3.3 Using Offset Ohms function
- 29 4.3.4 6-wire Guarded Resistance Measurement (SMX2044)
- 30 4.3.5 Leakage Measurements (SMX2044)
- 31 4.3.6 Extended Resistance Measurements (SMX2044)
- 32 4.3.7 Effects of Thermo-Voltaic Offset
- 33 4.3.8 Guarding High Value Resistance Measurements (SMX2044)
- 33 (SMX2044)
- 35 4.11.1 External Hardware Trigger
- 36 4.11.2 Analog Threshold Trigger
- 36 4.11.3 Software Issued Triggered Operations
- 36 4.11.4 Using the PXI bus Trigger Facilities
- 37 4.12.1 Threshold DAC
- 38 4.12.2 Frequency and Period Measurements
- 39 4.12.3 Duty Cycle Measurement
- 39 4.12.4 Pulse Width
- 39 4.12.5 Totalizer Event Counter
- 40 (SMX2044)
- 40 4.13.1 DC Voltage Source
- 41 4.13.2 AC Voltage Source
- 41 4.13.3 DC Current Source
- 41 4.13.4 Source Current - Measure Voltage
- 42 (SMX2044)
- 43 4.15.1 Triggering the SMX2040 DMMs
- 44 4.15.2 Multiplexing with the SMX2040 DMMs
- 44 4.15.3 Interface Commands and Timing
- 47 5.1.1 The SM40CAL.DAT file
- 48 Multiple Card Operations Under Windows
- 50 5.3.1 Visual Basic Simple Application
- 52 DMMArmAnalogTrigger
- 53 DMMArmTrigger
- 54 DMMBurstBuffRead
- 55 DMMBurstRead
- 56 DMMCalibrate
- 56 DMMCleanRelay
- 57 DMMClearMinMax
- 57 DMMClosePCI
- 58 DMMDelay
- 58 DMMDisableTrimDAC
- 59 DMMDisArmTrigger
- 59 DMMDutyCycleStr
- 60 DMMErrString
- 60 DMMFrequencyStr
- 62 DMMGetACCapsR
- 62 DMMGetBusInfo
- 63 DMMGetCalDate
- 63 DMMGetdB
- 64 DMMGetdBStr
- 64 DMMGetCJTemp
- 65 DMMGetDeviation
- 66 DMMGetDeviatStr
- 66 DMMGetFuncRange
- 67 DMMGetFunction
- 67 DMMGetGrdVer
- 68 DMMGetHwVer
- 68 DMMGetID
- 69 DMMGetManDate
- 69 DMMGetMax
- 70 DMMGetMaxStr
- 70 DMMGetMin
- 71 DMMGetMinStr
- 71 DMMGetRange
- 72 DMMGetRate
- 72 DMMGetSourceFreq
- 73 DMMGetTCType
- 73 DMMGetType
- 74 DMMGetVer
- 74 DMMInit
- 75 DMMIsAutoRange
- 76 DMMIsInitialized
- 76 DMMIsRelative
- 77 DMMLoadCalFile
- 78 DMMOpenPCI
- 78 DMMOpenCalACCaps
- 79 DMMOpenTerminalCal
- 79 DMMPeriodStr
- 81 DMMPolledRead
- 81 DMMPolledReadCmd
- 82 DMMPolledReadStr
- 82 DMMRead
- 83 DMMReadBuffer
- 84 DMMReadBufferStr
- 84 DMMReadCJTemp
- 85 DMMReadCrestFactor
- 86 DMMReadDutyCycle
- 86 DMMReadFrequency
- 87 DMMReadFrequencyStr
- 88 DMMReadInductorQ
- 88 DMMReadMeasurement
- 89 DMMReadMedian
- 89 DMMReadNorm
- 90 DMMReadPeakToPeak
- 90 DMMReadPeriod
- 91 DMMReadStr
- 92 DMMReadTotalizer
- 93 DMMReadWidth
- 93 DMMReady
- 94 DMMSetACCapsDelay
- 94 DMMSetACCapsLevel
- 95 DMMSetACVSource
- 96 DMMSetAutoRange
- 96 DMMSetBuffTrigRead
- 97 DMMSetCapsAveSamp
- 98 DMMSetCJTemp
- 99 DMMSetCompThreshold
- 99 DMMSetCounterRng
- 100 DMMSetDCISource
- 100 DMMSetDCVSource
- 101 DMMSetExternalShunt
- 102 DMMSetFuncRange
- 102 DMMSetFunction
- 103 DMMSetInductFreq
- 103 DMMSetOffsetOhms
- 104 DMMSetRange
- 104 DMMSetRate
- 105 DMMSetRelative
- 107 DMMSetResistance
- 107 DMMSetRTD
- 108 DMMSetSensoreParams
- 108 DMMSetSourceMode
- 109 DMMSetSynchronized
- 110 DMMSetTCType
- 110 DMMSetTempUnits
- 111 DMMSetTrigRead
- 112 DMMSetTrimDAC
- 112 DMMStartTotalizer
- 114 DMMStopTotalizer
- 114 DMMTerminate
- 115 DMMTrigger
- 115 DMMWidthStr
- 116 SetACCapsFreq
- 117 6.0 MAINTENANCE
- 126 7.0 WARRANTY AND SERVICE
- 126 8.0 ACCESSORIES