def getSigGenIDN(sg):
    """
    This function returns the Sig Gen IDN
        
        Parameters:
            sg              : socket connection
    
        Returns:
            IDN              : Sig gen IDN response as string
    """    

    sg.sendall(b'*IDN?\r\n')                                # Get system identification
    response = sg.recv(1024)
    
    return response.decode('utf8')