//called for each data set
 void getData(object sender, NetMQ.NetMQSocketEventArgs e)
 {
     msg = client.ReceiveMessage();
 }