There's a picture on the last page of the G540 manual showing exactly what your trying to do.
Connect the negative terminal of you 12V powersupply to the negative terminal of the supply powering the G540. Then connect +12V to one side of the relay, connect the other side of the relay to the G540 output.