Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP french ingeniors

Status
Not open for further replies.

ensia

Programmer
Dec 7, 1999
1
AU
We are french young ingeniors and we have a project to do.<br>
We would like to create an array in order to create later a graphic.<br>
With a temperature captor we have on line values and we want to stock them in a array every second during a hour.<br>
<br>
thanks for your help
 
I see no problem with it. Suppose the measured value is stored in $value. You can create an event for each 60 seconds to store what you want:<br>
<br>
proc measure {} {<br>
global results_array value<br>
set time [clock format [clock seconds] -format "%H:%M"]<br>
set results_array($time) $value<br>
after 60000 measure<br>
}<br>
<br>
To see all results so far, execute<br>
array get results_array
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top