LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reference behaviour of strictly typed controls

I have a question regarding the bahaviour of a user-made cluster which I have set to strictly typed.

I am using a reference to this cluster (Which in turn contains other clusters) to automatically read an ini file. I also have an array within one of these sub-clusters (Main Cluster - Sub-Cluster - Array). I want to set the values within this array (The elements of which are also clusters) using only the reference to the control. This works fine, except for the fact that I cannot programatically set the index of the array if my control is strictly typed. If I change the control to type-def, it works.

Is this normal behaviour, and if so, can someone please tell me why? Does it have to do with altering the appearan
ce of the control?

Thanks in advance

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 1 of 5
(2,743 Views)
According to Application Note 159: "The only properties available for strict type definitions are those that affect the appearance of the control, such as Visible, Disabled, Key Focus, Blinking, Position, and Bounds."

Based on that statement, I would say that you're seeing expected behavior, since changing the array index does NOT change the appearance of the control. I am hard pressed to explain why.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 2 of 5
(2,743 Views)
The wierd thing is that I can set the values per reference, read out the values, read the names of the various controls, set the values of the array, I just can`t increment the array.

Can someone give me a definition of a type-def and a string type-def? Maybe the difference is clear if these two can be differentiated by definition.

Thanks

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 5
(2,743 Views)
I assume you mean "strict" type-def.

Go to www.ni.com
Search for "Application Note 159" (including quotes)

Look at http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/a9fbcaa7a3d7922186256a3000652b56?OpenDocument#10

Look at http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/1b04fd6a11e6f17286256c6300588bfa?OpenDocument
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 5
(2,743 Views)
Whoops, I meant "strict". Hands must have been running on automatic there.

Thanks for the links.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 5 of 5
(2,743 Views)