Hello.
Thank you for posting to the NI Discussion Forums.
Can you explain what type of 'judgement' you are making? Does this mean that if the analog input signal is above a specific value, then you will output a 5V signal? Do you output the 5V signal regardless? Can you explain your end application so we can help you in a more specific way?
In terms of finding good examples, I would recommend exploring the NI Example Finder. This can be found from either your block diagram or the front panel by clicking Help>>Find Examples. Then, once the NI Example Finder window is launched, please navigate to Hardware Input and Output>>DAQmx. Here, you will be able to navigate to numerous examples that pertain to DAQmx. If you want to find more about analog input, please select Analog Measurements and feel free to explore.
Let us know more about your application and we will be happy to help you out further!
Brian F
Applications Engineer
National Instruments