WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 07-04-2019, 12:51 PM
hannahapz hannahapz is offline
Join Date: Apr 2018
Posts: 22
Timer and Visibility Issue

This is my goal:

1) A appears for 500 msec (this is the cue)
2) Inter-stimulus interval of 650 msec (ISI)
3) B appears for 500 msec (this is the main stimulus) and then disappears

Right now, I have 1) and 2) successfully coded, but B doesn't want to go away (it stays on-screen).

When I try to time B to become invisible, it never appears in the first place. Below is the code representing this situation. The main_function calls the Timer/Visibility functions. A and B represent the cue and stimulus object nodes, respectively.

def cueshow():
    cue.visible(viz.ON) #make target visible
    starttimer(0, 0.5) # cue is visible for 500 msec
    callback(viz.TIMER_EVENT,CueTimer) #then make cue invisible
def CueTimer(num):
def stimshow():
    starttimer(0, 1.15) # wait 1.15 seconds (500 msec of when cue first appears + 650 msec ISI)
    callback(viz.TIMER_EVENT,StimTimer) # then make target visible

def StimTimer(num):

def stimhide():
    starttimer(1, 1.65) # wait 1.65 seconds until turning stimulus off
def StimHideTimer(num):

def main_function():
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 08:26 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC