Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#


Unable to find out the external trigger for point grey camera. After performing some changes. Can anybody help me regarding this and proceed further.

What I have tried:

C#
static bool CheckSoftwareTriggerPresence(ManagedCamera cam)
       {
           const uint TriggerInquiry = 0x530;
           uint triggerInquiryValue = cam.ReadRegister(TriggerInquiry);

           if ((triggerInquiryValue & 0x10000) != 0x10000)
           {

               return false;
           }

           return true;
       }

       static bool PollForTriggerReady(ManagedCamera cam)
       {
           const uint ExternalTrigger = 0x830;

           uint ExternalTriggerValue = 7;

           do
           {
               ExternalTriggerValue = cam.ReadRegister(ExternalTrigger);
           }
           while ((ExternalTriggerValue >> 31) != 0);

           return true;
       }

       static bool FireExternalTrigger(ManagedCamera cam)
       {
           const uint ExternalTrigger = 0x830;
           const uint ExternalTriggerFireValue = 0x80400000;

           cam.WriteRegister(ExternalTrigger, ExternalTriggerFireValue);

           return true;
       }
Posted
Updated 16-Dec-16 22:30pm

1 solution

I already answered your similar question External trigger for point grey camera[^] posting a link to a specific Point Grey knowledge base entry.

Please read that and follow the links in it (one is pointing to Technical Application Notes: Synchronizing to an external trigger signal using DCAM 1.31 Trigger Mode_0[^]):
Quote:
Example Programs and Source Code

The AsyncTriggerEx sample program that is included with the FlyCapture SDK. It demonstrates some of the basic asynchronous trigger capabilities of the Applicable Products above. This program only works with cameras that can be asynchronously triggered, either using an external hardware trigger or by using the camera's internal software trigger.


Search also the knowledgebase and application notes for other entries related to your problem.

What do you want to achieve in the end?
The external trigger is an additional input pin of the camera. It is not connected to the PC (besides you have some kind of IO card in your PC that is connected to one of the camera's GPIO pins).

So you can't trigger the camera (as indicated by the function name FireExternalTrigger) using an external trigger by software. You can only configure the camera. To trigger the camera by software, use the provided software trigger method.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900