# Datavyu

Datavyu is a free, open-source software that we use to code our participant's behavioral task videos. With Datavyu, you can import participant videos directly into the program so that you can watch while you code in real time.&#x20;

![Datavyu](https://1726103446-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M2spmop2Mtqnexhii4d%2F-M4GpamdHW_LoFlLzlpK%2F-M4LR3BqjPr_bNgizAAC%2FScreen%20Shot%202020-04-07%20at%204.58.35%20PM.png?alt=media\&token=c03a2f7e-2617-450c-8007-446ffaaaa2ef)

Download Datavyu here: <https://datavyu.org/download.html>

{% hint style="success" %}
Before getting started, watch the Datavyu training video in the CISL Box account. This video is approximately 2 hours long.
{% endhint %}

## **Getting started with Datavyu:**

**Scripts:** The easiest and most consistent way to begin coding in Datavyu is to run a script, or a predetermined template for the behaviors for which we are looking. Scripts help to name columns, name variables, and organize the data in a way that facilitates consistency across coders. Datavyu scripts are written in Ruby, an open-source programming language.

To begin, open Datavyu from the applications folder on your computer. You should see this:

![](https://lh4.googleusercontent.com/itQjtkiIB4cGHKzdpKRlACA0nGNZPJn8llVa9i4vdtNVtagM7uHEtcX5eZllhk4bgJqJUXrKi0fjQ-MQk2CU2Y_BlAnf3gW5S6TiibNDpyAw9rmjrtqSDyu0Qu6B4kuqDJDGhef8)

This is the basic layout of Datavyu, and consists of the spreadsheet (top) and the data viewer controller (bottom). The spreadsheet is where you will do your coding - it will eventually contain your columns and point cells. The data viewer controller is how you will watch your videos.&#x20;

![](https://lh4.googleusercontent.com/LZe9oi5F4XOmNldVDtSEjxBL3rXeQTNEoRkJOmZpubGZUt6J0HraI5QDyFKVTUk8ZQxF4mcnTCppxH5y45Hu_5oZWGjzPFMIDkHiXMOCTjAzEoosDdN16az0bCogwM9P32B6PjDs)

The Data Viewer Controller consists of a play button (plays videos at 1x speed), pause button (temporarily stops video), shuttle forward/back (will accelerate or decelerate video speed by ½), jog forward/back (will reverse/move forward a few milliseconds), and a back button (will jump video back by specified amount of time).&#x20;

To add video to your screen, click “add data” in the data viewer controller.&#x20;

![](https://lh3.googleusercontent.com/IRMGsmugGgvz7WG-5WD2WGA4_FOYY5SmcPbMVvwmR5VcN9DkUCfVmUUmbilb-1-mMtvBh2vOLkN8rqp5-NymRgv3kr4TGuwmjbY-bP9aQouRvlJaXX83nmGB1FSwre-bNGGfvjkL)

Select the file you want from Box. Your screen should now look like this:

![](https://lh6.googleusercontent.com/W238PMEOsykOBN_YVHNNQIo9IYli-XRGUeFY9_1gXNYXkkYaeiG_3ctXqi8CeJewP6z-trimiLUKmJxkOKVWc-Y9ZtEKPP_iLNNl5YiGKHMCPO-OQ3_2OtRvcNUlTKhv5NvXPqRZ)

To run a script, you must first download it onto your computer. Return to Datavyu and click the “script” tab on the upper left-hand corner of your screen.

![](https://lh5.googleusercontent.com/oods_z2rRip4ibUb6ys6IJFb-Rl0tEO7LFrkQZFNQigAPm7odv_Okxg0N-7n3K29BaPOEXV0cv6UC58IcqXolsqp35Oxh04TUYf34DEId-qwL9QxatBS3X5fcIoBTWfiZBkGc7pv)

Click ‘Script’ -> ‘Run Script’ and select the .rb file from your downloads folder that corresponds to the tasks that you intend to code. A script box will pop up on your screen and will indicate when the script has finished running.&#x20;

![](https://lh4.googleusercontent.com/C2UZZMY2vjlGVytJa9NmdHEaDfIxozyzbFmsRecqQuBxqa3EE8CVQNDGWN0u3-LfRr3teC_I_VLx1YPkxhL6UM6B0kRFfaRgiPyFJmqUU79S9fBQ3wOTVoOPiuHqF3vEpuemD5B6)

You may close the script box once the script is complete. In your spreadsheet, you should now see several columns titled after the behaviors that will be coded within that column.

{% hint style="info" %}
Each study is looking for different participant behaviors, so scripts will differ depending on the project to which you are assigned. Take care to ensure that you are using the proper script for your lab work.
{% endhint %}

Need more help? Ask Valerie.&#x20;
