How do I make a button on the config panel send data to the viewer panel

You can either have the config panel broadcast directly to PubSub or go Config Panel to EBS and then EBS to PubSub.

Extension PubSub is documented here: