You should first take a look at some of the example programs that are included in LabVIEW. By studying these, you will gain a better understanding of how LabVIEW block diagrams work and how to use your DAQ device.
In LabVIEW, go to the menu bar and choose Help >> Find Examples, this will open up the Example Finder. Go to Hardware Input and Output >> DAQmx >> Digital Generation. Here you will see an example called "Write Dig Port.VI." This is the basic example of writing to your DAQ device. You can write different digital data words to the ports of your DAQ card using this. You can then take this example and build on it to include loops, waits and other program controls that will perform your desired task.