question regarding the user variables in Monitor_nD #2401
Replies: 2 comments 3 replies
-
|
Dear @HaShuai123, You have unfortunately stumbled upon an inconsistency between the manual and reality, in McStas 3.x Monitor_nD makes use of At a given point in the instrument you can apply an These are then probed via a string-identifier, e.g. |
Beta Was this translation helpful? Give feedback.
-
|
Dear @HaShuai123, You are right, at least in
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear experts,
I have some problems about how to use the user variables.
I copied an example in the user manual, but the compilation failed because it doesn't recognize the variable t.
COMPONENT UserMonitor = Monitor_nD(xwidth = 0.1, yheight = 0.1,
user1 = log(t),username1="Log(time)",
options ="auto user1" )
AT (0,0,2) RELATIVE Sample_rot
And, can I do some math operations on the variable t? for example, modulo operations and division by certain numbers?
Any help will be appreciated.
Best regards,
Ha Shuai.
Beta Was this translation helpful? Give feedback.
All reactions