Jump to content
Yair

[oglib-lvdata] - Can't load an array of classes using the variant config VIs

Recommended Posts

There's a problem with the variant configuration VIs, where if the cluster has an array of classes, that array can be saved, but it cannot be loaded:

post-1431-0-49621100-1304336558_thumb.pn

The problem comes from the type descriptor analysis, which recognizes the class as a refnum, and thus attempts to create an array of refnums, which the class isn't.

I'm not sure if there's anything which can be done about this (because it's quite possible that constructing a temporary LVObject and pushing the flattened data into it will fail because LV expects the object to be of a more specific type), but I did find something that looks like it might allow recognizing the object, as can be seen in the attached VI (LV 2009).

Array of classes bug.vi

  • Like 1

Share this post


Link to post
Share on other sites

Hi Yair,

Ya, objects really aren't supported well at this time. I'd love for the OpenG team to consider adding support, and I'm sure there are some fun things we'd all learn in the process.

In the mean-time, you might consider flattening the object and writing that to file or have a VI that converts the object to some data cluster that can be persisted.

-Jim

Share this post


Link to post
Share on other sites

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.