DBS9900 User’s Manual
5-44
DBS9900 Driver Software
82-28993 Revision 01
5.6.9
Await PLL Lock
an9900_awaitPLLLock
This function waits up to
timeout
seconds for the PLL to lock. Returns VI_SUCCESS if it locks, or
AN9900_ERROR_PLL_LOCK_TIMEOUT if it is timed out. It may be used after
AN9900_setSampleRate to ascertain that the PLL has locked. AN9900_setSampleRate does not
automatically wait for lock, since to do so would slow down the calling program unnecessarily in
most cases.
Function Prototype
ViStatus _VI_FUNC
an9900_awaitPLLLock
(ViSession
vi
, ViUInt16
timeout
);
an9900_awaitPLLLock
Parameters
Variable Type
Description
<INPUT>
vi
ViSession
This control accepts the Instrument Handle returned by the Initialize
function to select the desired instrument driver session.
timeout
VIUInt16 >
100
micro-seconds
<OUTPUT>
NONE
<RETURN>
= 0
> 0
< 0
ViStatus “VI_SUCCESS”
Warning: The function completed, but an exception condition occurred
which may require attention.
Error: The function did not complete successfully.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com