Replies: 1 comment
-
The issue has been solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am very new to Jspsych and Javascript(just started coding last week). I want to use use the value(eg. px2mm) returned by the virtual chinrest plugin. How can I get the number? I used "var all_data =jsPsych.data.get()" and get an object. In the console, it returns the following. I used all_data.trials[0].px2mm. in the code and it shows "undefined". However, all_data.trials[0].px2mm does shows the right number in the console. How can I correctly get the number returned by the plugin? Thanks
m {trials: Array(0)}
trials: Array(2)
0:
internal_node_id: "0.0-0.0"
item_height_mm: 53.98
item_width_deg: 19.96460930454781
item_width_mm: 85.6
item_width_px: 428.082191780822
px2deg: 21.442052045732122
px2mm: 5
rt: 4442
scale_factor: 0.584
time_elapsed: 4443
trial_index: 0
trial_type: "virtual-chinrest"
view_dist_mm: 243.17
win_height_deg: 36.843488594984706
win_width_deg: 34.88472084689691
[[Prototype]]: Object
1: {rt: 855, stimulus: '\n
If the measurements were done correctly, t…0px; height: 500px; margin: 20px auto;">\n ', response: 0, trial_type: 'html-button-response', trial_index: 1, …}
length: 2
Beta Was this translation helpful? Give feedback.
All reactions