LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring DIO on a NI-6224

Hello,
 
I'm using TestStand 3.1 and LabVIEW 7.1 for a project.  Is there a way of configuring Port 0 on a NI-6224 so that lines 0:23 are inputs and lines 24:31 are outputs.  I need to control the state of the outputs at all times so I initialize them in the Setup portion of TestStand.  This process seems to tie the entire Port to a task number when I only want one byte of the port tied to that task number.  Any help or hints would be greatly appreciated.  Thanks.
 
 
0 Kudos
Message 1 of 2
(2,898 Views)
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

0 Kudos
Message 2 of 2
(2,891 Views)