Try to make a CIN using your C code (you have a manual (pdf format) about calling external code on your labview CD)
Also, if you go to NI site -> Knowledge Base and search for 'read +parallel +port', you will find documentation and some VIs to control the port as you want.
good luck!