Connect +5V and GND pins from USB-6501 to Vcc and GND pins of the push buttons, then connect the Output pin to any PFI pin of 6501.
For programming, start with Test Panel in NI MAX. Once you have acquired the desired measurement, move on to LabVIEW or Text-Based programming. See Getting Started with NI-DAQmx.