Operator`s manual

Signametrics 112
Description Terminate DMM operation (DLL)
#include "sm204032.h"
int DMMTerminate(int nDmm)
Remarks Removes DMM number nDmm. This routine is used only where it is needed to terminate
one DMM and start a new one at the same nDmm location. Otherwise, it is not
recommended to use this function.
Parameter Type/Description
nDmm
int Identifies the DMM to be suspended.
Return Value The return value is one of the following constants.
Value
Meaning
TRUE
DMM Terminated
FALSE
DMM was not initialized, termination is redundant.
Example DMMTerminate(0); /* Terminate DMM # 0 */
DMMTrigger
SM2040 ; SM2042 ; SM2044 ;
Description Software Trigger the DMM. Take iSamples.
#include "sm204032.h"
int DMMTrigger(int nDmm, int iSamples)
Remarks Following reception of this command, the SM2040 DMM makes iSamples readings at
the currently set function, range and rate, and stores them in an internal buffer. Rate can
be set between 10 to 1000 readings per second. No autoranging is allowed for this
trigger operation. Between the times the DMMTrigger command is issued and the time
the buffer is read, no other command should be sent to the DMM. Use the DMMReady
function to monitor when the DMM is ready (ready implies completion of iSamples).
When ready, you can optionally read a single reading or up to iSamples, using
DMMReadBuffer.
Parameter
Type/Description
nDmm
int Identifies the DMM. DMMs are numbered starting with zero.
iSamples
int The number of samples the DMM takes following a trigger pulse.
This number must be between 1 and 64, inclusive.
Return Value The return value is one of the following constants.
Value
Meaning
DMM_OKAY
Operation successfully terminated.
DMM_E_INIT
DMM is uninitialized. Must be initialize prior to using any function.
DMM_TRIG_N
Measurement count is out of allowed range.