Anaconda4.9.2安装python3.8.10运行SimpleFOCStudio
2157 2022-09-22 09:42
对于windows7,请选择python3.8.10,请选择Anaconda4.9.2(Anaconda3-2020.11-Windows-x86_64.exe)
conda --version
C:\Users\21>conda -V
conda 22.9.0
conda create -n python38 python=3.8.10
done
#
# To activate this environment, use
#
# $ conda activate python38
#
# To deactivate an active environment, use
#
# $ conda deactivate
C:\Users\21>conda info --envs
# conda environments:
#
base * C:\ProgramData\Anaconda3
python38 C:\ProgramData\Anaconda3\envs\python38
C:\Users\21>conda activate python38
(python38) C:\Users\21>
conda create -n simplefoc python=3.8.10
yes确定
done
#
# To activate this environment, use
#
# $ conda activate simplefoc
#
# To deactivate an active environment, use
#
# $ conda deactivate
C:\Users\21>conda activate simplefoc
(simplefoc) C:\Users\21>e:
(simplefoc) E:\>cd E:\BaiduNetdiskDownload\denggeTest\SimpleFOCStudio
(simplefoc) E:\BaiduNetdiskDownload\denggeTest\SimpleFOCStudio>pip install -r "requirements.txt"
……
Successfully built shutils
Installing collected packages: pyserial, smmap, PyQt5-sip, pymysql, numpy, confi
gparser, shutils, pyqtgraph, PyQt5, gitdb, gitpython
Successfully installed PyQt5-5.15.2 PyQt5-sip-12.11.0 configparser-5.3.0 gitdb-4
.0.9 gitpython-3.1.27 numpy-1.23.3 pymysql-1.0.2 pyqtgraph-0.11.1 pyserial-3.5 s
hutils-0.1.0 smmap-5.0.0
(simplefoc) E:\BaiduNetdiskDownload\denggeTest\SimpleFOCStudio>conda install -n simplefoc git
注意,上面最后一句话是需要运行studio必要的git环境。
首次使用之后要配置如下
C:\Users\21>conda init cmd.exe
关闭窗口
今后在使用时:
C:\Users\21>activate python38
(python38) C:\Users\21>conda activate simplefoc
(simplefoc) C:\Users\21>cd D:\Users\21\SimplleFOCStudio
>python simpleFOCStudio.py
首次使用时添加设备
左下角输入监视命令M,然后connect,然后重启主板,然后在右侧选定需要展示的曲线
注意,如果connect之后发现电机抖动,请迅速点击左上角的禁止设备,然后调整“motion config”力矩和电压模式,然后再允许设备。
程序测量kv值,需要注意下面两个电压
driver.voltage_power_supply = 12; // 供电电压
motor.voltage_limit = 1; // 限制电压
全部评论