Every witness subpoenaed in any criminal case, shall attend, from day to day, and from term to term without further notice, until discharged by the court or by the party at whose instance he was subpoenaed, and in default thereof he shall be fined by the court not more than five hundred dollars, and a scire facias shall issue thereon, requiring him to appear at the next term of the court, to show cause why the fine should not be made absolute. If cause be not then shown, the fine shall be made final. In criminal cases, the court may cause the witnesses on either side to be bound by bond or recognizance to appear and testify until discharged.