Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Write Digital Output and Read Digital Input on Rising Edge of Same External Clock

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

0 Kudos
Message 1 of 2
(3,133 Views)

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,

Daniel Dorroh
National Instruments
0 Kudos
Message 2 of 2
(3,118 Views)