Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
yzeyang

Junior Member
Registered:
Posts: 9
Reply with quote  #1 
Hi all,

Is it exclusive in the same timing file that we can only either use runtime_v1 or runtime_v2 specific functions?

For example, if I want to use "toggleobject" for the part 1 of my trial and then create a TimeCounter(null_) for part 2 of the trial, an error shows saying "Undefined function or variable: 'null_' ". 

However, when I run each of the segment separately both of them works fine. 

Is my understanding correct that we will need to stick to either the toggleobject or the scene structure in one file?

Thanks a lot.
Best,
Zeyang
0
Jaewon

Administrator
Registered:
Posts: 708
Reply with quote  #2 
Yes. You can't mix toggleobject and eyejoytrack with create_scene and run_scene in the same timing script.
0
yzeyang

Junior Member
Registered:
Posts: 9
Reply with quote  #3 
Quote:
Originally Posted by Jaewon
Yes. You can't mix toggleobject and eyejoytrack with create_scene and run_scene in the same timing script.


Hi Jaewon,

Many thanks.

What would be the best practice to "display a image -> once it was displayed -> keep the image displayed -> call a different adapter (e.g. to display another image)"?

This was why I was trying to use toggleobject together with adapters.

Thank you!
Best,
Zeyang
0
Jaewon

Administrator
Registered:
Posts: 708
Reply with quote  #4 
If you are going to just display images, there is no need to use adapters. Use toggleobject.

FYI, run_scene does the same thing as toggleobject. See how to add the task objects to the scene below.

-----
image_object = 1;  % TaskObject#1
movie_object = 2;  % TaskObject#2

sound_object = 3;  % TaskObject#3
stim_object  = 4;  % TaskObject#4
ttl_object   = 5;  % TaskObject#5

tc = TimeCounter(null_);
tc.Duration = 1000;
scene = create_scene(tc,[image_object movie_object sound_object stim_object ttl_object]);
run_scene(scene);
idle(0);  % clear screen
-----

0
yzeyang

Junior Member
Registered:
Posts: 9
Reply with quote  #5 
Quote:
Originally Posted by Jaewon
If you are going to just display images, there is no need to use adapters. Use toggleobject.

FYI, run_scene does do the same thing as toggleobject. See how to add the task objects to the scene below.

-----
image_object = 1;  % TaskObject#1
movie_object = 2;  % TaskObject#2

sound_object = 3;  % TaskObject#3
stim_object  = 4;  % TaskObject#4
ttl_object   = 5;  % TaskObject#5

tc = TimeCounter(null_);
tc.Duration = 1000;
scene = create_scene(tc,[image_object movie_object sound_object stim_object ttl_object]);
run_scene(scene);
idle(0);  % clear screen

-----



Many thanks Jaewon.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.