编写温度测量程序 [英] To write a temperature measurement program

查看:106
本文介绍了编写温度测量程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要有关如何在连接仪器的情况下编写温度测量程序的基本信息.我需要什么?关于网络编程,接口或哪种编程语言将是最有效的,我必须知道哪些问题?

i need basic informarmation about how to write temperature measurement program with an instrument connected to it. what do i need? what issues i must know about network programming, interfaces or which programming language will be the most effective etc.?

推荐答案

什么温度?
您必须多快地检测到变化?
对于缓慢的变化和不太极端的温度,您可以使用达拉斯iButton
要进行更快的更改,请查看热电偶或热敏电阻,带模数转换器的微控制器-在这里,您将必须在汇编器中为微控制器编写代码,然后以VB.Net之类的高级语言编写代码,以通过RS232与使事情复杂化的微观因素.更简单的选择是Dallas iButton(还有很多其他功能)

尝试使用Dallas iButton来查看
您将需要:
a)DS1920 iButton(在0.5°内在-55°C至+ 100°C范围内提供直接的数字9位温度读数)
b)DS9097U RS-232转1-Wire适配器
c)USB转RS232适配器电缆
d)一个Visual Basic/C#应用程序和1-wire驱动程序

e)下载Dallas提供的OneWireViewer应用程序

以下是一些链接:
DS1920温度传感器: http://www.maxim-ic.com/datasheet/index.mvp/id/2818/t/al
DS9097 1-Wire适配器: http://www.maxim-ic.com/datasheet/index.mvp/id/2983
Windows OneWireViewer应用程序: http://www.maxim-ic.com/products/ibutton/software/tmex/download_drivers.cfm
另请参阅1-Wire适配器入门: http://www.maxim-ic.com/products/ibutton/software/tmex/

如果您希望我可以共享我前一段时间做的VB.Net应用程序,但是在过去几年中,dalls提供的驱动程序等已经有了很大的改进,因此我的应用程序有点过时"
What temperature?
How fast must you detect changes?
For slow changes and temperatures that are not too extreme you could use a dallas iButton
For faster changes look at a thermocouple or thermistor, Micro-controller with Analog to Digital converter - here you will have to write code in Assembler for the micro, and then code in a high level language like VB.Net to communicate via RS232 with the micro which complicates matters somewhat. The easier option would be the Dallas iButton (There are lots of others as well)

Try looking at using a Dallas iButton
You will need:
a) The DS1920 iButton (provides direct-to-digital 9-bit temperature readings over a range of -55°C to +100°C in 0.5° )
b) DS9097U RS-232 to 1-Wire adapter
c) A USB to RS232 adapter cable
d) Either a Visual Basic/C# application and the 1-wire drivers
or
e) Download the OneWireViewer application that Dallas provides

Here are some links:
DS1920 Temp sensor:http://www.maxim-ic.com/datasheet/index.mvp/id/2818/t/al
DS9097 1-Wire Adaptor: http://www.maxim-ic.com/datasheet/index.mvp/id/2983
Windows OneWireViewer application: http://www.maxim-ic.com/products/ibutton/software/tmex/download_drivers.cfm
Also see getting started with 1-Wire adapters:http://www.maxim-ic.com/products/ibutton/software/tmex/

If you want I can share a VB.Net app i did some time ago, but the drivers etc available from dalls have improved a lot over the past few years, so my app is a bit ''outdated''


很抱歉,但是在那种程度的信息上我们真的帮不上忙.

我们需要知道仪器的连接方式,所提供的信息类型,信息的获取方式,使用后应该如何处理等,以此类推.

我们只是不能处理那个一般性的问题.我们甚至都不知道您是否要使用汇编程序,C,C ++或.NET语言!
I''m sorry, but we can''t really help much, on that level of information.

We need to know how the instrument is connected, what kind of information it gives, how you get the information, what you are supposed to do with it when you have go it, and so on, and so on.

We just can''t work with a question that general. We don''t even know if you want to use assembler, C, C++ or a .NET language!


除非您计划自己设计数字温度计,否则您会发现-现成的.有些可以连接到USB端口.

该设备可能会附带现成的阅读应用程序,而您在软件方面无需执行任何操作.

如果需要自己开发定制应用程序,则制造商应提供一个所谓的软件开发套件(SDK),该套件具有寻址设备的功能或接口说明.

您可以使用C#甚至Visual Basic进行处理的可能性很高.这取决于可用的SDK.
Unless you plan to design a digital thermometer yourself, you will find an off-the-shelf one. Some can be connected to an USB port.

The device will probably come with a ready-made reading application and there''s nothing you''ll have to do on the software side.

If you need to develop a custom application yoursef, the manufacturer should provide a so called Software Development Kit (SDK) with functions to address the device, or instructions for interfacing.

Chances are high that you can do with C# or even Visual Basic. This depends on the available SDK.


这篇关于编写温度测量程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