advertisement
5.6 Windows Command Language
The following section contains detailed de scriptions of each function of the Windows command language. Tho se commands that pe rtain to onl y the SM204 0 are indicated. Most functions return an error code. The code can e ither be retrieved as a st ring usin g DMMErrStri ng function, or looked up in the SM204032.H header file. The
UserDMM.H file contains a ll the pertinen t definitions for the DMM ranges functions etc. The following description for the various functions is based on “C” f unction declarations. Keep in mind that the Window s DLL containing these functions as sumes all int values to b e windows 32bit integers (corresponds to VisualBasi c long type). TRUE is 1 and FALSE i s 0 (which is also differe nt from VisualBasic where True is –1 and False is 0) .
DMMArmAnalogTrigger
SMX20 40 ; SM X20 44 ;
Description
Remarks
#include "sm2 04032.h"
int DMMArmAnalogTrigger(int nDmm, int iSamples, double FAR *dThresh)
This function is usable for VDC, VAC, Ohms, IAC, and IDC. Setup the SMX2040 for analog level trigger operation. Foll owing reception of this command the DMM makes m easure ments continuously, waiting for a value which exceeds the threshold, dThresh.
When this occurs, a trigger is produced with identical processing as in
DMM ArmTrigger. Threshold crossing sense is determined by the first measurement following the call o f DMMArmAnalogTrigger. If that measurement is lower than the set threshold, dThresh , subsequent measurements greater than dThresh will trigger the
DMM. If the first measurement is greater th an dThresh, subsequent measurements smaller than dThresh will trigger. For exam ple, if dThresh is 2.00000 V and the first reading after arming the D MM is 2.500000 V, then 1.999999 V (or smaller) will trigger the DMM. On the other hand, i f dThresh is 1.000000 V and the first reading after arming the DMM is 0.500000 V, then 1.000001 V (or gre ater) will trigger the DMM. example, in the 330 mV range, dThresh must be within -0.330000 and +0.330000. In the
33 k
Ω, range dThresh must be between 0.0 and 33.0e3.
Following an analog level trigger event, the DMM makes iSamples readings at the set function, range, and reading rate, and stores them in an internal buffer. Autoranging is not allowed when using DMMAnalogTrigger. Between the time the
DMMArmAnalogTrigger is issued and the time the buffer is read, no other com mand should be sent to the DMM. One exception is the DMMDisArmTrigger command.
Use the DMMReady to monitor when the DMM is ready. When ready, you can read up-to iSamples, using DMMReadBuffer or DMMReadBufferStr functions. Once DMMReady returns TRU E, it should not be used again prior to reading the buffer, since it prepares the buffer for reading when it detects a ready con dition.
51 Signametrics
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