Hi:
The arrays are probably not of the same size because of backlog. There is really no accurate way to record the time when one of lines changed if there is a backlog.
However, we can assume that the lines changed at approximately the same time and so to make the time array and port data array of the same size you can use the scan backlog output to set the for loop count. Inside for loop, you can append the time into the time array.
Please look at the attached VI.
Regards,
Bharat Sandhu
Applications Engineer
National Instruments
Penny