# Experiment not saving data from Slider

**URL:** <https://discourse.psychopy.org/t/experiment-not-saving-data-from-slider/8147>\
**Category:** Online experiments\
**Created:** [June 17, 2019, 8:55pm UTC](https://discourse.psychopy.org/t/experiment-not-saving-data-from-slider/8147 "2019-06-17T20:55:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imarchesini](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@imarchesini](https://discourse.psychopy.org/u/imarchesini)\
**Post date:** [June 17, 2019, 8:55pm UTC](https://discourse.psychopy.org/t/experiment-not-saving-data-from-slider/8147/1 "2019-06-17T20:55:57Z")

</div>

URL of experiment: [https://run.pavlovia.org/marchesini.id/comportamientolinguistico\_pilot3/html/](https://run.pavlovia.org/marchesini.id/comportamientolinguistico_pilot3/html/)

Description of the problem:

I can’t see any data from the “slider” component in my .csv files.

There’s this within the code:

```auto
function ideologiaRoutineEnd() {
  //------Ending Routine 'ideologia'-------
  for (const thisComponent of ideologiaComponents) {
    if (typeof thisComponent.setAutoDraw === 'function') {
      thisComponent.setAutoDraw(false);
    }
  }
  psychoJS.experiment.addData('Ideologia', slider.getRating());
  psychoJS.experiment.addData('Ideologia RT', slider.getRT());
  // the Routine "ideologia" was not non-slip safe, so reset the non-slip timer
  routineTimer.reset();
  
  return Scheduler.Event.NEXT;
}

```

In my understanding, it should be saving the data. (The routine ends when you click one of the ratings of the slider, then moves to next routine. It seems to work fine though I can’t see any marker)… But when I open the .csv file there’s no “Ideologia” nor “Idelogia RT” column with the values of slider.getRating and slider.getRT

I’m attaching one .csv files just in case.

[PARTICIPANT\_ComportamientoLinguistico\_pilot3\_2019-06-17\_16h50.53.226.csv](https://discourse.psychopy.org/uploads/short-url/bzMvCa4cRzk20TZzulg9d8ek92k.csv) (17.6 KB)

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [June 18, 2019, 8:52am UTC](https://discourse.psychopy.org/t/experiment-not-saving-data-from-slider/8147/2 "2019-06-18T08:52:37Z")

</div>

Hi @imarchesini, I see the data is not being saved. Your short term solution is to add a loop around the routine and set nRep to 1. This will present the routine once, and your data should save. In the meantime, I will have a look why the data is not being saved in this scenario.
