远程实验平台开发记录(毕业前把做过的东西整理下)

这篇博客记录了从2018年至2020年开发远程实验平台的过程,涉及Python Flask网站开发、在线图像重建、远程控制仪器及网络摄像头监控。使用Flask搭建网站,利用MATLAB控制实验仪器,并介绍了如何实现网络摄像头监控。博主分享了相关资源和踩坑经验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

远程实验平台开发记录(2018-2020)

1. Python flask开发网站

web开发入门:

https://blog.csdn.net/weixin_40929147/article/details/83507400

Flask搭建网站:

建议跟着flask开发手册一步步做 链接:https://dormousehole.readthedocs.io/en/latest/quickstart.html#quickstart

代码在资料夹(刘田白鸽-科研资料整理.rar\毕业设计Web开发以及程序源码\devopsdemo-master)


2. 在线图像重建

热力图成像资料:

nodejs child_process(子进程) 接收print输出的值
http://nodejs.cn/api/child_process.html#child_process_child_process_exec_command_options_callback

热力图的画法:
https://juejin.im/post/5bdc2323518825170e4a8cf8

https://juejin.im/post/5c37ed836fb9a049d81c0f82

https://juejin.im/post/5a41f3a451882560b76c6d05

3. 远程控制仪器

原理:锁相放大器和通道切换电路由MATLAB控制,MATLAB有内置的服务器web APP server,将MATLAB控制仪器的代码放在服务器,以浏览器形式打开,嵌入远程实验平台网站.

MATLAB控制实验仪器代码:

function sample = example_poll(device_id, varargin)
%% 初始化锁相放大器
clear ziDAQ;

if ~exist('device_id', 'var')
    error(['No value for device_id specified. The first argument to the ' ...
           'example should be the device ID on which to run the example, ' ...
           'e.g. ''dev2006'' or ''uhf-dev2006''.'])
end

% Check the ziDAQ MEX (DLL) and Utility functions can be found in Matlab's path.
if ~(exist('ziDAQ') == 3) && ~(exist('ziCreateAPISession', 'file') == 2)
    fprintf('Failed to either find the ziDAQ mex file or ziDevices() utility.\n')
    fprintf('Please configure your path using the ziDAQ function ziAddPath().\n')
    fprintf('This can be found in the API subfolder of your LabOne installation.\n');
    fprintf('On Windows this is typically:\n');
    fprintf('C:\\Program Files\\Zurich Instruments\\LabOne\\API\\MATLAB2012\\\n');
    return
end

% The 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值