What version of NI-488.2 are you using? Have you reproduced the error with a simplified version of your code to narrow down what might be causing the issue? I would suggest taking a NI-Spy capture of the GPIB calls to help get a better idea of what might be causing the REN line to de-assert. Reference the Performing a Good NI-Spy Capture article for directions on how to use NI-Spy.
Regards,
Andy L. Applications Engineer National Instruments