Quantcast
Channel: A question and answer site for all things relating to Datavyu. - latest questions
Viewing all 185 articles
Browse latest View live

Lost Data (Saving Problem)

$
0
0

Hello, we have recently been experiencing a problem with saving our Datavyu files. We keep our documents on both the Desktop and a shared server. Whenever we modify a file, we found that saving the document as a new file ("Save as") and replacing the old document seemed to work. However, recently we have found that our data is disappearing. No error messages appear when saving the files so we are left to assume that the file has saved. It is not until we quit out of Datavyu do we find that the file did not actually save (on either the desktop or groupshare). How do we fix this from happening? We do not want to continue our studies until we know we will not lose the data. Thank you


Lost frames at end of videos

$
0
0

Greetings once again,

We've noticed lately that all of our videos which we add to the Datavyu program have at least several frames missing from the end of the video, compared to when it's viewed in an outside media player.

Is this typical? Should we start exporting our videos with a second or two of dead space at the end?

Many thanks,

-Ad

.wmv files on mac mavericks

$
0
0

Hi,

I'd like to use Datavyu to code .wmv files on a mac os x 10.9 (mavericks). However, it doesn't open the .wmv files (other types such as .mov work fine). I'm aware it's possible to convert files, but if there's a way to open .wmv files that would save me a lot of converting time.

Thank you in advance! Kind regards, Carlijn

Script to add cells to a column

$
0
0

How do I write a script to add cells to a column in places based off cells in another column? For example, I want to add cells in column 2. I want cells to only be added in places corresponding to when cells in column 1 had "s" for the code. Could anyone help with this?

quicktime on mac with yosemite

$
0
0

What is the best option for video playback on a Mac running Yosemite? I understand VLC is not supported fully, but I see no way to add data with Quicktime. Even with Java and Quicktime 7 installed there is no way to "custom install" quicktime on a mac as you can on a PC, so the Java libraries just don't exist. For reference, when trying to add data, I get the errors: "Could not open data source: Could not initialize class quicktime.QTSession" and "(same as previous)...class quicktime.io.QTFile"

I would prefer not to use VLC since I need the most up-to-date version of VLC for another project and since it is not fully implemented in Datavyu yet, but at the moment that seems to be the only option for video playback.

Any advice?

(Also, forgive me if this question has been asked elsewhere. The search function on this forum returns 0 results for any and all of my searches with "questions" selected.)

How to script automatic off-set to on-set times

$
0
0

We're trying to create a script that automatically creates trial off-sets of the same duration (always 30 sec) from the trial on-sets we have already coded. We've come up with a pretty rudimentary variation on a script from the Datavyu pre-conference to SRCD, but we can't seem to figure out how to make it handle all 10 trials on our sample video. Eventually we'd like it to be flexible enough to handle any number of trials. This is probably painfully simple and we are just missing it - please help! Anyhow here is our non-functional script (Trial = column of on-set codes):

verbose = 1

time_to_add = 30

begin

time_to_add_ms = time_to_add * 1000

puts "Starting script..." if verbose > 0

puts "Getting cells" Trial_var = getColumn("Trial") first_cell = Trial_var.cells[0] second_cell = Trial_var.cells[-8] third_cell = Trial_var.cells[-7] fourth_cell = Trial_var.cells[-6] fifth_cell = Trial_var.cells[-5] sixth_cell = Trial_var.cell[-4] seventh_cell = Trial_var.cell[-3] eighth_cell = Trial_var.cell[-2] last_cell = Trial_var.cells[-1]

puts "Changing cells" first_cell.change_arg("offset", first_cell.onset + time_to_add_ms) second_cell.change_arg("offset", second_cell.onset + time_to_add_ms) third_cell.change_arg("offset", third_cell.onset + time_to_add_ms) fourth_cell.change_arg("offset", fourth_cell.onset + time_to_add_ms) fifth_cell.change_arg("offset", fifth_cell.onset + time_to_add_ms) sixth_cell.change_arg("offset", sixth_cell.onset + time_to_add_ms) seventh_cell.change_arg("offset", seventh_cell.onset + time_to_add_ms) eighth_cell.change_arg("offset", eighth_cell.onset + time_to_add_ms) last_cell.change_arg("offset", last_cell.onset + time_to_add_ms)

