OpenGATE / GateContrib

User-oriented public repository of Gate (macros, examples and user contributions)
74 stars 135 forks source link

COMMAND NOT FOUND #79

Open adavizehameed opened 11 months ago

adavizehameed commented 11 months ago

Hello, I am new learner of geant4 GATE. I just started to follow the GATE users Guide V8.0. The PET example therein is what i am trying to replicate as a first time learner but got this error messages at the Fifth Stage of command:

Fifth step: Setting-up the digitizer

/gate/digitizer/Singles/insert adder /gate/digitizer/Singles/insert readout /gate/digitizer/Singles/readout/setDepth 1

E N E R G Y B L U R R I N G

/gate/digitizer/Singles/insert blurring

/gate/digitizer/Singles/blurring/setResolution 0.19 /gate/digitizer/Singles/blurring/setEnergyOfReference 511. keV

E N E R G Y W I N D O W

/gate/digitizer/Singles/insert thresholder /gate/digitizer/Singles/thresholder/setThreshold 350. keV /gate/digitizer/Singles/insert upholder /gate/digitizer/Singles/upholder/setUphold 650. keV

ERROR MESSAGES

ERROR: G4VisCommandsViewerZoom::SetNewValue: no current viewer. ERROR: G4VisCommandsViewerPan::SetNewValue: no current viewer. ERROR: G4VisCommandsViewerZoom::SetNewValue: no current viewer. ERROR: G4VisCommandsViewerPan::SetNewValue: no current viewer. COMMAND NOT FOUND </gate/digitizer/Singles/insert adder>

Batch is interrupted!!

-------- WWWW ------- G4Exception-START -------- WWWW ------- G4Exception : UIMAN0123 issued by : G4UImanager::ApplyCommand Command aborted (100) Error code : 100 This is just a warning message. *** -------- WWWW -------- G4Exception-END --------- WWWW -------

COMMAND NOT FOUND </control/execute mac/geometry.mac>

Batch is interrupted!!

-------- WWWW ------- G4Exception-START -------- WWWW ------- G4Exception : UIMAN0123 issued by : G4UImanager::ApplyCommand Command aborted (100) Error code : 100 This is just a warning message. *** -------- WWWW -------- G4Exception-END --------- WWWW -------

[Core-0] End of macro mac/main.mac

Please help me out, the above command was written in geometry.mac file of the mac folder. Thanks in anticipation

VictorSanchz commented 10 months ago

What version of Gate are you using? Because the definition of the digitizer have been modified in modern versions. You can check the documentation.