We can use LabVIEW to create digital relays. We create digital relays: over current relay, distance relay, directional relay and over/under voltage relay. We can use MATLAB to create short-circuit faults. We can use a Natural instrument usb-6008 to convert and revert fault and also send and receive faults by this interface card. Relays can operate by coordinate working with Natural instrument usb-6008 and MATLAB. Relays can show an output and give an analog output.