There probably won't be any sample programs that will be that specific to be of much help to you. But it sounds a bit odd that you want to take pulse in and somehow translated that to 30 analog outputs. Certainly more details on the nature of your pulse input and exactly what you are wanting to do with it.