Hello Walia, Thanks for your post back!One way that I would perform you DO before the AO is to use some kind of sequence structure. This way you are assured that the task are happening in the order that you want them to. You can do this continuously or if you are only doing one test you can have this run just once. Let me also point you to a document that talks about DAQ and the DAQmx functions that can handle almost any task you want to do. Take a look at the following link. <a href="http://zone.ni.com/devzone/cda/tut/p/id/2835" target="_blank"> Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications</a> Also if you want to output a variable duty cycle signal I would recommend using the counters as they are designed for doing such a task. Take a look at the link below that talks about how to change the duty cycle programmatically. <a href="http://digital.ni.com/public.nsf/allkb/82C9F3C15F62974E86256EBA0058CAF5?OpenDocument" target="_blank"> How Can I Change the Duty Cycle on My Continuous Pulse Train?</a> Also I would also recommend taking a look at the shipping examples that come with LabVIEW. In LabVIEW if you go to Help >> Find Examples, there are examples programs for many many applications.The picture attached shows how I would use DAQmx to output a DO before and AO. Let me know if any of this helps you and good luck on your applications!Cheers!Corby_Bhttp://www.ni.com/support
digital before analog.JPG:
http://forums.ni.com/attachments/ni/250/41660/1/digital before analog.JPG