Open danielm-code opened 1 month ago
Hi @danielm-code
Maybe there is a small adaption in your provided script required. Unfortunately I don't have the Camera which you are using. But usually the setup and run sequence looks like the following:
# snip...
camera = h.create(0)
camera.remote_device.node_map.TriggerSelector.value = 'FrameStart'
camera.remote_device.node_map.TriggerSource.value = 'Software'
camera.remote_device.node_map.TriggerMode.value = 'On'
camera.start()
camera.remote_device.node_map.TriggerSoftware.execute()
with camera.fetch(timeout=1000) as buffer:
component = buffer.payload.components[0]
print(f"Width: {component.width}")
print(f"Height: {component.height}")
camera.stop()
# snip...
There are two main points:
camera.start()
. It is possible that a software trigger is rejected when the device is not in the acquisition mode. Please let me know, if this was useful.
Describe the Issue When trying to acquire images, and executing a Software Trigger to do that, we observe the following error that there is a communication error. This is likely due to the parameter 'TriggerReady' constantly being set to 'False'. Following the documentation provided by KEYENCE, this parameter should be set to 'True' after triggering AcquisitionStart, but using debug commands it shows that it does not get set to 'True' afterwards.
To Reproduce Steps to reproduce the behavior:
Sample Code I can show a piece of code that demonstrates the reported phenomenon:
If yes, please provide a sample code:
If applicable, please paste the actual output (its whole traceback, etc) here:
Expected Behavior I expect the trigger command to be executed without error so that in parallel filled image buffers can be retrieved.
Screenshots
Configuration
Reproducibility
This phenomenon can be stably reproduced:
If applicable, please provide your observation about the reproducibility.
Actions You Have Taken
Additional context When trying to fetch a buffer filled with an image like in the tutorial, only a timeout is happening. So my understanding is, that for a buffer to be filled, first the image acquisition needs to be triggered (be it a hardware or a software trigger). In my use case I can only use a software trigger, which is the reason this error occurs.