Find inexpensive amplifier to use with the Adjustable Frequency Signal Generator.
The amplifier voltage and power strength to the electromagnet coil needs to be variable also.
Then show how to properly wire these to make the electromagnet work.
See attached simple screen shot representation and part list.
I will own all copyrights to the design.
I'm an Electronic Engineer. I will try my best to give you the best services.
My last project at freelance was about Control Systems Engineering.
Kindly chat with me.