Unfortunately this driver is not supported by National Instruments as seen on the driver page when downloading. That being said, I will try to help the best I can. I took a look at the code and found that the functions that govern the Opening and Closing of the relay are almost exactly the same except for a the lines:
if (hpe1364a_device_closed (instrID) != 0)
return hpe1364a_err;
chan_val[instrID][chan] = 0L;
from the Open Channel Function and:
if (hpe1364a_device_closed (instrID) != 0)
return hpe1364a_err;
chan_val[instrID][chan] = 1L;
from the Close Channel function. The difference here is the value set to the chan_val array. The problem is the fact that the conditional used to get to this is the same for both functions. I assume the conditional should check for if the device is open in the Close Channel Function.
Regards,
-Travis E
National Instruments
Product Marketer