| Reference | Downloads | Github

How to read duration time from a csv file in Builder?

In my experiment, I need to change the stimulus duration in every trial of my for loop. I’ve saved all the duration time in a cvs file. Would you please let me know how can I load the duration from this csv file in the Builder?
I know how to load my images from a csv file, but seems it is more tricky to do the same with the duration.


I put $Duration variable in the Stop text box to load the duration time from the csv file, but it did not work.


I think information read from an input file will be a string by default. To use it as a duration, you will need to convert it to a number, e.g. $float(Duration).