question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to change TriggerMode

See original GitHub issue

Hello, I am configuring two Basler acA1920-155um in python. An excerpt of my code is for i in range(2): self.Camera[i].TriggerSource = "Line3" self.Camera[i].TriggerSelector = "FrameBurstStart" self.Camera[i].TriggerMode = 'On' self.Camera[i].LineSelector = "Line3" self.Camera[i].LineMode = "Input"

But when I try to trigger the camera, with an external signal, I get the TimeoutHandling_ThrowException When I open pylon Viewer I see that TriggerMode is Off and LineSelector is Line1 If I change these, in pylon viewer, (to On and Line3, respectfully) and rerun the external trigger signal, it works.

Any thought why e.g. self.Camera[i].TriggerMode = 'On' don’t crash, but don’t set the property?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
gaeeronimocommented, Aug 12, 2019

TriggerSource & TriggerMode are selected by TriggerSelector, so you need to set TriggerSelector first to the Trigger you want to configure (eg. FrameBurstStart if you want to trigger a burst of frames). After selecting the Trigger you may configure it (eg. enable it by TriggerMode = 'On' and set the source by TriggerSource = 'Line3').

Try it this way:

for i in range(2):
    self.Camera[i].TriggerSelector = "FrameBurstStart" # <== Selector first!
    self.Camera[i].TriggerSource = "Line3"
    self.Camera[i].TriggerMode = 'On'

    self.Camera[i].LineSelector = "Line3"
    self.Camera[i].LineMode = "Input"
0reactions
SpangeJcommented, Aug 12, 2019

TriggerSource & TriggerMode are selected by TriggerSelector, so you need to set TriggerSelector first to the Trigger you want to configure (eg. FrameBurstStart if you want to trigger a burst of frames). After selecting the Trigger you may configure it (eg. enable it by TriggerMode = 'On' and set the source by TriggerSource = 'Line3').

Thank you, @gaeeronimo, this was precisely it! I changed the order, such that TriggerSelector was prior to TriggerSource & TriggerMode and now self.Result[i] = self.Camera[i].RetrieveResult(5000,pylon.TimeoutHandling_ThrowException) runs smoothely!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: IMAQdx Error "Unable to set attribute" when changing ...
I have tried changing the order of setting the attributes (TriggerMode then AcquisitionMode and vice versa). It is unclear whether this is a ......
Read more >
How to configure a hardware-triggered acquisition from a ...
Most GigE Vision cameras support a FrameStart hardware trigger mode, ... I tried to modify the code above and transfer to my Gentl...
Read more >
Geneos - Show every trigger instead of the latest trigger (FKM)
Possible Solution(s). Change the trigger mode from Single to Multiple trigger mode: display > triggerMode > Mulitple. Open the Gateway Setup ...
Read more >
Spinnaker C++: Trigger.cpp - FLIR
cout << "Unable to disable trigger mode (node retrieval). Aborting..." << endl;. return -1;. } ... Retrieve, convert, and save images.
Read more >
wge100_camera/Troubleshooting - ROS Wiki
Error: Cannot find the camera on the network; Error: Trigger mode set error ... and change the ip_address parameter in the launch file:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found