Technical data

Programming With Generic Application Handler 4
E6198B Switch/Load Unit Software Manual 4-15
Example Of Using Generic Handler
Like all instruments, the Switch Load Unit should go through an
initialization process.. InitSlu(boxNr) is initial Switch Load Unit
function, boxNr is number of SLU (valid 0-7). If status return 0
initialization is a success.
int main ()
{ long return;
status = e6198b_init(0, &return) ; //Initial SLU Number 0. Valid 0-7
… // Command
}
int e6198b_init(long boxNr, long *status)
{
slu_status = InitSlu(boxNr, *status);
return slu_status;
}
To close the contact for a specified load card channel, for
example E6176A 16-Channel Load Card, the following command
may be used:
SetLoadSwitch(boxNr,long slotNr, long channel, long openClose,
long *status) and set power command, SetPowerSwitch(boxNr,
long slotNr, long channel, long openClose, long *status). Set '0'
into long openClose to open Relays; set '1' is to close Relays.
int main ()
{
long return;
e6198b_6176_openLoadSwitch(0,1,1, &return); //Call SLU 0, Slot 1, Channel 1
…// Command
}