I might check out the example called "Read Dig Port." This shows you how to read a port from any module you specify. You can then output that port as an array of booleans, which seems to be something that you are trying to do.
Chris Van Horn
Applications Engineer