Hi rdtech,
Error -239021 usually indicates that some piece of hardware failed. Does this problem occur with other PXI modules in your chassis? If you are able to isolate this problem to the PXI-5402, by swapping module slots or even testing the module in another chassis system, I would send your module in for repair.
Tunde S.
Applications Engineer
National Instruments