09-27-2012 07:13 PM
In short,
I want to capture the state of two digital inputs every time there is a rising edge on an external clock. This clock edge is already being used to generate two digital outputs which is working properly.
Background:
Currently I have a vi that is controlling two laser shutters with a regenerated signal so that they alternate between open and closed when a trigger from the camera is received saying that a new frame has been grabbed. What I want to do is read two digital inputs (the state of the shutters) after each camera fire as well. The reason for this is that I tested the attached vi and it works perfectly most of the time, but every once in a while when a frame is captured for some reason the shutters don't change at high frame rates. In essence this captured data will be used as a check system for which laser was on at each given frame.
Thanks for any advice, I tried searching the forums but I couldn't find anything.
Best,
Joe
09-28-2012
08:17 PM
- last edited on
08-09-2024
12:33 PM
by
Content Cleaner
Hi jowparks,
Have you tried using a Digital Change Detection? You may find details on this in the following article:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAn9SAG&l=en-US .
Digital change detection allows you to latch digital line values upon the change in state of a monitored digital line. This sounds like it could work for your case.
Regards,