Glad it worked out for you. If you are using DAQmx, everything is under Measurement IO/DAQmx. You can find some great shipping examples in the Example Finder. Help/Find Examples/, go to the Browse tab, Hardware Input and Output/DAQmx. One thing worth mentioning is that the Event Structure is a blocking structure, and none of the rest of the code can execute when an event structure is executing. So what you probably want to do is to wire the boolean directly to the DAQmx Write.
Yi Y. Applications Engineer http://www.ni.com/support