![Spectral Products AD111 User Manual Download Page 24](http://html1.mh-extra.com/html/spectral-products/ad111/ad111_user-manual_1343684024.webp)
Spectral Products
Appendix C
Spectral
Products
2659 Pan American Fwy, Suite A, NE Albuquerque, NM 87107 Ph. (505) 343-9700 Fax (505) 343-9705
24
Function Name
Description
RETURN
when
successful
RETURN
when
unsuccessful
spHvSource
short spHvSource
(
short
sHvSource
)
Sets the source of high voltage.
sHvSource
can be 0 for External high voltage
control, or 1 for Software control
Zero A
non-zero
number
spMonSource
short spMonSource
(
short
sMonSource
)
Selects whether to read the signal or to
monitor the high voltage.
sMonSource
can be 0 for data signal, or 1 for
monitoring the high voltage.
Zero A
non-zero
number
spSetAvg
short spSetAvg
(
short
sAvg
)
Sets the sample average.
sMonSource
can be from 0 to 300.
Zero A
non-zero
number
spReadDataEx
short spReadDataEx
(
long
*pArray
)
Reads the data from USB port.
*
pArray
points to a data address. Its memory
size should be one or bigger.
Zero A
non-zero
number
Zero A
non-zero
number
Reads the data saved in the Eeprom of the
interfacing USB board. The data are: High
voltage (HV), RC constant, Gain, Trigger
value, Trigger source, HV source, HV
control source, the firmware version, DC
power, and the sample average.
pArray[0...1]
is the current high voltage,
where HV = pArray[0]*256 + pArray[1].
spReadInfo
pArray[2]
is the RC time constant.
short spReadDataEx
pArray[3]
is the Gain.
(
pArray[4]
is the Trigger value.
short
*sRdInfo
pArray[5]
is the Trigger source.
)
pArray[6]
is the HV source.
pArray[7]
is either data or monitored HV.
pArray[8…9]
is the firmware version in
the format of pArray[8].pArray[9].
pArray[10]
is DC voltage indicator, where
0: not DC, 1: yes DC.
pArray[11…12]
is the sample average
(SA), where SA = pArray[11]*256 +
pArray[12].