Configurable Load Module
- Updated2023-07-17
- 2 minute(s) read
Configurable Load Module
Learn how to use LabVIEW to configure a load module.
The hypothetical load module in this example has a programmable potentiometer for each channel, but they share a single I2C master, so updating the load resistance requires executing a device command. It is made by a company called "Example Modules Inc." that uses a vendor prefix of "Example" on all properties and commands.
Configurable Load Example Code


Configurable Load Example Discussion
This example can be broken down into the following steps.
- This example is configuring multiple physical channels, so the first step is to initialize a session for the desired physical channels using a colon-delimited range of channels. It changes configuration so the reservation access must be read/write, but that is the default value for the initialize function so it is not set.
- Multiple channels are being configured, so the array version of Set Phys Chan Property VI is used. The input array must be the same size as the number of physical channels listed within physical channels input.
- Once the properties are set, execute Example.Load.Update to make the configuration take effect. This commits the properties to hardware, signals to the hardware to start updating the load potentiometers, and waits for the hardware to indicate that the load potentiometers have been updated before returning.
- Close the session when the VI exits.