setColumn("newTrial", Trial_var)

rescue StandardError => e puts e.message puts e.backtrace end

Default spreadsheet

$
0
0

How do you make a spreadsheet that you can use as a default template? - i.e., I have multiple videos files, I need to code each individually, but I want to use the same set of codes for each.

Thank you!

Track Timing Information could not be calculated

$
0
0

I'm trying to open videos to work on coding in Datavyu and I finally got it to allow me to actually download the files (before I was getting the error message saying the Quicktime Java Libraries were not found), but now once I open the file it says that the track timing information could not be calculated. I have tried two different forms of the video files too, including .mov and .mpg. I'm not sure what I should try to fix the error other than perhaps uninstalling then reinstalling the quicktime player.


Error message: Could not open data source

$
0
0

I keep receiving the message: "Could not open data source: Non-Java exception raised, not handled! (Original problem: ***-[__NSArrayM objectAtIndex:]: index 3 beyond bounds [0 ..1]) when adding data. Not quite sure what this means or how to resolve.

What is the best way to integrate looking durations with language markers?

$
0
0

For my study, I'm having my coders code every look during a pre-designated period of time, and then I'm having them code the onset and offset of different language components. I'm interested in seeing how the looking behaviors correspond to the language markers. Is there a script that can help me do that? Or is there a similar script that I can modify to answer this question from my data?

Is there a way to extract both multiply nested and non-nested data in one file?

$
0
0

For my study, I have a few columns that are all nested within one main one as well as additional columns that are not nested at all. For example, if I have a test trial type column with a cell that goes from 0:00-1:00, I have two separate columns (one for looks and one for language markers) that are both nested, although separately, within that first column's time stamp. Is there a way that I can extract both sets of nested data using one script? Right now I have two scripts and am running them separately and copying/pasting the information manually, so I'm hoping there's a way to modify my scripts to reduce the risk for error.

Relatedly, I also have columns that aren't nested; for example, I have a column that tells me what object the child chose on any given trial. Is there a way to extract that information along with the nested data above so that it is all in one output file?

exporting data for time series or contingency analyses

$
0
0

Does anyone have example scripts of suggestions for how to evaluate the contingency between behaviors, or to analyze moment-to-moment changes in behavior? We have babies and moms playing with toys; we code on- and off-sets of target behaviors (baby touches toy, mom touches toy, mom labels toy, baby mouths toy...), and can extract those episodes.

But, is there some way to extract the data in a way that we can see what happened over time?

Thanks

importing physiological data

$
0
0

I'm interested in linking and viewing synchronized video and physiological datafiles. In the datavyu manual, it says that a plug-in for doing so will be available at some point. Do you anticipate that being done soon?

As a workaround, we are using Matlab to create AVI movies of physiological data. It works, but this solution is slow and cumbersome. And it is not possible to manipulate variables and axes on the fly.

It would be great if it were possible to plot data from text files within datavyu.

Temporal Alignment does not seem accurate

$
0
0

When I have the temporal alignment on it is still not accurate in the alignment of the cells between columns. When I am visually scanning for reliability it looks like the offsets are really different, but if you look at the offset they are within a few 100ths of a second. In other locations it looks like the offsets are very close to each other, but the offsets are a full second off. This makes it really difficult to scan the sheet to review the relationship between columns.

Any suggestions on how to fix this?

Video path change

$
0
0

Hi- I had my videos connected to the datavyu file. They were synched and coded within the file. However, do to some lab reorganization (folders were moved) the video's path changed and now are no longer attached to the datavyu file. Is there anyway to correct the video path and reconnect the videos or do I have to upload them again and recode? Thank you.


Reliability scripting question

$
0
0

Our study is interested in the time that a mom talks to a child in a one hour video. We have two coders coding 100%, and each coder codes whenever the mom starts and stops talking. However, a coder could have a discrepancy in onset or offset time or miss some of the talking resulting in a difference in ordinal number.

We have tried the reliability script given on the website, but this didn’t work because there may be a different number of cells. We tried the mutually exclusive script, but do not think this is giving the information we need. We are wondering if there is a script that will compare cells between two columns based on a more flexible time window- that would compare two cells if, for example, the onset time is within 100 milliseconds of each other.

There was a similar question titled “more complex interrater reliability question” but this did not quite answer our question.

