Click here to Skip to main content
15,885,630 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.?
Posted

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'
 
Share this answer
 
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!
 
Share this answer
 
Comments
gunesk 1-Dec-11 3:14am    
for example program will do these: it will read temperature datas from the instrument at every second from the program start and it will insert these values to the graph as a new window. x axis will be the time like 12.03.12 and y axis will be the temperature values. i dont know which protocol program will need but i think it needs RS protocols right? and it needs an ethernet to be connected? but first do i need to learn RS protocol? i was asking exatly the same about which should be most effective, assembler, C, C++ or .NET because i didnt do anything about temperature measurement before. i need to know what should i know about programming to write a temperature measurement program...thanks
OriginalGriff 1-Dec-11 3:45am    
It all depends on the instrument: start with the manual (if any) or the manufacturers site. You can't make any design decisions until you know what you are interfacing to, and how!
gunesk 1-Dec-11 4:06am    
thanks for answer but i just mean what i should know about computer programming to write a temperature measurement program
OriginalGriff 1-Dec-11 4:32am    
The first thing you need to know is how you talk to the instrument - after that it gets easy! But first, you need to know how to talk to it - or your whole program is going to fail, very quickly...
gunesk 1-Dec-11 6:13am    
yes thats the most important thing. ok thanks
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.
 
Share this answer
 
Comments
gunesk 1-Dec-11 3:22am    
it will be a custom. can a beginner programmer do this alone or should i definitely need a help from an expert?
YvesDaoust 1-Dec-11 4:10am    
You can try by yourself first. Never too late to ask an expert after.

You might even be pleased that the manufacturer provides what you need as a sample program.
gunesk 1-Dec-11 4:18am    
hmm thanks and what do yuo think about what should i need to know about computer programming to write a temperature measurement program? i asked above but i want to take your advice too
YvesDaoust 1-Dec-11 4:27am    
If you never programmed in your life, take a few minutes to download Visual Basic Express edition (free) and play with it a little.

Follow the "Creating Your First Visual Basic Program" tutorial. You'll quickly understand if this is for you or not.
gunesk 1-Dec-11 6:13am    
i have basic-intermediate knowledge about programming but i will try that too. thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900