# Repeated variable values in data file

**URL:** <https://mworks.discourse.group/t/repeated-variable-values-in-data-file/461>\
**Category:** Support\
**Created:** [March 22, 2016, 6:52pm UTC](https://mworks.discourse.group/t/repeated-variable-values-in-data-file/461 "2016-03-22T18:52:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [March 22, 2016, 6:52pm UTC](https://mworks.discourse.group/t/repeated-variable-values-in-data-file/461/1 "2016-03-22T18:52:34Z")

</div>

Hi Chris,

I noticed that in both of my psychophysics experiments yesterday, there seemed to be more completed trials than I programmed (607 and 606 vs. 600). Looking at the datafiles, I noticed that there were points where all of the variables were repeated several times in a row. I’m pretty sure this was due to me connecting from a remote client, as the repeats are around the time that I connected to check in. Is this known behavior?

Thanks,  
Evan

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [March 22, 2016, 7:16pm UTC](https://mworks.discourse.group/t/repeated-variable-values-in-data-file/461/2 "2016-03-22T19:16:45Z")

</div>

Hi Evan,

> Looking at the datafiles, I noticed that there were points where all of the variables were repeated several times in a row. I’m pretty sure this was due to me connecting from a remote client, as the repeats are around the time that I connected to check in. Is this known behavior?

Yes, that’s expected behavior when a new client connects, similar to the [repeated events at the beginning of the data file](https://mworks.discourse.group/discussions/questions/520). To track the number of successful trials, it’d probably be best to store an explicit count that’s incremented on success, rather than counting “done” events in your data file (or something similar).

Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 10:06pm UTC](https://mworks.discourse.group/t/repeated-variable-values-in-data-file/461/3 "2022-07-19T22:06:09Z")

</div>

Closed on July 19, 2022, 10:06pm UTC


