In this paper, an electromagnetic compatibility estimator is proposed using an artificial neural network with a scaled conjugate gradient algorithm. Neural networks are trained with the help of seven different optimization algorithms in MATLAB. Their performance is evaluated on the basis of number of neurons, desired output, and mean-squared error in offline mode in MATLAB. Among seven algorithms, scaled conjugate gradient algorithm is found to be the best choice. Hence, it is implemented in LabVIEW for online assessment of electromagnetic compatibility issues. Voltage dip, swell, and harmonics are generated with the help of an experimental setup. It consists of 230 V, 50 Hz input voltage supply, microcontroller, variac, and solid-state relays. It is interfaced to the LabVIEW software with the help of an NI USB 6361 data acquisition system. It enabled the continuous online monitoring of various signals. Along with voltage dip and swell, harmonics are also evaluated with the help of spectrum analyzer in LabVIEW. The detailed description of a hardware setup and mathematical modeling of trained network is given in this paper.