It is pretty straightforward to receive data on a topic and print the data received in a CSV format.
You will need to know:
- the Topic Resolution Domain - to configure the context to be able to join the topic
- the Topic - to create a topic receiver
- the incoming data structure - to dump the appropriate fields in a CSV form.
If you have access to the lbmrcv example program, it would be very straightforward to add logic to that example to print the received data. You will find lbmrcv.c in the examples directory of the UM documentation.