LabVIEW

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 have to 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 can I be sure that the right Portname is used for the right portvalue to be written? Please see Picture included.
Many thanks to everyone who have a little word to this!"
0 Kudos
Message 1 of 2
(2,369 Views)
Hello,
I think you have two choices. The most straightforward way is to use a separate Port Config for each port you want to use. Then you can control all of them independently.

The second way is to use a Group Config for a group of ports. Then you can read/write to the whole group (you will provide all the data together in one input). However with this method, I think you can only use ports from the same 8255 chip. So you could group ports A, B, and C from the same 8255 chip, but could not use port A from one 8255 and port A from another together.

Just for your reference, I searched ni.com/support for <+port +group +config> (without the <>) and got lots of good results.

Regards,
John N
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,369 Views)