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

Add to My manuals
127 Pages

advertisement

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

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