Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Software Trigerring of a GigE Camera

Hi everyone,

 

I am trying to trigger my Basler acA-1300-gm via software trigerring.

 

According to the manual from Basler, I need to do some acquisition trigger settings (shown in the attached example), prior to attempting to execute the 'Triggersoftware' Command.

 

In MAX, triggering the Software trigger Command seems to work just fine (after applying the needed settings to 'TriggerSelector', 'TriggerMode', 'TriggerSource', etc...).

 

In LabVIEW, however, after applying all the settings, and attepmting to execute the SW trigger command, the grabbing executes continously as if TriggerMode is set to Off.

 

When I remove the SWTrigger command from the loop, the grabbing terminates on a timeout, which is expected as it is waiting for the SWTrigger command to start execution.

 

This tells me there is something wrong with how I am implementing the 'TriggerSoftware' command execution, causing the continous grabbing.

 

I searched the forum for a similar case, and found this thread (http://forums.ni.com/t5/Machine-Vision/Triggering-a-GigE-camera/td-p/535207/page/1), which was helpful until the point where I am now stuck.

 

Thank you,

Omar

Download All
0 Kudos
Message 1 of 3
(4,615 Views)

A solution was found.

 

The SW trigerring (essentially 'TriggerSoftware' attribute write in a case structure), shall be placed in a loop parallel to the grab execution.

 

This way, a grab will occur only when a trigger is activated.

 

 

0 Kudos
Message 2 of 3
(4,533 Views)

Great thinking!

Michael Bilyk
Former NI Software Engineer (IT)
0 Kudos
Message 3 of 3
(4,517 Views)