03-25-2014 07:14 AM
Hello All,
I am currently working on implementing a LIN-Analog Converter in Labview, and in order to do so I must break off a specific set of bits and convert these to decimal format. The VI currently breaks off the first 8 bits and converts them to decimal, however I am a bit confused on how to modify this for my present needs. I need to break off the "3rd and 4th byte pairs" (i.e. bits 17-32). This point may be illustrated more clearly in the attachment entitled "Bits of Interest". Furthermore, my current VI is attached to this message. Any assistance would be greatly appreciated!
Regards,
Colin
03-25-2014 07:31 AM - edited 03-25-2014 07:32 AM
In your case, you only care about specific bytes. This makes like really easy. Here are two possible solutions for this.
03-25-2014 08:24 AM
Crossrulz,
Thank you very much for the speedy response. Unfortunately I am having some issues with taking the CAN/LIN signal and converting it to a byte array w/ the method shown. I have attached a screengrab of the error message. If I do not convert the raw signal to a byte array, I can successfully port the signal to the "Index Array" block, however the outputs then cannot port to the "Join Numbers" block. Any assistance would be greatly appreciated.
Regards,
Colin
03-25-2014 08:36 AM