10-12-2005 09:09 AM
10-12-2005 10:09 AM
10-12-2005 10:10 AM
10-14-2005 06:56 AM
Thanks for the fast reply. Yesterday I spoke with the designer of the software that produces these datafiles. The format is more complicated than I thought so I will try to make it clear.
The first byte of every string field in the datafile defines how long the string is. For example: when a string is preceded by the byte 0A it does not mean 'line feed' (although LabVIEW will interpret it as such) but the decimal number 10. This means that the following string will be 10 characters long. Non-string fields, such as boolean, real and integer, aren't preceded by a byte that tells you how long the following field will be.
An example of what the first part of my datafile looks like can be found in the attachment. In this example you can see three fields: the first (DAQDV 0001) and second (proefperso) field are preceded by the byte 0A, because they are 10 characters long. The zeros between the first and second field are 'filler', because the first field can be 20 characters long. The third field is preceded by the byte 06, because it is 6 characters long.
I'll have another go at adjusting my vi, but suggestions are welcome. Thanks in advance.
Sincerely,
Paul Perreijn
Biometrie, Hogeschool Zuyd
The Netherlands