The only dependency that I have assumed is what the motor.monitor() function returns through the serial port, which I consider as an external interface. Great, go ahead and create a new thread
no luck running it with Mac OS
import serial
ModuleNotFoundError: No module named âserialâ
try doing from the console:
pip install pyserial
Hi @JorgeMaker,
Would be it possible to do worked this HMI under MACOSX, and how ? It seems there is an issue with pyQt5âŠ
Thank you in advance.
I went further, but even after to have installed âpip install pyserialâ, it replies
import serial
ModuleNotFoundError: No module named âserialâ
However, I got from console:
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/site-packages (3.5)
Hi @Marc_O,
The tool should work perfectly on MacOS, since in addition to being developed with Python, I made it with my MacBook.
If you describe to me what problem you have with PyQt5, I can try to figure out what is happening.
A couple of days ago I was able to create a SimpleFOCStudio.App to use the tool in MacOS without needing Python installed on your computer. It is not in the repository yet as I am hoping to be able to create the Windows app and add them simultaneously.
On my computer it works perfectly but has not been tested in any other computer. Let me know it works for you.
regards
@JorgeMaker,
Your link works, but the keyboard to enter the parameters of PID, or a command line doesnât work, and the plotting seems little smallâŠ
If you are right @Marc_O , I just realized that when PyInstller generates the application something changes and the validator of the fields stops working correctly. I have to see what exactly happens. The size of the plot is proportional to the dimensions of the main window. If you change the size of the main window it should change.
What I donât know is what problem PyQt5 can give you, I just ran it on my MacBook from the command line and it doesnât give me any problem:
python simpleFOCStudio.py
Although, in principle, executing the requirements.txt file should be done by PyQt5, try to see if this will solve it:
pip install PyQt5 == 5.15.2
Thank you @JorgeMaker , I will try tomorrow, because I saw I got some issues of file pathâŠ
I confirm you about your standalone application.
Hi @JorgeMaker,
I solved my file path issue, with
export PATH=/usr/local/opt/python/libexec/bin:$PATH
Now, it works with my version python 3.9.1.
Thanks for your help.
Your idea of standalone application is good.
Have a good day.
Iâve noticed that if you change the pen width here to width=1, it uses about 1/2 the cpu usage:
(also change the 2 similar lines below)
a few things:
- maybe putting âtuningâ in the thread title will make this more findable?
- I think the new version changed a lot and I canât seem to find the example that parses out the commands this sends, can you direct me to a working example directly maybe via a github gist?
- will this be supporting the new commander protocol? maybe it already does but I canât find a working configuration.
Hi @Jason_Kirsons ,
I have not done any kind of study about CPU usage. I will take a look at what you tell me Thank you very much for the observation.
Hi @schoch,
The tool is designed to work with SimpleFOC 2.0. I plan to update it to work with the new release but I have not had time yet. The idea is to add support the new commander interface.
Regards