Can I Read and Write I/O Variable Containers as Arrays?

Updated Jan 27, 2020

Reported In


  • LabVIEW
  • LabVIEW Real-Time Module

Issue Details

I'm using I/O variable containers to read the Inputs/Outputs of my c-series module and I would like to read/write all of them with just single operation?
It's possibile to read or write I/O variables container as arrays?


Yes, it is possibile. By accessing the channels of an I/O variable container as a single array, you can optimize performance and streamline the block diagram. Use the Shared Variable functions to read and write local I/O variable containers as arrays.

For example, If your are interested in all the I/O channels in  in the analog input module Mod1 as an array of doubles:

Please make sure the variable refnum is associated to the class I/O Variable Container.


Additional Information

Additional details are available on Reading and Writing I/O Variable Containers as Arrays (Real-Time, Windows
Note: This technique applies only to local I/O variable containers. You cannot use this technique to access I/O variable containers remotely or to access network-published shared variable libraries. In this case we sugest to the method available on Programmatically Read All Shared Variables on Network.