The DSPLib contains a Widget Real to Complex solution that provides a utility to convert between real and complex data.