Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 2 of 2

Thread: How to Use Empirisoft's Digital Analogue Slider

  1. #1
    Join Date
    Nov 2005
    Posts
    294

    How to Use Empirisoft's Digital Analogue Slider

    This quick tutorial will discuss the specifications of our Digital Analogue Slider (c). Included in the files below are a sample MediaLab script, which has been tested in our shop for correct operation.

    Warning

    1. Currently DirectRT does not support reception of long data strings. Though we're working on an update, it's not ready for publication yet. So these instructions are for MediaLab only.

    This system was designed to allow researchers to record the position of an analog slider at pre-defined instances in time. This data is transmitted to the computer through the standard serial port. USB-Serial converters may be used if you don't have a hardware serial port.

    System Specifications

    1. Power Supply is 9-12 volts DC, center positive, 200 mA or greater.

    2. Serial Data Specifications: 19,200 baud, 8 data bits, 1 stop bit, no parity, no handshaking. Data is transmitted to the computer on pin 2 of the serial cable. Data is received from the computer on pin 3 of the serial cable. Pin 5 is ground. No other pins are used.

    3. Position Snapshot interval is adjustable between .1 seconds and 999 seconds.

    Operation

    When power is first applied to the system, the string "* * * Empirisoft * * *" is transmitted to the host computer. Successful reception of this string means that the communication link is stable and the system is operating properly. You can verify the reception of this string by using a terminal program (for example, RealTerm or HyperTerm) if you'd like.

    The system responds to commands contained within curly brackets: {}.

    Start Capture

    To activate the system, send the command {X}

    where X is the number, in tenths of a second, that the position snapshots are to be taken.

    For example,

    {1} will record position information every 1/10 of a second

    {5} will record position information at half-second (5/10) internals

    {10} will record position information at 1 second (10/10) intervals

    The system, after receiving a proper command, will reply by transmitting

    {Captured @ X.Xs ticks
    and will then transmit a stream of data similar to this one:

    00:00.1 0
    00:00.2 0
    00:00.3 0
    00:00.4 0
    00:00.5 0
    00:00.6 1
    00:00.7 5
    00:00.8 6
    00:00.9 7
    00:01.0 9
    00:01.1 13
    00:01.2 11
    00:01.3 10
    00:01.4 9
    00:01.5 8
    00:01.6 7
    00:01.7 6
    00:01.8 6
    00:01.9 6
    00:02.0 5
    00:02.1 4
    00:02.2 3
    00:02.3 1
    00:02.4 0
    00:02.5 0
    The system also contains two pushbuttons.

    Pressing either of the buttons at the instant a snapshot is taken will result in the following data transfer

    MM:SS.T P B1
    or

    MM:SS:T P B2
    Where MM equals minutes, SS equals seconds, T equals tenths of a second and P equals the fader position.

    Stop Capture

    To stop the capture, send the string

    {*}
    Which is an asterisk enclosed by curly braces.

    The system will reply with

    Stopped
    }
    Working with MediaLab

    MediaLab v2006 has been programmed specifically to work with this fader system. The data transmitted by the Digital Analogue Slider is saved in a special text file, provided that the file

    comport.txt

    is included in the same file as the experiment you're running. I've included a copy of a working comport.txt file below. Here's the text included in mine:

    comPort, baudRate, parity, dataBit, stopBit
    5,19200,n,8,1

    '5' represents the serial port I'm using. This number may change, depending on your computer's hardware.

    So basically, all you need to do is start the Digital Analogue slider immediately before you present the target video, picture or text. Then, stop the slider when the subject has finished viewing the information. The captured slider position data won't be included in the main data file generated by MediaLab. Rather, it is found in a separate text file called 'comdata.txt' which you can open and analyze using Wordpad, Word or any similar text editor.

    If you have any questions at all, please reply to this thread.

    Thanks!

    John
    Empirisoft Hardware
    Last edited by JEC; 07-07-2007 at 09:19 PM.

  2. #2
    Join Date
    Nov 2005
    Posts
    294

    Sample MediaLab Files Here

    Attached below are the following:

    * MediaLab Experiment File
    * MediaLab Questionaire File
    * comport.txt file

    * sample comdata.txt file, showing output from a test session.
    Attached Files Attached Files

Similar Threads

  1. Make participant move slider before pressing "continue"
    By JBeaudry in forum MediaLab Older Versions: How Do I...
    Replies: 6
    Last Post: 10-06-2010, 04:07 PM
  2. The Inner Workings of Empirisoft's DirectIN Keyboards...
    By JEC in forum Hardware: How Do I...
    Replies: 2
    Last Post: 04-03-2007, 04:41 PM
  3. Slider in version 2004?
    By baruche in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 03-20-2006, 11:34 AM
  4. Extended Analogue Slider
    By JEC in forum Hardware: Version History
    Replies: 0
    Last Post: 01-05-2006, 04:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •