I am trying to make a reaction timer .vi in LV 8.2 with the following attributes:
1.Uses "Peak Detection and Display" example vi (or something similar), but reads in a two-channel TDMS file instead of the generated signal in the example.
-The TDMS file contains a stimulus channel (Dev1/ai0) and a response channel (Dev1/ai1).
2.The program should find the peaks in the stimulus channel and the valleys in the response channel
-Then the .vi will analyze the time lapse from the stimulus generation peak to the response valley to determine reaction time in milliseconds.
3. The threshold for each peak/ valley should be able to be manually adjusted on the waveform graph.
I have attached a .vi with the essentials in place but it needs fixing. The .vi does not detect any peak or valleys in the file. It possibly does not work due to the input not liking TDMS files.
Any suggestions for adjusting the input so that it accepts a TDMS file and correctly finds the peaks/valleys?
-Trij