The best place to start would be to look at the LabVIEW examples for Digital Input and Output operations. In LabVIEW, go to Search Examples then Hardware Input and Ouput>>DAQ(or Data Acquisition)>> Digital Input and Output>>8255. Here you will find examples using the 8255 chip which is the chip on the PCI-6503. I would recommend looking at 'Write to 2 Dig Ports(8255) VI' and the 'Read from 1 Dig Port(8255)VI.'
You will simply need to combine the two together. One note: you will want to make sure that both port config VI are called before either Port Read or Port Write VIs.
I hope this helps.
Regards,
Todd D.
NI Applications Engineer