Discussion:
Frame Channel Conversion: 2 Byte channel
(too old to reply)
themad
2008-07-29 11:40:09 UTC
Permalink
I want to perform a channel to frame conversion with the library.
In my dbc there is a message with three channels. One is 4 Bit long, one 1 Byte, one 2 Byte.
When using: Convert Channel To U8 Frame, the value for the 2 Byte channel is not being transformed into the frame array.
Is the conversion library not able to convert 2 Byte channels?
 
Thx in advance
DirkW
2008-07-29 14:10:10 UTC
Permalink
The library doesn't support the rarely used motorola backwards format. This comes into game if you convert 16 bit values.
Otherwise it should work. Could you share your db file?
DirkW
themad
2008-07-30 06:40:05 UTC
Permalink
Sry, can't post even a sample without permission, but my channel is in Motorola format.
Bit 8 ist lsb, then it goes up to 15, then 0 to 7 (Bit 7 is msb).
 
Do you know of any kind of workaround other than modifying my frame manually?
 
DirkW
2008-07-30 22:10:09 UTC
Permalink
See the attached picture for the different byte formats. If your format is motorola backwards, we do not support it. Try to import it into Max>> Data Neighborhood>>CAN channels and then export it to .ncd format. Try this file. The MAX Import filter should convert it to Motorola forward.
DirkW


bit format.jpg:
http://forums.ni.com/attachments/ni/30/3657/1/bit format.jpg
themad
2008-08-01 09:10:14 UTC
Permalink
My first tests with your solution work. Thx a lot.

Loading...