Hello,
I have a industrial balance connect to data logger (CR6).
I need register weight measures and its variation. I can recorder the weight measures, but I do not know programm the variation (for example, loss of weigth each 1 hours....which I think would be initial weight less weight end )
How can weight variation be programmed?
In the programm peso = weight
My programm is:
DataTable(Table2,True,-1)
DataInterval(0,1440,Min,1)
Minimum(1,BattV,FP2,False,False)
Sample(1,Peso,FP2)
Average(1,Peso,FP2,False)
Maximum(1,Peso,FP2,False,False)
Minimum(1,Peso,FP2,False,False)
StdDev(1,Peso,FP2,False)
EndTable
'Main Program
BeginProg
'Main Scan
Scan(1,Sec,1,0)
'Default CR6 Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default CR6 Datalogger Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,60)
'Open a serial port Balanza 1
SerialOpen(COMU1,9600,0,0,100)
TimeFlag = IfTime(4,10,SEC)
If (TimeFlag)=0 Then
PortSet(U3,0)
Else
PortSet(U3,1)
EndIf
'Receive serial data as a string
SerialInRecord(COMU1,SerialInString,0,11,13,"",01)
If (SerialInString)<> NAN Then
Peso = SerialInString
EndIf
'Call Data Tables and Store Data
CallTable Table1
CallTable Table2
NextScan
EndProg