start implementing direct data log

This commit is contained in:
jomjol
2022-10-19 20:23:15 +02:00
parent 1c66f8c6ca
commit 83f638c64f
6 changed files with 149 additions and 4 deletions

View File

@@ -803,12 +803,26 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
string _zw = "PostProcessing - Raw: " + NUMBERS[j]->ReturnRawValue + " Value: " + NUMBERS[j]->ReturnValue + " Error: " + NUMBERS[j]->ErrorMessageText;
LogFile.WriteToFile(_zw);
WriteDataLog(j);
}
SavePreValue();
return true;
}
void ClassFlowPostProcessing::WriteDataLog(int _analog)
{
string analog = "";
string digital = "";
if (flowAnalog)
analog = flowAnalog->getReadout(_analog);
if (flowDigit)
digital = flowDigit->getReadout(_analog);
// LogFile.WriteToFile(analog);
LogFile.WriteToData(NUMBERS[_analog]->ReturnRawValue, NUMBERS[_analog]->ReturnValue, NUMBERS[_analog]->ErrorMessageText, digital, analog);
}
void ClassFlowPostProcessing::UpdateNachkommaDecimalShift()
{
@@ -989,3 +1003,5 @@ string ClassFlowPostProcessing::getReadoutError(int _number)
{
return NUMBERS[_number]->ErrorMessageText;
}