I am a lot rusty on my daq. I think this is what you need. <a href="http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E4A156A4E034080020E74861&p_node=DZ52308&p_source=External">Acquire Analog Input Data Using a Software Analog Trigger </a>
You may want to post to the daq forum. I highly recommend searching NI's <a href="http://search.ni.com/?col=alldocs&layout=TechResources&ql=a">advanced search</a> page for example programs.