advertisement
Negative Value Error code.
Example Reading[150];
DMMSetTrigRead(0, 4, 150, 0); // Negative edge, 4
//setteling readings, and 150 samples/triggers for(i=0; i < 150 ; i++) // read buffer while( ! DMMReadMeasurement(0 , Reading[i]) );
DMMSetTrimD AC
SMX20 40 SMX20 42 SMX20 44 ;
Description Set the Trim DAC level.
#include "sm20 4032.h"
#include "UserDMM.h"
DAC can be set t o augment the main 12 bit DAC, whenever it is not automatically performed, such as in VDC and VAC source while OPEN_LOOP mode is selected. An example would be in DCI source, or when setting the Comparator Threshold. This function consumes a lot of the on-board microcontroller’s resources and must be turned off when not in use. Use DMMDisableTrimDAC to turn off. With the Trim DAC the effective re solution of the composite DAC is increased to 16 bits. With iValue set to 100, the Trim DAC adds slightly over 1 LSB of the 12 bit DAC. See DMMSetDCVSource and DM M SetACVSource for more details.
Parameter Type/Description
nDmm iValue
int Identifies the DMM. DMMs are numbered sta
100% Trim DAC level. rting with zero.
int Amplitude can be set from 0 to 100, corresponding to 0% to
Return Value Integer error code.
Value Meaning
DMM_OKAY Operation successfully completed.
Example
Negative Value Error code
DMMSetDCVSource(0, 5.0); // Set source to 5V
DMMSetTrimDAC(0, 50); // add about 2.5mV to output
DMMStartTotalizer
SMX20 40 SMX20 42 ; SMX20 44 ;
Description Clear the totalized value and start the totalizer.
#include "UserDMM.h"
#include "sm204032.h"
111 Signametrics
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
int
Remarks This is a Secondary function and the DMM must be in ACV measurement function, and a valid range must b e selected. This function clears the Totalized count, sets the edge sense, and starts the Totalizer. The totalized value can be read during the accumulation period. However, it could affect the count by the inter ruption. If no reads are performed during accumulation, the i nput rate can be as high as 45 kHz. If reads are performed during the accumulation p eriod, this rate could be as low as 20 kHz. The Threshold DAC sets the level at which signals are coun ted. During accumulation, no other command
(except DMMReadTotalizer) should be used. When done, this function must be turned off using DMMStopTotalizer. After the Totalizer is stopped, the accumulated result can be read using DMMReadTotalizer. A normal procedure would be to set the DMM to the ACV function, select voltage range, set the Thre shold DAC, start the totalizer, wait for the time required, stop and read the total. The total number of events is limited to
1,00 0,000,000.
Parame ter Type/Description nDmm int Identifies the DMM. DMMs are n umbered starting with zero.
Return Value
Edge int Ident ifies the edge of the counter. If TRAILING (0) count negative edges, if LEADING (1) count positive edges
Integer error co de.
Example
Value Meaning
DMM_OKAY Operation successfully completed.
Negative Va lue Error code int status = DMMStartTotalizer(0, LEADING);
Signametrics 112
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