Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

thermometer user interface

I have used the thermometer user interface (Measurement Studio, C#), if I got the data periodically, as follows:

Time>>>>>>>>>>>>>Temperature

11:48:05>>>>>>>>>37

11:50:04>>>>>>>>>36.9

11:52:06>>>>>>>>>36.5

11:57:08>>>>>>>>>37.5

12:00:00>>>>>>>>>37

Then, how to show the current temperature correctly in the thermometer user interface according to the input data periodically (when getting the input data)?
0 Kudos
Message 1 of 2
(3,464 Views)
You can get/set the value of the thermometer by using the Value property. For example

[C#]
thermometer.Value = currentTemp; //this sets the value of the thermometer.

For examples, check out the C:\Program Files\National Instruments\MeasurementStudio2003\DotNET\Examples\UI\NumericPointer folder.

There are also several help topics that describe the best way to use the numeric pointer controls (the thermometer is a numeric pointer control). If you go to the table of contents in the Visual Studio Help, go to Measurement Studio Help >> NI Measurement Studio .NET class library >> Using the NI Measurement Studio .NET class library >> Using the Measurement Studio Numeric Pointer .NET controls

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,459 Views)