LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

List of Type Descriptor Values

Where can I find a list of the type descriptor values for controls?  I am looking at the output of the Cluster Refnum Type Descriptor property.  Using the debugger I have found that strings are 16, numerics are 22, but I have not been able to figure out arrays yet. 
 
I am writing a VI that will write an entire cluster to a text file so it will be important to distinguish between 1D/2D arrays and data types stored in the array. 
 
Thanks,
 
Dave

Message Edited by davey31415 on 10-25-2006 03:59 PM

0 Kudos
Message 1 of 6
(4,365 Views)

https://www.ni.com/docs/en-US/bundle/labview/page/type-descriptors.html

You may also want to take a look at this: http://zone.ni.com/devzone/cda/epd/p/id/3328 

Also, you may want to consider the OpenG Variant Configuration File set of VIs. There's a VI in there that will write a cluster to file directly. Don't know if the cluster's complexity is limited

 
Message 2 of 6
(4,352 Views)
Thanks,
 
I found that Class ID seems to work for recognizing strings and doubles but I'm stuck trying to figure out how many dimensions arrays are and what data types are contained in them.  Perhaps I need to look at the Descriptor Values a bit more closely since that is where I started...
 
0 Kudos
Message 3 of 6
(4,346 Views)
Hi Davey,

have a look at my post here

Where  I 'debug' a cluster TD

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 6
(4,332 Views)
Thanks for the replies, type descriptors it will be!
 
I read that post and Scott said the following:
 
A cluster's property node contains an item called "Controls []", which generates an array of refnums which can be used to access the cluster elements with the generic property node "Value" item. This refnum array can be indexed by the For loop for individual access. Be sure to forcefully limit the number of loops, because the size of the refnum array may not exactly match the actual number of items in the cluster (I think it grows in single byte increments, so it is typically a little bigger.)
Could someone clarify that?  I have not been forcing the for-loop index.  If the Controls[] array is not the same size as the number of controls in the cluster, what is it the size of?  I don't see how the array being incremented in "single byte increments" would cause a problem- if the array WAS the size of the number of controls in the cluster, it would have been incremented in single byte increments as well, right?  (Maybe I'm missing something big here?)
 
Having asked that, how could I determine the number of controls in a property?  (My initial thought is to run Array Size on the Controls[] array!)
The other idea I've come up with is parsing the Type Descriptor property- not something I'm eager to set out to do with LV!
 
Thanks,
 
Dave
0 Kudos
Message 5 of 6
(4,306 Views)
Hi Davey,

it looks like you are mixing up items and I think Scott was wrong.
But it is possible that their a control hidden in clusters.

But what do you want to do?
What code do you have already?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 6
(4,290 Views)