Technical data

4-16 E6198B Switch/Load Unit Software Manual
4 Programming With Generic Application Handler
int e6198b_6176_openLoadSwitch(long boxNr,long slotNr, long channel, *status)
{
slu_status=SetLoadSwitch(boxNr,slotNr,channel,0,*status);// Open Relay
slu_status=SetPowerSwitch(boxNr,slotNr,channel,0,*status);
return slu_status;
}
int main()
{
long return;
e6198b_6176_closeLoadSwitch(0,1,1,&return);//Call SLU 0, Slot 1, Channel 1
…// Command
}
int e6198b_6176_closeLoadSwitch(long boxNr, long slotNr, long channel,*status)
{
slu_status=SetLoadSwitch(boxNr,slotNr,channel,1,*status);
slu_status=SetPowerSwitch(boxNr,slotNr,channel,1,*status);
return slu_status;
}
Some load cards like E6198B 8-Channel Load Card utilize
external Power Supply directly to Power Connection. For this
case, the command SetPowerSwitch should not be used on
related Load Card. (Please refer Table 4-4, “Valid Range For The
“Channel” Parameters,” on page 3)
int main()
{
long return;
e6198b_6178_openLoadSwitch( 0, 1, 1,&return);//Call SLU 0, Slot 1, Channel 1
…// Command