A complete test for opto-couplers can be made using the circuit Bellow. The function generator applies a signal to the opto-coupler, and if it is good, the signal is displayed in the virtual oscilloscope. Observe the adjustments for the function generator and the oscilloscope for correct display of the signal.
To download the simulation files and Netlist - click here (ni0023.zip)