![Signametrics SMX4030 Скачать руководство пользователя страница 46](http://html1.mh-extra.com/html/signametrics/smx4030/smx4030_operators-manual_1268486046.webp)
Signametrics
46
Negative Value
Error code
Example
int status = SCANOpenPCI(0);
SCANReady
H/W access Command
Polled Command
Description
Return the ready state of the Scanner following a polled operation.
#include “SMX4032.H”
int SCANReady
(
int
iScan
)
Remarks
Following the completion of long or complex polled commands, the scanner indicates it
is ready to accept a new command by issuing a task complete message. Functions
requiring the use of the SCANReady() command include;
SCANSelectChannelCmd(),
SCANAutoScan(), SCANTrigAutoScan(), SCANTrigScan(),
and
SCANCleanRelays()
. The
SCANReady()
function checks returns TRUE if ready, and
FALSE otherwise. Once a TRUE status is returned, the
SCANMMReady()
function
should not be used again until a new polled command requires it.
Parameter Type/Description
iScan
int
Identifies the Scanner. Scanners are numbered starting with zero.
Return Value
The return value is one of the following constants.
Value Meaning
TRUE
(=1) Scanner is done and ready to accept new commands.
FALSE
(=0) Scanner is not ready.
Negative Value
Error code
Example
double Buffer[10];
SCANAutoScan(0,10);
while( ! SCANReady(0) );
for(i=0; i <
10 ; i++) Buffer[i] = SCANReadBuffer(0);
SCANSelectChannel
H/W access Command
Polled Command
Description
Select channel command.
#include “SMX4032.H”
#include “ScanUser.H”
int
SCANSelectChannel(int
iScan, int iChan)
Remarks
This is the primary channel selection function for the multiplexed configurations of the
scanner. It opens currently closed channel(s) in a configured group and then closes
iChan
. Depending on the current configuration, it will open and close a different number
of relays. In
TwoWire
configuration, all relays open prior to closing the
iChan
. If the
Scanner is in the
FourWire
configuration, the
iChan
value can be between 1 and 16. In
addition to opening the currently closed channels, it will close the two channel relays in
accordance with the
FourWire
switching scheme. Configuration relays will also be set as