How to write proto messages with HDF5Meas Class? #1019
-
Hello, I´m trying to write an HDF5 file with protobuf messages using class HDF5Meas
For the description, currently I´m assigning the description for another channel description that I want to reproduce. The instruction HDF5Meas.HasChannel(channel_name) is returning false in all process and the line HDF5Meas.GetChannelNames(); is empty. Additionally, with the HDF5Meas.AddEntryToFile is giving me an "memcpy.asm not found" exception. Previously, I was using the API IMeasurement but I need to custom the maximum size of file and declaring the object as global to later define the file name so this approach is not the one I require. What am I not considering or is there any example to write/read hdf5 files with HDF5Meas class ? I only found the class documentation |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @oskr1709 , it is highly recommended to use the
About the Maximum file size: we can probably modify the API to also take options about the created files, e.g. about their size. |
Beta Was this translation helpful? Give feedback.
eCAL Mon uses the "descriptor" string to visualize the data (at least when we are talking about protobuf and the generic protobuf plugin). The Descriptor is not a human readable description, but a machine readable schema information. This descriptor string can be obtained by the libprotobuf API.
I think you are maybe setting a wrong descriptor string, so the eCAL Monitor is unable to use it for dynamic deserialization. Here is how you could obtain that:
ecal/contrib/message/include/ecal/msg/proto/message.h
Line 47 in 4ead87d
Another cause for this message would be that your binary message data is actually corrupt.