Trying to Capture Raw & Summary Data in a Subfolder


Author
Message
ranascavage
ranascavage
Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)
Group: Forum Members
Posts: 6, Visits: 11
Hi, I'm working with a task where I'd like the captured data to be stored in a sub "Data" folder.
The original script saves both the raw data and summary data in the root directory just fine, but when I try to specify the Data subfolder, only one file gets created (in the Data subfolder). 
What am I doing wrong?


Script for it to put both files in the root directory: 

********************
raw data
********************

<data>
/ columns = (build, computer.platform, date,time,subject, group, blockcode, blocknum, values.blocknumber, expressions.blocknumber,
trialcode, trialnum, values.trialnumber, expressions.trialnumber,values.stimulus,values.signal,values.correct,
response, values.response,values.rt, values.ns_ntotal, values.ss_ntotal, values.ssd,expressions.p_rs,expressions.ssd,
expressions.ssrt,expressions.sr_rt,expressions.ns_rt,expressions.ns_hit,expressions.miss,
expressions.z_score,expressions.p_value)
/ separatefiles = true
</data>

********************
summary data
********************

<summarydata>
/ columns = (script.startdate,script.starttime,script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed,
expressions.p_rs,expressions.ssd,expressions.ssrt,
expressions.sr_rt,expressions.ns_rt,expressions.ns_hit,expressions.miss,
expressions.z_score,expressions.p_value, expressions.p_debug)
/ separatefiles = true
</summarydata>

-------------------

Script for it to only create 1 file:

********************
raw data
********************

<data>
/ columns = (build, computer.platform, date,time,subject, group, blockcode, blocknum, values.blocknumber, expressions.blocknumber,
trialcode, trialnum, values.trialnumber, expressions.trialnumber,values.stimulus,values.signal,values.correct,
response, values.response,values.rt, values.ns_ntotal, values.ss_ntotal, values.ssd,expressions.p_rs,expressions.ssd,
expressions.ssrt,expressions.sr_rt,expressions.ns_rt,expressions.ns_hit,expressions.miss,
expressions.z_score,expressions.p_value)
/ separatefiles = true
/ file = ".\Data\"
</data>

********************
summary data
********************

<summarydata>
/ columns = (script.startdate,script.starttime,script.subjectid, script.groupid, script.elapsedtime, computer.platform, values.completed,
expressions.p_rs,expressions.ssd,expressions.ssrt,
expressions.sr_rt,expressions.ns_rt,expressions.ns_hit,expressions.miss,
expressions.z_score,expressions.p_value, expressions.p_debug)
/ separatefiles = true
/ file = ".\Data\"
</summarydata>

ranascavage
ranascavage
Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)
Group: Forum Members
Posts: 6, Visits: 11
Also, it looks like the summary data line is being appended to the end of the one data file that's being created (instead of being used for it's own file)
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
ranascavage - Friday, January 20, 2017
Also, it looks like the summary data line is being appended to the end of the one data file that's being created (instead of being used for it's own file)

Try specifying different names for the two respective files in addition.

<data>
...
/ file = ".\Data\rawdata.iqdat"
</data>

<summarydata>
...
/ file = ".\Data\summarydata.iqdat"
</summarydata>
ranascavage
ranascavage
Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)
Group: Forum Members
Posts: 6, Visits: 11
Dave - Friday, January 20, 2017
ranascavage - Friday, January 20, 2017
Also, it looks like the summary data line is being appended to the end of the one data file that's being created (instead of being used for it's own file)

Try specifying different names for the two respective files in addition.

<data>
...
/ file = ".\Data\rawdata.iqdat"
</data>

<summarydata>
...
/ file = ".\Data\summarydata.iqdat"
</summarydata>

Unfortunately it then gives two "Unable to access the data file at ".\Data\Test_rawdata.iqdat". Verify this is a valid path" errors (the other error being for the summary data file).
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
ranascavage - Friday, January 20, 2017
Dave - Friday, January 20, 2017
ranascavage - Friday, January 20, 2017
Also, it looks like the summary data line is being appended to the end of the one data file that's being created (instead of being used for it's own file)

Try specifying different names for the two respective files in addition.

<data>
...
/ file = ".\Data\rawdata.iqdat"
</data>

<summarydata>
...
/ file = ".\Data\summarydata.iqdat"
</summarydata>

Unfortunately it then gives two "Unable to access the data file at ".\Data\Test_rawdata.iqdat". Verify this is a valid path" errors (the other error being for the summary data file).

Hmm... Not sure. Would either specifying the full path (not a relative path), i.e.

/ file = "d:\task\data\raw.iqdat"
and
/ file = "d:\task\data\summary.iqdat"

respectively be an option?

Or, alternatively, suppose you have the following folder structure
/task/task.iqx
/data/
i.e. /data/ is not a subfolder under task but on the same level.

Then it should be possible to specify

<data>
...
/ separatefiles = true
/ file = "..\data\raw.iqdat"
</data>

<summarydata>
...
/ separatefiles = true
/ file = "..\data\summary.iqdat"
</summarydata>

(example attached)

Attachments
example.zip (252 views, 2.00 KB)
ranascavage
ranascavage
Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)Partner Member (984 reputation)
Group: Forum Members
Posts: 6, Visits: 11
Dave - Friday, January 20, 2017
ranascavage - Friday, January 20, 2017
Dave - Friday, January 20, 2017
ranascavage - Friday, January 20, 2017
Also, it looks like the summary data line is being appended to the end of the one data file that's being created (instead of being used for it's own file)

Try specifying different names for the two respective files in addition.

<data>
...
/ file = ".\Data\rawdata.iqdat"
</data>

<summarydata>
...
/ file = ".\Data\summarydata.iqdat"
</summarydata>

Unfortunately it then gives two "Unable to access the data file at ".\Data\Test_rawdata.iqdat". Verify this is a valid path" errors (the other error being for the summary data file).

Hmm... Not sure. Would either specifying the full path (not a relative path), i.e.

/ file = "d:\task\data\raw.iqdat"
and
/ file = "d:\task\data\summary.iqdat"

respectively be an option?

Or, alternatively, suppose you have the following folder structure
/task/task.iqx
/data/
i.e. /data/ is not a subfolder under task but on the same level.

Then it should be possible to specify

<data>
...
/ separatefiles = true
/ file = "..\data\raw.iqdat"
</data>

<summarydata>
...
/ separatefiles = true
/ file = "..\data\summary.iqdat"
</summarydata>

(example attached)

Hmmm, it looks like a full (UNC) path works fine. Weird, I wonder why the usual didn't.
Thanks for the suggestion!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search