restructuring export by condition

$
0
0

Hello,

I have set up my spreadsheet in Datavyu to code three dependent measures in one column called help. This way, each cell provides all of the information for one measure. The cells include codes for "event"; which is the type of measure, "yesno", to describe if the participant helped or not; and "how", to describe how the participant acted.

I've managed to create a script to export all of the data, and the data appears in time order as expected. However, I would like to structure the file so that all of the data associated with a specific measure occurs in the same group of columns (all of the measures for measure 1 are in the first columns, regardless of the order the participant completes the measures). Is this possible?

I've tried to restructure my script using if/else statements, but it returned a blank .csv file. I tried to restructure it again, and I received a "No Methods" error (script below). Do you have any ideas?

Thanks! Amanda

require 'Datavyu_API.rb' begin out_file = File.expand_path("~/Desktop/SH043015.csv") out = File.new(out_file,'w') filedir = File.expand_path("~/Desktop/SH Coding/") filenames = Dir.new(filedir).entries for file in filenames if file.include?(".opf") and file[0].chr != '.' puts "Please hold..." + filedir+file $db,proj = load_db(filedir+ "/" +file) puts "YAY! Videos loaded correctly :)"

  subjinfo = getColumn("Subj_Info")
  help = getColumn("help")
     for scell in subjinfo.cells
        out.write(scell.subj+ ","+ scell.sex + "," + scell.age + "," + scell.first + ",")
       for hcell in help.cells
           out.write(hcell.onset.to_s[0] + ", " + hcell.offset.to_s[0] + ", " + hcell.event[0] + ", " +  hcell.yesno[0] + ", "  + hcell.how[0] + ", ")
           if scell.first == "n"
              out.write(hcell.onset.to_s[1] + ", " + hcell.offset.to_s[1] + ", " + hcell.event[1] + ", " +  hcell.yesno[1] + ", "  + hcell.how[1] + ", "+ 
                 hcell.onset.to_s[2] + ", " + hcell.offset.to_s[2] + ", " + hcell.event[2] + ", " +  hcell.yesno[2] + ", "  + hcell.how[2] + ", ")
           else
              out.write(hcell.onset.to_s[2] + ", " + hcell.offset.to_s[2] + ", " + hcell.event[2] + ", " +  hcell.yesno[2] + ", "  + hcell.how[2] + ", "+ 
                 hcell.onset.to_s[1] + ", " + hcell.offset.to_s[1] + ", " + hcell.event[1] + ", " +  hcell.yesno[1] + ", "  + hcell.how[1] + ", ")
        end
     end
  end
  out.write("\n")

end puts "Done!!!" end end

Simple Summary statistics from spreadsheet?

$
0
0

Hello There,

I have altered the data export script in the tutorials (http://datavyu.org/user-guide/api/tutorials/export-data-using-scripts.html) for my own needs however there are some additional things that I want to achieve with an initial export and I am sure that other members have found a way to accomplish it. I have looked around on the internet but I am still wondering if there is a simple line(s) of code that I can add so that the columns of my data set have titles of my choosing?

In addition to coding the onset and offset of particular events, I am also coding where (and for how long) a participant is looking at specific locations during these events. Is there a template or instructions for how to export quick summaries of both the frequency (count) and average time spent looking at a particular location during an event?

In general, the code from the tutorial exports data in "long format" which is useful, but I would like to easily convert this to a "wide format" that contains summary statistics for each participant (but will start with a single participant to make sure that the script is operating correctly).

If it is helpful, I can send my spreadsheet and ruby code that I have written, although I am not seeing how to place an attachment here...

Any help is greatly appreciated!

empty exported .csv files

$
0
0

When I export a Datavyu spreadsheet using the "Export File by Frame" option in the File menu, the resultant .csv files frequently have all the appropriate column headings, but the rows are empty.

Pattern-based validation of column/code

$
0
0

Greetings,

We'll be utilizing the checkValidCodes function for validating most of the codes in our columns.

I'm wondering if it's also possible to do pattern-based validation using regular expressions? For example, suppose I'd like to ensure that every value in a particular column/code ends with a particular punctuation mark (e.g., /\.\!\?$/).

If you have any example ruby scripts that we could use as a template for this type of validation, we'd be most grateful!

Viewing all 185 articles
Browse latest View live