LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IR capture

Hi,

So my task is this:  I need to capture a signal from a TV remote, and display which button was pressed on the screen.  The signal is being read using a S1U60 Phototransistor hooked up to a DAQ system.  My problem is this:  I can recieve the signal just fine, but capturing just the part that contains my "message" is very difficult.  Especially since the DAQ set-up I am using is E-series and therefore does not support analog triggering.  Thus, I must rig my LabView VI to somehow trigger the signal as its coming in. Oh and one last requirement, this all has to be done in "real-time" which means the user presses a button on the remote and a boolean lights up in LabView, and doesn't turn off until the user lets go of the button.

 

Thanks in advance for any help,

-Bill

0 Kudos
Message 1 of 3
(2,938 Views)
cant you just have a loop that is constantly querying the input and checking which button was pressed and lighting up the right boolean indicator?
0 Kudos
Message 2 of 3
(2,923 Views)

Bill,

 

BrentShenk's approach is a good one.  Set up your analog acquisition to be continuous.  Run it in a loop parallel to the GUI loop.  Pass the data via a queue or action engine. Look at the Producer/Consumer Design patterns for examples.

 

This is a very brief introduction to the concept.  If you need help with implementation, ask specific questions.

 

Lynn 

0 Kudos
Message 3 of 3
(2,894 Views)