I'm trying to modify the camera acquisition attributes' values and then save these values in a new camera configuration file, or edit an existing one. To do so, I am using the IMAQdx Write Attributes.vi function. However when it gets executed, I receive an error:
Error -1074360307 occured at IMAQdx Write Attributes.viPossible reasons: Acquisition in progress
How do I solve the error and successfully write the new attributes to a camera configuration file?
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.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.