08-15-2007 02:54 AM
08-15-2007 06:06 AM - edited 08-15-2007 06:06 AM

Message Edited by Phillip Brooks on 08-15-2007 07:08 AM
08-15-2007 08:55 AM
HI Phillip,
Thanks for your insight. However, someone must have a fix available if you have encountered this problem often.
I tried looking up this example(Byte order), unfortunately it does not work because and has a broken arrow. http://zone.ni.com/devzone/cda/epd/p/id/1178 Some one had already posted that this example doesn't work yet it still exists on the website ![]()
Hence this was the reason I broken up the bits into an 8*8 array was to reassemble the 8 byte value and change the byte order but, it does not work too well when the values are larger than two bytes. ![]()
I figure, I will still need an 64 bit array to remove the array subset of the interested bits.
Say for example : Starting Bit 15, Lenght 16 or Starting Bit 47, lenght 24.
I tried looking for more real life examples on google but nothing of value.
Thanks,
Ashm01
08-15-2007 11:27 AM
Do you really need arbitrary sets of bits, possibly spanning the number boudaries or do you just need aligned U16 or U32 segments? In this case you would not need any green on your diagram. What do you actually need?
In the upper part of the attached code, I made a quick draft. You should modify it according to your exact requirements.
08-15-2007 11:48 AM
02-20-2008 06:59 PM
02-20-2008 07:42 PM - edited 02-20-2008 07:43 PM

02-21-2008 08:02 AM
02-21-2008 09:57 AM - edited 02-21-2008 09:59 AM
Try again, you seem to have something not wired right. Make sure all the representations are correct. The two inputs must be U16 and the type diagram constant must be SGL.
Attach your code if you cannot get it to work and we'll see what's wrong. 🙂

02-21-2008 10:07 AM - edited 02-21-2008 10:07 AM
JAMR wrote:
I don't understand it seems like labview is manipulating the 123.456 real value before it get put into the U16 registers. any suggestions?
