11-13-2008 01:21 PM
Solved! Go to Solution.
11-13-2008 01:34 PM - edited 11-13-2008 01:37 PM
I see a grey coercion dot on your "built array" node and another one on the array indicator. Maybe you should double-check the representation of all your diagram constants. Looks like you initialize the array as DBL. Things like that would NOT happen if you would use only a single diagram constant and use it for both the read and initiaize function. You can branch the wire.
Please attach the real VI instead of a picture. Thanks! 🙂
11-13-2008 01:37 PM
11-13-2008 01:40 PM
11-13-2008 01:56 PM - edited 11-13-2008 01:59 PM
Your file contains space characters and not null characters. How are you wrting it?
If you are only interested in the first two bytes, you could read it as U32, mask off the desired bytes, and cast to SGL.
11-13-2008 02:04 PM - edited 11-13-2008 02:05 PM
altenbach wrote:If you are only interested in the first two bytes, you could read it as U32, mask off the desired bytes, and cast to SGL.
Here's a quick example for this.
11-13-2008 02:13 PM
11-13-2008 02:22 PM
11-13-2008 02:36 PM
MonstorBak wrote:
What is that function you're using to mask off the bytes?
That is an And gate with a U32 configured as hex display to specify the mask.
Ben
11-13-2008 02:37 PM
Well, the file you have attached does NOT contain null characters. If you have a better file, zip it up and attach it. Thanks.
The function is a logical AND from the boolean palette. When used with integers, it will do a bitwise operation. Still, I doubt you want to do that. using only 2 bytes for a SGL seems to throw away way too much. You only have 7 useful bits left for the mantissa.