Quantcast
Channel: PC-DMIS User Forum - Forums
Viewing all articles
Browse latest Browse all 11658

Using a cmm as a thermometer

$
0
0
I just want to check the temperature of the room, at the cmm, during the night.
Here is my solution, to record the temperature each 10 mn :
Code:
FPTR       =FILE/OPEN,RECORD_TEMP.TXT,ADD
            DO/
            COMPTEMP/ORIGIN=0,0,0,CTE=0.0000115,Ref temp=20
              ,max.=40,min.=10
              ,NUM PART=9
              ,X AXIS TEMP=21.1636,Y AXIS TEMP=21.0002,Z AXIS TEMP=21.1504,PART TEMP=20.9515
            ASSIGN/V1=GETCOMMAND(62,"top",1)
            ASSIGN/V2=GETTEXT(529,0,V1)
            ASSIGN/V3=GETTEXT(530,0,V1)
            ASSIGN/V4=GETTEXT(531,0,V1)
            ASSIGN/V5=GETTEXT(532,0,V1)
            ASSIGN/V6=SYSTEMTIME("hh:mm:ss")
            FILE/WRITELINE,FPTR,V6+" ; "+V2+" ; "+V3+" ; "+V4+" ; "+V5
C1         =COMMENT/YESNO,NON,FULL SCREEN=NO,AUTOCONTINUE=YES,DELAY=600,
            Do you want to continue ?
            UNTIL/C1.INPUT=="NO"
            FILE/CLOSE,FPTR,KEEP
Maybe some lines are not exactly the english code, I translated them...

Viewing all articles
Browse latest Browse all 11658

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>