
Python CAN上位机
micromicrofat
Python | Go | Deep Learning
展开
-
PyQT5 TypeError: argument 1 has unexpected type 'NoneType' 解决办法
self.ui.speed_lineEdit.textChanged.connect(self.write(‘1’))改为self.ui.speed_lineEdit.textChanged.connect(lambda:self.write(‘1’))原创 2019-01-04 15:28:10 · 6697 阅读 · 2 评论 -
PyQT5+matplotlib FuncAnimation动态绘制曲线图
#! /usr/bin/env python3# coding: utf-8import sysimport osimport randomimport matplotlib# Make sure that we are using QT5matplotlib.use('Qt5Agg')from PyQt5 import QtCore, QtWidgetsfrom PyQt...原创 2019-01-10 15:48:04 · 6689 阅读 · 3 评论 -
matplotlib 减少subplot空白
调整前:...fig = Figure(figsize=(width, height))self.ax1 = fig.add_subplot(311)self.ax2 = fig.add_subplot(312)self.ax3 = fig.add_subplot(313)...调整后:...fig = Figure(figsize=(width, height))self...原创 2019-01-10 16:42:18 · 2922 阅读 · 0 评论 -
周立功 zlg PCIe-9120I CAN卡无法使用python开启
2018年走了…2019年来了…工作日第一天就排了一颗打雷…前两天领导指派任务做一个仪表的上位机, 公司用的都是zlg的USB-CAN盒或者PCIe-CAN卡, 且官方提供的接口\例程都是非python的, 对于我这么一个只会python的小白就尴尬了, 但是还好官方提供有dll文件, 因而就可以通过python的ctype来调用接口命令:首先从官网下载api(CAN接口卡二次开发函数库)...原创 2019-01-02 16:04:06 · 2983 阅读 · 2 评论