I would recommend testing your channels by using Measurement and Automation Explorer (MAX). Have you already set up your software configuration in MAX? If so, you can create either a task or global channel to test with by right clicking on Data Neighborhood and choosing create new. If you are able to correctly read signals here, you probably are pointed to the wrong place in the program you have written.
If you could provide more details about your configuration, I will try to help further.