Lab VIEW仪器驱动与串行通讯:Lake Shore Cryotronics 211温度读取

需积分: 50 22 下载量 51 浏览量 更新于2024-08-06 收藏 11.87MB PDF 举报
"展示了怎么从Lab-gicv3_software_overview_official_release_b" 这篇文章主要介绍了如何使用NI(National Instruments)的仪器驱动程序以及在Lab VIEW中进行仪器控制的实践。标题暗示了内容可能涉及Lab VIEW软件的一个版本,可能是LabVIEW 3.0或与LabVIEW相关的某个特定版本的更新,例如LabVIEW的Logic或GPIB模块。 描述中提到了“Instrument Drivers”和“NI Instrument Driver Finder”,这是一个工具,用于查找和安装适合特定硬件设备的驱动程序。Lab VIEW中的即插即用仪器驱动允许用户为特定应用定制源代码,便于编程控制仪器并与系统集成。具体示例是一个通过串行通信控制温度读取的程序,使用了一个来自Lake Shore Cryotronics 211的温度传感器,而不是内置的热电偶模块。 标签“cRIO ni”表明讨论的重点可能涉及到CompactRIO(cRIO),这是NI的一款嵌入式实时控制系统,结合了实时控制器和现场可编程门阵列(FPGA)的硬件平台,适用于自动化和机器控制应用。 在提供的部分文件内容中,文章首先概述了机器控制架构,包括CompactRIO的组成部分,如实时控制器、可重构FPGA机箱和工业级I/O模块。接着,文章深入到控制系统的构建,包括基本控制器架构、初始化、控制和关闭规则,以及初级控制器架构的例程。特别强调了基于状态的程序设计,如状态机的概念和在LabVIEW中实现状态机的方法。 这篇资料详细介绍了使用Lab VIEW进行仪器驱动的搜索、使用,以及如何通过状态机设计实现对CompactRIO系统的控制。对于需要开发和调试基于Lab VIEW的自动化控制系统的工程师来说,这些内容具有很高的参考价值。
2023-07-25 上传

请以最详细的方式解释这段代码with a01 as( select sm_id, isname, case when isname in ('冰箱', '冷柜') then '制冷' when isname = '商空' then '楼宇' when isname = '家空' then '空调' else isname end as cyx, factory_code, mtname, curstatus, model_code, model_name, start_time, --'保养起始时间' expire_time, --'保养到期时间' substring(start_time, 1, 7) byqsny, substring(expire_time, 1, 7) byjssj, case when stype = '2' then '二保' when stype = '3' then '三保' else stype end as bylx, case when mm_type = '2' then '二保' when mm_type = '3' then '三保' when mm_type = '4' then '三保带二保' else mm_type end as mmtype, --实际保养类型 upper_time, --上次保养时间 mm_time, --实际保养时间 scustcode, -- 实供应商编码 scustname, --实供应商名称 mould_status, --模具维保状态 mm_status, --实际是否保养 smould_status --模具实际维保状态 from dwd_mm_staymaintain_all a where by_status <> '无需保养' and length(factory_code) = 4 and curstatus not in ('报废中', '已报废', '冻结数据', '垃圾数据') and isname in ('冰箱', '冷柜', '家空', '商空', '洗涤', '厨电', '热水器') and substring(expire_time, 1, 10) <= from_unixtime(unix_timestamp(), 'yyyy-MM-dd') and expire_time is not null and expire_time <> '' ), b01 as( select cyx, byjssj, count(sm_id) by_ying from a01 group by cyx, byjssj ), b02 as( select cyx, byjssj, count(sm_id) by_shi from a01 where mm_status = '已保养' group by cyx, byjssj ),c01 as( select from_unixtime(unix_timestamp(), 'yyyy-MM') months, t1.cyx industry, t1.byjssj byjsyf, cast(t1.by_ying as string) by_ying, cast(t2.by_shi as string) by_shi, cast(t2.by_shi/t1.by_ying as decimal(8,5)) bywcl from b01 t1 left join b02 t2 on t1.cyx = t2.cyx and t1.byjssj = t2.byjssj) insert overwrite table dh_yf.tt_mould_asset_maintenance_overview select months, industry, byjsyf, by_ying, by_shi, cast(bywcl as string) bywcl, from_unixtime(unix_timestamp(), 'yyyy-MM-dd') etl_date, '%' unit from c01

2023-05-30 上传