Hi,
You are mixing buffered operation VIs (DIO Config, DIO Start, DIO Write) with non buffered VI (PortConfig, Port Write,Port Read). This will not work. Buffered pattren I/O example can configure 1,2 or 4 ports and then transfers the pattren at specified clock rate from PC buffer to the output port on the board. This is usually done for high speed pattren generation.
If you want to just configure individual line as input/output you might want to run "Immediate Digital Input and Output" examples that ship with NIDAQ. This examples use software timing (speed of while loop) to write/read to digital lines. Using "line direction map" on Port Config VI you can configure individual lines for input or output. The only thing you need to remember is that when you are writing t
o port, mask out the lines that you have confiured as output.
Hope this would make sense 2 U.
A Rafiq
National Instruments