Hi,
You will want to make sure that you are using 2 seperate tasks. One for Digital Input and another for Digital Output. When you write your code it should look something like this:

As you can see there are two distinct tasks, and that is what configures your port for the direction thta it's going. Just make sure to make one channel per line instead of one channel per port.
Regards,
Message Edited by Otis [DE] on 02-02-2006 01:58 PM