06-30-2009 03:27 PM
I'm trying to store a 32-bit float (single) onto 4 bytes of EEPROM memory via the I2C bus. I'm using a parallel cable to bit-bang 8 bits per ack onto the EEPROM chips.
The only way I can think of doing this is to split the Single into one I8 and three U8's. Is there even a need for this or should I just typecast to U32 and use arrays. Admittedly, I'm horrible with arrays and I can't really wrap my head around how to do this. Any help will be appreciated, and if I'm not very clear, I can clarify. Thanks for any assistance.
e.g.
3D23D70A -> 3D
23
D7
0A
Solved! Go to Solution.
07-01-2009 08:55 AM
07-01-2009 10:27 AM
Found my solution, here it is for posterity; if anyone is ever interested and/or can share improvements, please do.
Single Property Node Value typecasted to U32, then two tiers of the "Split Number" function to get the four U8 bytes, then fed them into my custom I2C 4-Byte write .vi.
07-01-2009 02:50 PM
Easier way to get 4 bytes of U8.