Great, I replaced my mlbhv2.m and I was able to extract the behavioral information I needed. Thank you very much for your help.by IVanegas - Questions and Answers
Hi Jaewon. I am using mlread to load a bhv2 file, and I am getting the following error: Error using mlbhv2/read_variable (line 372) An error occurred while reading the variable, 'Trial42'. An error occurred while reading the variable, ''. Invalid precision. Error in mlbhv2/read_trial (line 130) = read_variable(obj); Error in mlread (lineby IVanegas - Questions and Answers
Hi Jaewon. Thank you very much for your explanation. This was really helpful and we figured out it was a faulty cable (BNC). Have a nice weekend!by IVanegas - Questions and Answers
Hi Jaewon. I had an issue with my PC last week because of an outage in the building. I had to reinstall Matlab and Monkeylogic from scratch. We are using Windows 10, 64 bit, and the National instruments BNC-2090A, to transfer event codes to the Neuralynx acquisition. The behavioral codes I use in my tasks are numbers between 2 to 90, all positive numbers. However, I noticed in my recordby IVanegas - Questions and Answers
That's a great idea. Yes, indeed our task requires to hold fixation throughout the trial, so I can definitely extract the fixation position at the start of each trial. I will try both methods and will let you know how it goes. Thank you very much again for your help!by IVanegas - Questions and Answers
Hi Jaewon. Thank you very much for your response. It is very helpful. Yes, the plots are using the signal I recorded on the acquisition system (Neuralynx). I will try the options you sent. It is definitely a good idea to use the signal from the bhv2 files, I would have to figure out the way to process it and sync it with the spikes and LFPs timing... Thank you.by IVanegas - Questions and Answers
Hi Jaewon. I need your help with the following. Today, I noticed that there is a drift in the X,Y, signal acquired from the eye tracker. Please take a look at the attachments. 1-Saccades detected during the task, starting at fixation point (0,0) 2-X and Y traces over time for the same session Please let me know your advice, how may I correct for the drift? It is strange that this is notby IVanegas - Questions and Answers
Hi Jaewon. I just tried the new version of BlinkDetector that you posted, and it works perfectly well! The range that I am using is the same as I used to before, -18, 18 for X and -19, -14 for Y. Thank you very much for your time to look into it and help me fixing this issue! Isabelby IVanegas - Questions and Answers
Thank you Jaewon. You are right, I used to have a blink detector adapter. However, in the current Matlab version and ML it stopped working. It gives me a strange error about the range, which I was not able to figure out. If I understand correctly, can I nest the current code, within an additional SingleTarget that covers the area when a blink happens?by IVanegas - Questions and Answers
Sure. Would you please suggest what adapter could I use for it? I currently have the following code for the response period, I create the target, and nest it with a wait then hold adapter. The subject must make a saccade to the target location, but sometimes the subject blinks right before making the saccade, and that is the issue I am having, how to detect the blink on real time. fixtrg =by IVanegas - Questions and Answers
Hi Jaewon. I just looked at the analog data in the ML behavioral file. The eye movements oscillate between -30 to 30 when the subject is looking at the target and stimuli within the screen area. However, when there’s a blink, the eye traces jump suddenly to a value of 96, 97 (x), or -81, -118 (y). Please let me know your advice on how to implement the real time blink detection using theseby IVanegas - Questions and Answers
Hi Jaewon. We have noticed that our subject blinks right before making a saccade towards a target. We would like to have a real time blink detection so that we break and repeat the trial when this happens. Please let me know if a blink detection adapter is already available, or what would be the best way to program a real time blink detection. Thank you very much.by IVanegas - Questions and Answers
Not saving any variable or doing anything different to my other visual tasks. The only difference in this task is that I use the OrAdapter. Do you mind if I send you my code for you or someone else in the NIMH MonkeyLogic group, to run it and take a look? For 200 trials, the ITI increases to 8000msby IVanegas - Questions and Answers
Got it. Thank you Jaewon. One last question, I noticed the Inter Trial Time keeps increasing over time. I also get a warning: "Desired ITI exceeded". This does not happen in any of the other tasks I have. In all of my tasks I use a set iti time (1000ms) in the last line. How can I fix this?by IVanegas - Questions and Answers
Thank you Jaewon. How can I make such that once either of the targets is reached (either target 1 or target 2), the animal must keep fixation there (hold), otherwise if goes out of that target window, the trial is wrong. I know I can access adapter.Success, but what are the other properties I can access on real time?by IVanegas - Questions and Answers
Hi Jaewon. I am programming a double target task. In this task, targets can appear at different times relative to each other (target 1 earlier or later than target 2) and the animal gets rewarded for an eye movement to either of the target locations (which are in opposite sides of the lower visual field). I am using a TimeCounter & CircleGraphic to create each of the target scenes, forby IVanegas - Questions and Answers