The judge or chancellor may issue or order subpoenas for witnesses and compel their attendance, as a circuit court could in term time, and fine witnesses or others for contempt. Whenever the personal attendance of a witness cannot be procured, his affidavit, taken on reasonable notice to the adverse party, may be received in evidence.