[Gate-users] /control/macroPath error - How to run macro?

Andreas Resch andreas.resch at meduniwien.ac.at
Thu May 4 17:16:36 CEST 2017


Am 2017-05-04 15:46, schrieb Niels van der Werf:
> Hello Andreas,
> 
> Thanks for your quick reply!
> 
> Being a beginner, I should indeed start with a simple example.
> However, when I run the macro in my Terminal, the macro functions
> perfectly.
> 
> When I try to run it in the graphical GATE (GATE QT) mode, I don’t
> know how to tell the program to go into another directory. So, in
> terminal I can go the my desired directory, and there type Gate
> name_macro.mac, which runs the macro.
> 
> So, my question is, do you maybe know how I can change the directory
> in GATE QT? I think I have to use the control/macroPath for this,
> however, I don’t seem to get it working.
> 
> Thanks in advance for your help!
> 
> Best,
> Niels
> 
> 
>> Op 4 mei 2017, om 13:42 heeft Andreas Resch 
>> <andreas.resch at meduniwien.ac.at> het volgende geschreven:
>> 
>> Am 2017-05-04 13:01, schrieb Niels van der Werf:
>>> Hello All,
>>> I've just installed Gate on OS X 10.9.5 (Mavericks) via MacPorts. The
>>> installation appears to have worked.
>>> I’m now trying to run my first macro file, from one of the
>>> downloadable examples. However, I get the following error when I try
>>> to execute the macrofile with control/execute:
>>> "ERROR: Can not open a macro file . Set macro path with
>>> "/control/macroPath" if needed."
>>> Now my question is, what is the correct usage of the
>>> /control/macroPath command? I tried to run a macro that I could find
>>> by first setting the macroPath:
>>> /control/macroPath /opt/local/share/doc/gate/test/
>>> which gave no error but then when I ran "/control/execute
>>> PET_CylindricalPET_System.mac" I get an error similar to before:
>>> "Can not open a macro file
>>> . Set macro path with "/control/macroPath" if needed."
>>> Clearly, I do not understand how the pathing in Gate works. I would 
>>> be
>>> grateful for any advice toward setting the macropath correctly.
>>> Sincerely,
>>> Niels
>>> _______________________________________________
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>> 
>> Hi Niels,
>> 
>> I have not looked into your mac file in detail, but I suggest that you 
>> test your set up with a simple simulation
>> setup (so 1 dose actor instead of 26). As soon as the simple setup 
>> works, increase the complexity. I once observed a problem with using 
>> integers in the name of actors - or at least I thought that there was 
>> an issue. Maybe this could be one of your problems?
>> 
>> cheers,
>> andreas

Hey Niels,

I accidentially responded to you, while I wanted to reply to the 
doseActor question. Sorry for that confusion.

best,
andreas


More information about the Gate-users mailing list