Jump to content

Archiving Typedefs


Recommended Posts

I am logging data in binary files by creating typedefs which bundle my relevant data and then writing these straight to binary files.

I am running into issues that I can not change my typedefs without breaking all of my log readers. This is mostly inevitable, but there should be some clever ways to encapsulate some meta data in the file and create update mechanisms for older logs.

I would like to be able to write a VI that updates from typedef A to its new revision typedef B.

The problem is that if typedef A depends on typedef C and tyepdef C get modified, it is not enough so save a copy of typedef A, a copy of typedef C must be made (typedef D) and typedefs A and B must be made to point to D and C respectively in order to be able to have separate typedefs.

Perhapse there exists some tool that may help me with the situation.

Otherwise, I was going to try and create a typedef database utility. Indexed by type descriptor this database would contain archives of any unique typedef it was ever presented with stored in its entierty (where entirety implies the whole typedef hierachy has been duplicated and saved off). I am looking for a way to programatically save a whole typedef hierarchy with unique names.

I hope this makes sense!

Thanks

Link to comment

LabVIEW classes know how to translate old versions of themselves into the current data format. Typedefs do not have this expertise. So if you flatten an instance of a LV class, then edit the class (add a field, reorder the fields, delete a field), and then read the old version, the same changes that you made to the class (add a field, reorder fields, delete a field) will be applied to the read data in order to make it match the new version (any added field is added with the default value).

QUOTE(tcplomp @ Jun 9 2007, 12:41 PM)

How long would it take before:
  1. Aristos says LVOOP

A bit over 4 hours...

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
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.