0

12 bit message using big-endian

Codie 4 weeks ago in IQANdesign updated by Thomas Moberg (System support) 3 weeks ago 1

Hello, I have a few 12 Bit messages that need to be received as big endian. Due to that the bits to receive on is 16 to 23 and then 28 to 31. I'm using a generic parameter in. 

Image 4860

This is what I need to bring in:

Image 4861

Hello Codie.

You can take in the value as two JPIN parameters and then add them together in a math channel.

Split up the 8 bit MSB part and then the 4 bit LSB part i two JPIN channels.

Then in a seperate math channel you do a 4 bit shift left action on the MSB and bitwise or the result with the LSB part.

Then you will have the 12 bit value.

Image 4880

Image 4881