Spectral Products
Spectral
Products
2659 Pan American Fwy, Suite A, NE Albuquerque, NM 87107 Ph. (505) 343-9700 Fax (505) 343-9705
25
Appendix C
Function Name
Description
RETURN
when
successful
RETURN
when
unsuccessful
spPulseCmd
short spPulseCmd
(
Long *1Array
)
This function is called to send the acquired
command only, and not received data. The
function must call before calling
spPulseData
function. *
lArray
is the number of samples,
which will be passed to the
spPulseData
function.
Note: This function uses together
with spPulseData, and for ‘External trigger’
only.
Zero
A non-zero
number
spPulseData
short spPulseData
(
unsigned long
*1Array int
iNData
)
This function reads data from the AD111 and
is called right after the spPulseCmd function.
*lArray
points to a data address. Its memory
size should be one or bigger.
INData
number
of samples, which gets from
spPulseCmd
Note: This function uses together with
spPulseCmd, and for ‘External trigger’ only.
Zero
A non-zero
number
spPower
short spPower
(
short sPwr
)
This function is called to turn on/off the
external power supply. The AD111 has to be
on in order to operate.
sPwr
can be 0 for OFF, or 1 for ON
Zero
A non-zero
number
spPowerQ
short spPowerQ
(
short *Pwr
)
Reads the external power status.
*
Pwr
points to a data address. The data can
be 0 for OFF and 1 for ON.
Note: This function works with the external
OFF, and it uses to query at beginning of a
program.
Zero
A non-zero
number