Jump to content

what to do with my binary data


Recommended Posts

Hi all,

I have made an application that comes up with a set number of elements every second. I decided to log this data binary, starting with a u32 timestamp.

Each entry has a set number of bytes, as follows: U32, DBL, DBL, DBL, I16, DBL, DBL, DBL, DBL, I8, I8. A total of 64 bytes an entry. Each binary file can have an arbitrary number of entries.

I want to have Diadem 10 read this binary file and convert it to Diadem channels. I think I have to build my own parser via file>dat file>import via header, but I am not sure how to fill in these dialogs. Does anyone know of a good example, application note or have a good explanation on how to make this binary parser?

Thanks!

I create the binary files with Labview. Maybe it makes more sense having labview parse the files and save them as TDM data. Unfortunately I am not sure how to configure these express VIs either. :unsure:

Link to comment
  • 1 month later...
Hi all,

I have made an application that comes up with a set number of elements every second. I decided to log this data binary, starting with a u32 timestamp.

Each entry has a set number of bytes, as follows: U32, DBL, DBL, DBL, I16, DBL, DBL, DBL, DBL, I8, I8. A total of 64 bytes an entry. Each binary file can have an arbitrary number of entries.

I want to have Diadem 10 read this binary file and convert it to Diadem channels. I think I have to build my own parser via file>dat file>import via header, but I am not sure how to fill in these dialogs. Does anyone know of a good example, application note or have a good explanation on how to make this binary parser?

Thanks!

I create the binary files with Labview. Maybe it makes more sense having labview parse the files and save them as TDM data. Unfortunately I am not sure how to configure these express VIs either. :unsure:

I suggest you could try to save your data to LVM file, DIAdem can read the LVM file, too.

Link to comment
  • 1 month later...

LVM will definitely work for this use case. However, I would suggest using the TDM Streaming API and TDMS files (in older LabVIEW versions TDM and the Storage VIs). Both give you a better way of formatting your data in LabVIEW so it comes up in DIAdem exactly like you want it. That includes data types, names for channels and groups, and arbitrary descriptive properties.

Plus of course, the TDM Streaming API will rid you of having to deal with Express VIs :) . You might want to look at ./examples/file/plat-tdms.llb/TDMS - Write data (events).vi for some inspiration.

Hope that helps,

Herbert

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.