Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I program Port C (4) as inputs on the 6025E using ComponentWorks & VB6?

When I drop the DIO Point control into my form and right click the properties window, Only Ports(0:3) are allowed. PortC is Port(4). 4 is not allowed!!
0 Kudos
Message 1 of 3
(3,404 Views)
Greetings,

Your board has 4 ports. You say you have access to Ports(0:3), which is port 0, port 1, port 2, and port 3. That is four. If you need access to the fourth port then you will reference Port(3) in VB. The issue is that VB indexes the array beginning with 0 and not 1.

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,404 Views)
Justin:
The PCI-6025E Board has Ports0=DIO<0:7>, Ports1=not available, Ports2=PortA<0:7>, Port3=PortB<0:7> and no Port4 for PortC<0:7> using ComponentWorks 2.01
Stanley
0 Kudos
Message 3 of 3
(3,404 Views)