Signametrics
102
DMM_OKAY
Operation successfully terminated
Positive value > 100
Warning code.
Negative value
Error code.
Example
double
Buffer[3000];
DMMSetAperture(0,
APR_625us);
DMMSetReadInterval(0, 0.0); // Must be zero to use this function
DMMLongTrigger(0, 100, 30, 0.01 ); //expect 100 triggers, take 30 samples
// for each trigger, space samples by 10ms.
for(i=0 ; i < 3000 ; i++){
// read a total of iTrigCnt * iSampl samples.
while( ! DMMLongTrigRead(0, &r)); // Wait and read 3000 samples
Buffer[i] = r ;
}
DMMLongTrigRead
SMU2060
SMU2064
SMU2064-R
Description
Read samples generated by DMMLongTrigger operation. Available with Option ‘R’
#include "SMU2060.h"
int DMMLongTrigRead
(
int
nDmm,
double *
lpdReading
)
Remarks
This function does two things, it checks for the availability of a sample resulting from a
DMMLongTrigger
operation, as well as reading it. If a sample is not ready a FALSE (0)
is retunred, if it is available it returns TRUE (1) as well as save the sample at a location
pointed to by
lpdReading
. Therefore, when ready is indicated the reading must be read
from this location and saved in a buffer. Failing to do so will result in this value being
overwritten by a subsequent sample. Use a tight loop to check for samples availability
and saving the sample at a safe location. All triggered samples must be read using this
function. The total number of samples is equal to
iTrigCnt
times
iSampl
. Look up these
parameters in the
DMMLongTrigger()
description above.
Parameter Type/Description
nDmm
int
Identifies the DMM. DMMs are numbered starting with zero.
lpdReading
double *
The location at which the reading is saved when TRUE is
returned.
Return Value
The return value is one of the following constants.
Value Meaning
TRUE
A sample is ready. It is located at location
lpdReading
FALSE
Not ready. A reading is available yet.
Positive value
Warning code
Negative value
Error code.
Example
double
Buffer[3000];
DMMLongTrigger(0, 100, 30, 0.01 ); //expect 100 trigger pulses, take 30 samples
// for each trigger, space samples by 10ms.
Содержание SMU2060
Страница 26: ...Signametrics 26 PXI Instrumentation Switching modules SMX4030 SMX4032 IVI COM driver...
Страница 81: ...81 Signametrics Postive Value 100 Warning code Example char cBuf 64 int status status DMMGetCalDate 0 cBuf...
Страница 106: ...Signametrics 106 Postive Value 100 Warning code Example char cBuf 64 int status status DMMPeriodStr 0 cBuf...