danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
654 stars 226 forks source link

Virtual Type Channels are not working correctly #518

Closed dhruv050992 closed 3 years ago

dhruv050992 commented 3 years ago

I have seen issue with Channel Type = 6 (Virtual Channels), the values are not parsed correctly, I guess every time code is using index 0 instead of incremental index.

danielhrisca commented 3 years ago

Hello, can you provide a demo file or a code snippet?

dhruv050992 commented 3 years ago

Hi Daniel, As per ASAM MDF documentation regarding Virtual Channels: "the physical value must be calculated by feeding the zero-based record index to the conversion rule".

But for the file I am checking, its always constant, instead of increment.

Due to some system error, not able to upload the file, once issue solved, i will upload the file.

I am using ASAM MDF Example files -> Standard\Base_Standard\Examples\ChannelTypes\VirtualData\ (If you have standard document package, you can access this file at above location)

danielhrisca commented 3 years ago

Seems to work with the development branch code and the ASAM demo files that contain virtual channels. Can you install the development code and try with your file?

dhruv050992 commented 3 years ago

I ran with the development branch, still getting "zero (0)" value in VirtualChannelLinearConversion File

danielhrisca commented 3 years ago

That's how it looks with 6.3.0.dev41

image