Hi,
What rate are you planning to read the analog input at? Do you want to be continuously monitoring the analog input, or just read that once every second as well. Assuming that you are programming in LabVIEW using DAQmx, I have attached a VI that can help you get started. I am monitoring the analog input once every second and sending the analog output in a case structure, based on what the value of the analog input is.
There are many ways to do this and the attached VI is just one of them. This VI is just a starting point to make your application. Please keep in mind that this is all software logic.
Also, I am resetting the analog output value to -5 every time it crosses 5V, because you did not mention what will happen to the analog output once it crosses the maximum value supported by the 6008. I just made this assumption. You can change it around to suit your needs.

Hope this helps. Please feel free to post back with any further queries.
Regards
Raajit L
National Instruments