06-13-2011 04:50 PM
06-14-2011 05:16 PM
06-14-2011 05:50 PM
Hello,
The application that you are working on is a bit unclear. The solution to your problem may be implemented in hardware or software depending on the requirements of your application and how you have setup you analog outputs and digital inputs. Can you specify how you setup your analog output and your digital input? (on demand, finite, continuous)
Eric
06-15-2011 09:52 AM
I imagine attaching the vi might be easier. This vi is called as part of another vi for every trial.
I would prefer having a solution utilized hardware if it is possible.
Thanks for your help.
06-15-2011 11:01 AM
Hello Joes,
I looked over the VI you posted and did not find any digital input task within the VI. Do you have another VI that contains a digital input task?
Eric
06-15-2011 11:06 AM
06-15-2011 11:07 AM
06-16-2011 11:38 AM
Hello Joes,
I want to confirm your application functionality. You want to measure the time between the start of your 10s trial (analog output) and each of the 30 digital lows. Is this a correct interpretation of your application?
Eric
06-16-2011 12:06 PM
06-17-2011 02:56 PM
Hello Joes,
Since you have 0-30 events which you want to measure the time of, it would be easiest to calculate the time in post processing. You can use a start trigger to trigger both the analog output and the digital input. Using the start trigger will synchronize the start time. The high to low transitions can be found in the recorded data and the time can be calculated using the position in the data array and the delta time between samples.
Eric