resonance not starting
Closed this issue ยท 8 comments
Hello. Thank you for such a macro. I installed the macro without any problems. and when I want to run it I get an error message like this.
08:25
Command {generate_shaper_x} finished
08:25
mv: cannot stat '/home/voron/printer_data/config/RES_DATA/shaper_calibrate_x.png': No such file or directory
08:25
Damping ratio for X calculated:
damping_ratio_x:
08:25
Execution halted
08:25
Error in file(file, "rt") : invalid 'description' argumen
Calls: read.csv -> read.table -> file
08:25
import numpy as np, matplotlib
ModuleNotFoundError: No module named 'numpy'
08:25
Traceback (most recent call last):
File "/home/voron/klipper/scripts/calibrate_shaper.py", line 11, in
08:25
ResHelper: Generating data...
08:25
Running Command {generate_shaper_x}...:
08:25
Unknown command:"TEST_RESONANCES"
08:25
RESONANCE_TEST_X
RESHELPER.CFG
[gcode_shell_command generate_shaper_x]
command: sh /home/voron/ResHelper/gen_x.sh # If your user is not home/pi, then change this path to match that
timeout: 60.
verbose: True
[gcode_shell_command generate_shaper_y]
command: sh /home/voron/ResHelper/gen_y.sh # If your user is not home/pi, then change this path to match that
timeout: 60.
verbose: True
[gcode_macro RESONANCE_TEST_X]
gcode:
TEST_RESONANCES axis=x
RUN_SHELL_COMMAND cmd=generate_shaper_x
[gcode_macro RESONANCE_TEST_Y]
gcode:
TEST_RESONANCES axis=y
RUN_SHELL_COMMAND cmd=generate_shaper_y
Hi! It looks like the error comes from the Klipper side when trying to run /home/voron/klipper/scripts/calibrate_shaper.py
and it points out at a missing numpy module.
Try running the following:
pip install -v numpy
sudo apt update
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
Thank you. I will try your advice.
15:08
Command {generate_shaper_x} finished
15:08
mv: cannot stat '/home/voron/printer_data/config/RES_DATA/shaper_calibrate_x.png': No such file or directory
15:08
Damping ratio for X calculated:
damping_ratio_x:
15:08
Error in file(file, "rt") : invalid 'description' argument
Calls: read.csv -> read.table -> file
Execution halted
15:08
with open(logname) as f:
^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/resonances_x_*.csv'
15:08
datas = [parse_log(fn) for fn in args]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/voron/klipper/scripts/calibrate_shaper.py", line 153, in
datas = [parse_log(fn) for fn in args]
^^^^^^^^^^^^^
File "/home/voron/klipper/scripts/calibrate_shaper.py", line 19, in parse_log
15:08
File "/home/voron/klipper/scripts/calibrate_shaper.py", line 153, in main
15:08
main()
15:08
Traceback (most recent call last):
File "/home/voron/klipper/scripts/calibrate_shaper.py", line 174, in
15:08
ResHelper: Generating data...
15:08
Running Command {generate_shaper_x}...:
15:08
Unknown command:"TEST_RESONANCES"
15:08
RESONANCE_TEST_X
the situation shows. I made a mistake somewhere. I couldn't get it to work again. I want to apologize and ask something. Please excuse my ignorance. I wonder how we use macro? Can you explain me step by step? I turned on the printer. I did home all. and tried to run the macro. Explanation: Is it necessary to print the test piece that is included in the clipper document? We run the macro after the printing process starts. And I am truly sorry again. Unfortunately, I am very new to 3D printers, I am trying to configure my first machine and I am trying to understand the necessary documents and shares by using Google Translate. and many terms unfortunately do not have their exact meaning. This also applies to what I write. If there is a situation that causes misunderstanding, it may most likely be due to a translation error.
Do you have an adxl accelerometer set up and did you run a successful resonance test as per default klipper manual instructions?
The macros just call default klipper commands/modules. It still look like the error might be on the klipper side. Try following the official documentation for resonance testing and graph generation and see if you can do it that way.
No print is involved in this process. You can see the official setup and testing workflow here: https://www.klipper3d.org/Measuring_Resonances.html
I have not done adxl installation and testing before. I understood properly now. then first follow thekliper documentation and do a test with adxl 345. Thank you very much for the help.
I have not done adxl installation and testing before. I understood properly now. then first follow thekliper documentation and do a test with adxl 345. Thank you very much for the help.
That's correct. These macros only streamline the steps of the process that you would do manually in Klipper.
First you need to make sure those work as intended. Good luck with the process!
Thank you for your good wishes. I performed a manual test by following the input shaping steps in the Clipper documentation you referred to. I wonder how the settings I apply will change the actual part and print in the future. Generally, while the test pieces turn out perfect, I am completely disappointed in the real piece. But thanks to you, I am educating myself better every day. I would like to make a humble suggestion. For me and people like me whose native language is not English and who are new to 3D printers, a small video tutorial in addition to written documents would be great. This is one of the biggest problems I have. It is very difficult to understand and perceive technical issues. And we always learn the subject incompletely. And in the future, when we experience the slightest problem, again on platforms such as github or discord. We create posts for situations that seem very funny to experts. And I really appreciate your time.
Thanks! The video issue has been brought many times in the Klipper community but the issue is that the features are updated so fast that the videos become quickly obsolete in comparison to the official documentation.
The issues during real prints might be due to calibrations and printing profiles. I recommend joining the Voron discord, or your local 3D printing community chats, and asking for help there, describing your issue and posting images.
The Ellis print tuning guide is a great starting point:
https://ellis3dp.com/Print-Tuning-Guide/