LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI controls identification

I agree with Shane - that's bad programming.

I thought of using the type descriptor a few months ago and, if I remember correctly, I read somewhere in the forums, that this value is not fixed (although it should be I's say). In addition to this information I didn't find any values in any documentation.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 11 of 12
(511 Views)
The Type descriptor is not fixed, that's correct, but you can extract the correct information from it to give you the base data type of the control. The reason why it's not fixed is that information like Array dimensions are saved within the Type descr. meaning that a growing array will have a changing type descriptor. Kinda wierd, as most people will certainly expect it to be constant.

If you search the LabVIEW help for "Type descriptor" it tells you quite a lot about how the U8 array is constructed and what is included and what not.

Try looking HERE.

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 12 of 12
(506 Views)