#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

# frankanayet

Username
frankanayet
Joined
Visits
689
Last Active
Roles
Member
Thanked
0

## Comments

• Thanks I got everything working (including the color) but now I need to use RGB code to make several shades of gray following a formula... How can I do that? Also, I drew some lines on the sketchpad, and calculate other lines using pixel count. W…
Comment by frankanayet May 2013
• Also... I wan tot calculate the natural logarithm of a number I tried using math.log, but didn't work...
Comment by frankanayet May 2013
• Sorry for reposting but I forgot to include that I would like to include the color of the rectangle en RGB system so how can I include that in that kind of syntax?
Comment by frankanayet May 2013
• Well trial_duration IS taking into account the variable jitter time isn't it? Therefore it should not matter that some trials are really long. The calculation of trial_duration should take that into account. The sense in which the experiment is no…
• Well, so the main reason why I am interested in the whole padding time is to make sure that the trial lasts the amount of time that I wanted to last. As I said previously the problem I have is that small delays start to accumulate over trials and by…
• Hi Sebastiaan, I don't understand what is wrong with the setup that I have. I tried to do what we were discussing and it seems to work for a while but then suddenly a stimulus stays on the screen for like 6 seconds when they all should stay on the …
• Thanks worked great!
• A couple of questions... what is exactly hapenning during sleep? Is there a sketchpad being shown (with a fixation for example? or just a blank screen? At the end of my trial I show a feedback that lasts for (duration - RT) Is there a way to …
• Thank you very much! This helped a lot I have a couple of questions though: 1a. If I leave the mouse_response item it seems I need 2 clicks to get a response. To solve this I got rid of the mouse_response and got the position and time from the…
• Thanks I think this is exactly what I wanted! However, in my case there is usually a delay so time_to_pad would probably be a negative number most of the time.
• So why did self.experiment.items['Trial_sequence'].count = block_index * 57 did the work of bringing me back to the first trial of the block, but I can't go back to the instructions of that block? My question is how come I can go to the first t…
Comment by frankanayet May 2012
• Ok... I finally got your skip suggestion. I think it is the simpler way to solve the problem but it doesn't quite work for my code because I randomly generate the order of conditions inside the script so if I restart the experiment and skip blocks t…
Comment by frankanayet May 2012
• Hi Sebastiaan, your suggestion kind of did the trick and I could reset the trial number to the first trial of the block. However what I really want is to start the block sequence from the begining. What I did was: if self.get('response') == '…
Comment by frankanayet May 2012
• Hi Sebastiaan, I hadn't picked up on this for a while... I tried a simple thing like this: if self.get('response') == (my_response): self.experiment.set('count_Trial_sequence', (number for first trial of block)) However, since …
Comment by frankanayet May 2012
• Hi Sebastiaan, the fix worked well. Thanks!
• Hi Sebastiaan, actually in mac the entire program actually crashes, this bug was probably one of the reasons that caused it to crash but I only received this message when I tried my experiment on the windows side.
• Hi Sebastiaan, the main problem with the script is that the f = open("my_log.csv", "w") only works if you type the complete path name. If it is not included it complaints that I do not have permission to write on the file. I tried to get the path…
• Hi Sebastiaan, I am trying to debug the script that nuclides your suggestion but the experiment was done originally on a PC and I don't have access to a PC just now and when I try to run it on a mac it crashes completely and I cannot even get a debu…
• Thanks Sebastiaan, a couple of questions though: 1. How do I get the number of the subject for the log so that the file is called 'my_log_Sub1'? 2. Just to confirm, the trial inline should be in the 'run' tab right? 3. In a related but different …
• Also, I tried to change the resolution parameters in the general properties tab and then save and the program did not recognize the change. I had to go into the script editor and change it there for it to work.
• Hi Sebastiaan, it is not a major problem and it actually came motivated by the fact that custom variables were first. If everything was alphabetically i wouldn't even have come up with the question. Frank
• Hi Sebastiaan, yes it works but it seems you have to drop it exactly over the other 4 dots, I was being lazy and dropping it just around the vicinity and didn't work.
• Thanks for your reply Sebastiaan, Actually 3 and 4 depend on the same reason. I use a logger during the practice phase which goes before block_sequence appears and before the feedbacks I needed to count. Using the NA option does the trick!
• Thanks it worked!
• Thanks! I originally tested my code in python and it was working fine, however, now using your suggestion the structure of the file (line by line) seemed to change. Before i had: path1 = self.experiment.get_file("design1.txt") design1 = open(pa…
• Ok... I was using a > in the run if conditional... however I solved the problem by switching the conditional into on inline script and using a 'feedback' variable in the run if conditional with different values for the different options like this…
• Hi Sebastiaan, I am still having problems with the timeout issue...it seems I have a couple of related problems. 1. if I have fixation = 1000ms, then sketchpad = 0 and then a timeout of 1000, then the [response_time] is read appropriately (using…
• Thanks for your reply Sebastian, However, I had exactly that setup, I tried changing the srbox for a keyboard_response item, but I got exactly the same problem.
• Also... using a srbox I want to impose a 1000ms timeout so that the stimulus stays on screen for 1000ms. If the subject answers, after 1000ms next screen is a feedback screen. But if subject fails to answer, at 1000 ms a different feedback screen t…
• Yes, in full screen works fine! Thanks.