Hi mi007, here is a small example of a VI that also measures the elapsed time, I added a button, to make it simple I am displaying in one indicator the enlapsed time of the event, but when the event happen just the total elapsed time is sent to a different indicator. This value is the one you could send to your excel file.
The problem your having your current vi, saves all the values to file and when you serach for the max it will give you the max of the file not the maximun of the current event. If you want to continue using your vi, what you would need to do is place the write to file function inside of the case structure so it only saves values when the actual event happens. Also you dont need to change it into an array and then into a matrix to store it.
Best Regards
Benjamin C
