There is a LabVIEW digital data logger example written for the 32HS that is installed with NI-DAQ's LabVIEW support for LabVIEW 5.1.
Looking at the example might help you get started.
I've attached the vi library file that contains the digital data logger because I don't think it is included in LabVIEW 6.