Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

GroupConfig instead of PortConfig for writing multiple digi channels?

Hello, I have an old Programm in which a portname and a value is extracted from a cluster input and then the Port gets configured (PortConfig.vi) and the value is written (PortWrite.vi). Now with a DIO96 I hav eto Configure multiple Ports at a time (to avoid the resetting) should I do this with Group config and Group Write or is there a way to do this with some Port configs and then do the port write? How cab I be sure that the right Portname is used for the right portvalue to be written? Please see Picture included.
Many thanks to every who have clue to this!
0 Kudos
Message 1 of 3
(3,293 Views)
You can use the Port Config.VI and the Port Write.VI to perform the operation you want to do. There are DIO shipping examples in LV 6i which are designed to be used with the 8255 PPI boards, like yours. If you can find them in Search Examples-> I/O Interfaces -> Data Acquisition -> Digital Input and Output -> Immediate Digital Input and Output. You may have to modify them a little bit, but they are a good start point.
0 Kudos
Message 2 of 3
(3,293 Views)
Hello;

The write way to do that is:
Config Port A
Config Port B
.
.
.
Config Port N

and then, write to those ports:
Write pattern to Port A
Write pattern to port B
.
.
.
Write pattern to port N

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,293 Views)