Multiple questions about accessing data files


Author
Message
Karsa
Karsa
Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)
Group: Forum Members
Posts: 2, Visits: 4
Dear Inquisit Team!

I'm working on integrating multiple cognitive tests, including one written for Inquisit4, for which I would need to access test data basically in real time.
Is there any way to programmatically access data files (or the raw data) via an API or an web service endpoint?
If not, is it possible in an Inquisit app to upload the data files not (only) to the millisecond.com server, but to a custom web server (i.e. the web server hosting the experiment)?
The documentation states that "by default, Inquisit Web saves data files to the Inquisit web server where you can log in to your Millisecond account and download the files", but I can't seem to find any information about overriding this default behaviour.

Thank you for your reply in advance,
Karsa

Tags
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: 103K
If you want your data files saved to a different location / server than the millisecond.com server, there are several options. You can use FTP. See the language reference for the <data> element for details. Excerpt:

"The file command specifies where Inquisit should record the data. The data file may be written to the local drive, a network share, an ftp site, or a web URL.

If a web URL is specified, the data is posted to the specified web address via HTTP POST. The web server can then extract the data from the POST request and save it. If you specify an http address, data is sent to the web server in plain text using the standard http protocol. If you specify an https address, the data is encrypted using Secure Sockets Layer (SSL) before being sent over the wire, which provides protection from packet sniffers. Since data can be posted and later retrieved from the data web service at millisecond.com (this is the default behavior for Inquisit Web), it should rarely be necessary to set up your own web server to handle web data collection.

If the data location requires login credentials, the user name and password can be specified using the userid and password commands.

For Inquisit Web, data is by default posted back to the millisecond.com web server via Secure Sockets Layer (SLL). For Lab, the data is saved to a *.iqdat file in the directory as the script."

Example:

<data>
/ userid = "me"
/ password = "secret"
/ file = "ftp://foo.com/datafiles/"
</data>

You can also sue HTTP, but then you'd have to do a fair amount of web programming to enable your web server to handle the POST request, extract the data from it, write it to disk etc. You can find some additional information about that here:

https://www.millisecond.com/products/inquisit4/webhosting.aspx

For ease of use, I'd recommend using FTP.

Karsa
Karsa
Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)Respected Member (311 reputation)
Group: Forum Members
Posts: 2, Visits: 4
Thank you for the fast reply, I seem to have missed this in the docs. :)

You can also sue HTTP, but then you'd have to do a fair amount of web programming to enable your web server to handle the POST request, extract the data from it, write it to disk etc.


Haha, but that is exactly what I want to do: parse and process the data and write it to a database. :)

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search