-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hello,
I am using this repository together with PhoXiControl-1.11.1. For testing purposes, I refer to the example device "InstalledExamples-basic-example" and the GenTL files. After running the software_trigger.py script, everything works correctly. I have added this into display_texture_if_available to be able to save a 2D image:
# Save texture as image
output_path = "/API/examples/GenTL/python/my_outputs" # I created this folder
output_name = "/image1.jpeg"
# echo $PHOXI_CONTROL_PATH -> /opt/Photoneo/PhoXiControl-<version>
save_path = os.getenv('PHOXI_CONTROL_PATH') + output_path + output_name
print('--> save path: ', save_path)
cv2.imwrite(save_path, texture)
The problem comes when one of the two images in the example is saved with too much light, so I tried to change the settings.

After modifying parameters in "change_settings_scanner.py" and executing the file, nothing has changed and the same settings as at startup are still used. I have tried using code from change_settings_scanner.py inside the trigger file, but I get the same result. When I inspect the GUI during the software trigger, I can see that the settings have not changed, also if I add a print() in the change_settings script, the values are still the old ones and not the ones I modified.
I would appreciate some help to solve this error and to be able to change the settings via software for a later software trigger as well.
Thank you very much!