Pro II: Temperaturmess-Module
P2_TC_Read_Latch4
308
Typ
Temperatur-
bereich [°C]
T
-200...400
Siehe auch
P2_TC_Latch, P2_TC_Read_Latch, P2_TC_Read_Latch8,
Gültig für
TC-8-ISO Rev. E
Beispiel
#Include
ADwinPro_All.Inc
Dim
cnt
As Long
Dim
values[1000]
As Float
Init:
Rem Set sampling rate to 27.5 Hz
P2_TC_Set_Rate(1,8)
cnt
=
1
Event:
Rem copy values to latches
P2_TC_Latch(1)
Rem Read temperature from channels 1..4, thermo couple J in °F
P2_TC_Read_Latch4(1,0,2,values,cnt)
Rem increase counter
cnt
=
cnt
+
4
:
If
Temperatur-
bereich [°F]
-454...752
(cnt
> 1000)
Then
cnt
ADwin-Pro II Software, Handbuch Apr. 2021
ADwin
Thermo-
spannung [µV]
-5603...20872
P2_TC_Set_Rate
=
1