A rheostat with a 15 ohm resistance is used in Melde's experiment to control the amount of current passing through the system. By adjusting the resistance of the rheostat, the frequency of vibration of the standing wave on the string can be varied. This allows for the different modes of vibration to be studied in the experiment.