Solution
This error occurs when the IMAQdx Write Attributes.vi is called after the IMAQdx Configure Grab.vi because some specific acquisition attributes cannot be changed after the acquisition is already configured. The IMAQdx Write Attributes.vi not only saves a new camera configuration file with the attributes' current values but also writes those attributes to the camera.
To avoid this error, use the function IMAQdx Unconfigure Acquisition.vi before using the IMAQdx Write Attributes.vi. This step will ensure there is no actively configured attribute(which does not allow to write attributes) in the IMAQdx session. See an example code below, which does exactly what described above.
In the above scenario, the Width attribute has been configured, and it is not writeable while an active acquisition/configuration is running. Thus we need to unconfigure it, and write the new configuration.
Note: The IMAQdx Unconfigure Acquisition.vi does not erase the new attribute values. Writing the attributes after this function will write the newest updated attributes.