Documenation: wrong size for type TLINT and TULINT
Process data logging service
Brought to you by:
florianpose
In Appendix B, in the table Supported channel data types, TLINT and TULINT are reported as 4-bytes integer.
I have checked the C types in the source code of pdserv ( src/msrproto/Variable.cpp)
switch (dtype.primary()) {
case PdServ::DataType::boolean_T : dtstr = "TCHAR"; break;
case PdServ::DataType:: uint8_T : dtstr = "TUCHAR"; break;
case PdServ::DataType:: int8_T : dtstr = "TCHAR"; break;
case PdServ::DataType:: uint16_T : dtstr = "TUSHORT"; break;
case PdServ::DataType:: int16_T : dtstr = "TSHORT"; break;
case PdServ::DataType:: uint32_T : dtstr = "TUINT"; break;
case PdServ::DataType:: int32_T : dtstr = "TINT"; break;
case PdServ::DataType:: uint64_T : dtstr = "TULINT"; break;
case PdServ::DataType:: int64_T : dtstr = "TLINT"; break;
case PdServ::DataType:: double_T : dtstr = "TDBL"; break;
case PdServ::DataType:: single_T : dtstr = "TFLT"; break;
default : dtstr = "COMPOUND"; break;
}
Indeed, it is clear that TLINT and TULINT are 8-bytes integer.
The error is present in both the German and the English documentation.
I have written a patch for this issue (see attachment)
If you prefer a web preview, see it on my github account
Web version
https://github.com/sblanchet/dls/commit/39e9308e884feaedc4b7afca84209cb47733cbdd