Please check out [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=342.0]Photoelectric effect[/url]
It is designed to be similar to a real experiment.
User need to repeat the operation several time with different work function and extract data from the simulation
to get e*Vs = h*f - W relation.