LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqsnap trigger timeout

Hello,
 
How can I use the snap function with trigger configuration to avoid the "non-fatal error" that appears when no image was token before timeout?
 
I explain :
I configure my acquisition for a trigger acquisition with the "imgSessionTriggerConfigure2" function. This function defines a timeout value that specifies the amount of time in milliseconds to wait for the trigger to occur and the image to be captured. When I use imgSnap, if the trig doesn't occurs, a non-fatal error appears after this timeout.
 
I could use the release version but I need debug version for the rest of my program.
I could put a higher valuer in the timeout but it block the program until trig is detected or until the error appears. Therefore, higher value doesn't solve my problem if I doesn't have any trig detected.
 
Thanls for your help,
Seb
0 Kudos
Message 1 of 3
(3,128 Views)

Look at the help for

SetBreakOnLibraryErrors()

Set BreakOnProtectionErrors()

SetBreakOnFirstChanceException()

By bracketing statements that have runtime issues with function calls to disable/re-enable error checking you can ignore issues in routines that do not required error checking. 

0 Kudos
Message 2 of 3
(3,110 Views)
OK Thanks
0 Kudos
Message 3 of 3
(3,088 Views)