Jump to content

Error dialog from within "Unflatten from string"


Torben L

Recommended Posts

Hello all

In some applications we use the flatten to string function to convert clusters of different type into a string that can easily be passed from one vi to the other without type conflicts.

Now I find that when using the Unflatten from string function with a cluster that does NOT match the string, it may pop-up an error message like "Not enough memory to complete the operation".

The cause the error is that the flat string is interpreted as an allocation of a large array or something. But why does it have to pop-up an error dialog? It should just set the 'err' output true and return the default cluster value! That is how it worked in LabVIEW 6.1!

The error dialog prevents using Unflatten with different cluster type to find the cluster type that match the string by a trial and error method (I don't want the user to click OK any number of times to get the conversion right).

Now the real question is if there is a way prevent Unflatten from string from popping up any error messages?

Any help is appreciated. A VI that demonstrate the problem can be found here: Download File:post-3275-1129724819.vi

Best regards

Torben Laursen

microLEX Systems A/S

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.