You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jesse Lingeman edited this page Mar 6, 2013
·
2 revisions
Purpose
Write a variable back into the Datavyu database. NOTE: If you do not write a variable back, then no changes made to the variable inside of a Ruby script will be saved back to the database.
Parameters
Name (optional)
Sets the name of the variable being written back into Datavyu
RVariable to write back
The variable that you want to write back to the database.
Examples
# Get the variable from Datavyutrial=getVariable("trial")# Change somethingforcellintrial.cellsifcell.onset == 0cell.change_arg("onset",1000)endend# Now write back the changessetVariable(trial)# Alternatively, you can write it back to a new column, keeping bothsetVariable("modified_trial",trial)