Hi Chris,
Hope you enjoyed your break!
Following up on where the conversation was left off. The commands were sent at the places where I intended them to be. They were also sent at the exact same places for each trial. It might be an underlying design of the laser so we will try to see if we can figure out why. But we do like configuring each channel individually as needed as it gives us more flexibility.
One question related to the new laser plugin. I think we misunderstood when the channels would be configured to “off” with the new plugin. Now we have to turn the laser on before loading the animal’s experiment. However, we realized that we might not want the laser to be on since the beginning of the session. Sometimes we only need it to be on for some of the protocols happening later in the session. Is there a way to change this? Can this configuration happen when we turn on the laser instead of when we load experiments?
Also, a few more questions on our list that are not related to the laser but these are not urgent at all!
- Does the time update_display() takes depends on how many things we are drawing on the screen? It seems like it takes the system longer to draw two stimuli than drawing just one stimulus.
- Is there a way to delete unused variable sets? We accidentally added too many new variable sets for the EyeLink starting values instead of updating the existing ones and now it’s getting confusing.
- With the new nightly build, we have to load existing variable sets to get the EyeLink starting values after loading the experiments. The variable set was automatically loaded with the experiments with MWORKS 0.12.2 so it was one fewer step for us to do. We are wondering if there is a way to get that back so it will make the experiments more streamlined and one less thing for us to remember at the rig.
- We were trying to read display distance from the system variables with the python script (codes pasted below) written by a previous tech. In the config_Vpixx (attached), we defined read_system_variables() as following:
var display_width = 0
var display_height = 0
var display_distance = 0
%define read_system_variables ()
run_python_file(path = ‘read_system_variables.py’)
%end
The read_system_variables.py looks like this (email is giving me trouble sending the original .py file but it only contains these four lines):
from mworkscore import getvar, setvar, message
main_screen_info = getvar(‘#mainScreenInfo’)
message(main_screen_info)
###display_width = main_screen_info(‘’)
Then in the protocol, I did read_system_variables() then display_distance = main_screen_info(‘distance’) but it didn’t work. How should we use this read_system_variables()?
config_Vpixx.mwel (7.47 KB)