# Onset/offset times are not saved online

**URL:** <https://discourse.psychopy.org/t/onset-offset-times-are-not-saved-online/22738>\
**Category:** Online experiments\
**Created:** [May 3, 2021, 12:29pm UTC](https://discourse.psychopy.org/t/onset-offset-times-are-not-saved-online/22738 "2021-05-03T12:29:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mykolas\_gudaitis](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mykolas_gudaitis/32/14848_2.png) [@mykolas\_gudaitis](https://discourse.psychopy.org/u/mykolas_gudaitis)\
**Post date:** [May 3, 2021, 12:29pm UTC](https://discourse.psychopy.org/t/onset-offset-times-are-not-saved-online/22738/1 "2021-05-03T12:29:18Z")

</div>

URL of experiment: [garsiniss [PsychoPy]](https://run.pavlovia.org/mykolasss/garsinis_2/html/? __pilotToken=c20ad4d76fe97759aa27a0c99bff6710&__ oauthToken=a8d4af564284394dedf2a3955a681a848e926235b36132908511a2b11f6595a5)

Hello, I’m doing a change-detection experiment, I just checked that onset/offset times are not saved in the .csv files, though I checked the saving box in the builder. Is there any way to get them? I don’t need the exact times, just need to know which of the four sounds I used was played in which trial. Thank you!

---

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [May 4, 2021, 8:35am UTC](https://discourse.psychopy.org/t/onset-offset-times-are-not-saved-online/22738/2 "2021-05-04T08:35:56Z")

</div>

Hello,

you posted a pilot link. Pilot links are only valid for one hour. It is better to post a link to your repository and making it public or to post a toy version of your experiment. Then others might determine what is going wrong.

You could save the name of sound-file1 by adding some code in a code-element (end routine tab).

```auto
thisExp.addData('soundfile1', soundfile1)

```

Best wishes Jens

---

<div class="post-metadata">

**Author:** ![mykolas\_gudaitis](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mykolas_gudaitis/32/14848_2.png) [@mykolas\_gudaitis](https://discourse.psychopy.org/u/mykolas_gudaitis)\
**Post date:** [May 5, 2021, 10:50am UTC](https://discourse.psychopy.org/t/onset-offset-times-are-not-saved-online/22738/3 "2021-05-05T10:50:33Z")

</div>

I already have all the participant results, so it’s a bit too late. But I managed to find a solution, as I don’t need the exact onset value, I just need a few additional columns with any sound onset values, as long as they’re in the same places as they should be. So I just created same experiment, but added code components with the code that you provided and just appended those additional sound onset columns from the second experiment result to every participant data .csv file. The explanation may sound complicated, but hope it helps anyone who may encounter a similar problem. Thank you!
