04-25-2005 11:19 AM
04-26-2005 06:38 AM
08-09-2007 03:18 AM
08-09-2007 03:27 AM
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
08-10-2007 02:24 PM
Hi fkolbe,
Yes, the real numbers in DIAdem are stored and read according to the IEEE 754 standard. If you want, I can send you VBScript routines which will read those values, but VBScript is NOT the best language to do so since it has no built-in support for reading binary values. My routines load the values byte by byte as strings and calculate the correct real numbers from them in VBScript loops, which is much slower than the performance you would get with a compiled language.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
08-13-2007 03:00 AM - edited 08-13-2007 03:00 AM
Message Edited by fkolbe on 08-13-2007 03:01 AM
10-07-2010 05:27 AM
Hi
I have a need to read Diadem .DAT/.R64 files outside of diadem, and would appreciate any VB samples you have.
Regards
Onkar Jagpal
10-07-2010 09:05 AM
Hi Onkar,
Here are a variety of VBScripts I've written to parse the DIAdem DAT header file, read and write IEEE binary values from binary files, and also convert DIAdem DateTime values (fractional seconds since 0 AD) to a VBScript datetime variable.
Good luck,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-07-2010 09:53 AM
HI again Onkar,
Bear in mind that VBScript is an interpreted language (not compiled), so if you use these scripts to try to load a very large binary file into VBScript variables, it will likely take a very long time. I mainly used them for reading scalar values out of binary headers and then creating the DIAdem DAT header to match the binary data file-- the reverse of what you want to do.
Brad Turpin
DIAdem Product Support Engineer
National Instruments