Jump to content

Problem reading clusters names in empty array of clusters


Recommended Posts

I've run into an interesting problem using the Open G variant library.  When trying to extract a list of cluster element names from a cluster in an empty array of clusters in a cluster itself, I get the following error from the Open G "Get Cluster Element Names VI":

 

 

Error 1 occurred at (Unexpected Datatype <<Null>>) Split Cluster TD__ogtk.vi in Get Cluster Elements TDs__ogtk.vi->Get Cluster Element Names__ogtk.vi->empty array of clusters problem.vi

 

An example VI showing the problem is attached.

 

At first I thought the problem was due to the fact the array is empty, but asking for cluster names of an empty array of clusters that is not in a larger cluster completes without error.

 

Any thoughts on the cause or solution to this problem?

 


post-51778-0-27433000-1398893285.png

Link to comment

Darren, thanks for pointing out these VIs!  It appears that the problem with the OpenG VIs is in the "Array to Array of VData" conversion, this VI is attempting to convert an array contained in a single variant to an array of variants.  The method used, a NI "Variant to Data" VI without the type input wired doesn't seem to work when the array of clusters is empty.  Although, I'm not sure how I would do it any differently.  It would seem that this should be made into a bug report, if one doesn't already exist.

 

post-51778-0-06362800-1398977310.png

 

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.