LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting lost with controls on panels

Solved!
Go to solution

Greeting all,

 

Using Lavwindows 2010

 

I am having a bit of difficulty with my UIR.  I have inherited a project with multiple panels, 2 have about 340 controls on each of them, I am trying to look at the properties (for example) of a certain control (RATE). I use the panel tree to get to the panel i want and the RATE control.  I double click on the control name RATE.  In the details section (below the panel tree) it says the constant name is MLED_MAX12_2 and its an led control (its really a numeric slide). 

 

Is it just that CVI has trouble with panels containing a large quanity of controls?

Is there another way for me to access this control? (right click on RATE and selecting FIND UI OBJECT gives me the properties of the MLED_MAX12_2 control.

 

Is there a limit to the number of controls on a panel ? project ? UIR file?.

 

thanks

Pete Hedlund

 

0 Kudos
Message 1 of 10
(3,726 Views)

It sounds like maybe the UIR has somehow been corrupted and CVI is getting confused. It might be helpful if we can use the UIR to debug this. Can you attach it?

 

Have you seen this happen with other UIRs?

 

0 Kudos
Message 2 of 10
(3,706 Views)

 

This uir (5 panels, about 705 controls in all) are part of a aircraft test system and are prioritary to the company I contract for.  I am unable to send the UIR's due to ITAR regulations.  If indeed labwindows is getting confused as you suggest, is there a simple way to set it straight?.  The UIR file seems to be in a binary format and is a bit resistant to editing outside labwindows.

 

Pete Hedlund 

0 Kudos
Message 3 of 10
(3,700 Views)

If you suspect that the file has been corrupted you could try to save it as a text file (tui), and then try loading it from this text file. You find these two commands in the UI editor  Options menu.

0 Kudos
Message 4 of 10
(3,689 Views)

Thanks for the suggestion.

 

I was able to export then inport the tui file.

I still have the same problem.

I did look at the tui file though.  I did a spot check on the controls used and found something interesting.

Going by the tui file, control 254 is ok.  255  and up is not.

It would appear that the properties box of the ui editor has problems with more than 254 controls.

 

0 Kudos
Message 5 of 10
(3,686 Views)

You could try a couple of things:

- Save the UIR in text format (UI editor>Options menu>Save in Text Format...). Try loading it from the TUI (Options menu>Load from Text Format).

- Recreate the UIR by copying the the panels from the corrupted one to a new one. If that doesn't fix it, then you try copying all the controls to new panels in a new UIR.

 

What version of CVI are you using? What version is the UIR file saved as? (look at the right end of the status bar of the UI editor)

Capture.PNG

0 Kudos
Message 6 of 10
(3,685 Views)

I tried to reproduce this by creating a new UIR, dropping a numeric control, copying it, and pasting it 260 times. It worked ok.

 

Can you reproduce the bad behavior with a new UIR?

0 Kudos
Message 7 of 10
(3,684 Views)

I am using labwindows 2010 I have not created a new menu yet, I am under the gun to get product out right now.

 

As long as I can manipulate the properties (via the tui file) I can get by.

I will try to be more clear.

in the tui file control 254 can be located and I can manipulate the properties (the window below the controls list.

If i locate control 255 in the tui file on the control list window of labview and double click on it, the property window show the properties for the wrong control. 

 

 

0 Kudos
Message 8 of 10
(3,682 Views)

I hope that this little chart will show off the problem i am seeing.

tui file             Control List Box           Properties list box            UIR Control Higholighted

Control254      SLED_CUR26              SLED_CUR26                 SLED_CUR26                    (all is fine)

Control255      SLED_CUR25              SLED_CUR26                 SLED_CUR25                    properties no chng

Control256      SLED_CUR24              SLEC_CUR26                 SLED_CUR24                    properties no chng

Control257      SLED_CUR23              DISPLAYTIMER              SLED_CUR23                    Wrong properties box

Control258      SLED_CUR22              TEXTMSGL1_2                SLED_CUR22                    Wrong properties box

 

 

panel3, control257 shows the property of panel3 control 1

panel3, control258 shows the property of panel3 control 2

 

p4 c254          SLED_CUR26              SLED_CUR26                 SLED_CUR26                    (all is fine)

p4 c255          SLED_CUR25              SLED_CUR26                 SLED_CUR25                    properties no chng

p4 c256          SLED_CUR24              SLEC_CUR26                 SLED_CUR24                    properties no chng

P4 c257          SLED_CUR23              DISPLAYTIMER              SLED_CUR23                    Wrong properties box

P4 c258          SLED_CUR22              TEXTMSGL1_2                SLED_CUR22                    Wrong properties box

 

panel4, control257 shows the property of panel4 control 1

panel4, control258 shows the property of panel4 control 2

 

The only way to change the properties of controls 255 and up is to manually edit the tui file and then

import it back into the ide.

 

Pete

0 Kudos
Message 9 of 10
(3,664 Views)
Solution
Accepted by topic author phedlund

I couldn't reproduce this in 2010 SP1, so I tried it in 2010, and I could reproduce the bug. This has been fixed in 2010 SP1.

 

http://zone.ni.com/devzone/cda/tut/p/id/12323#290057_by_Category

 

The workaround is to edit the control in the edit control dialog that comes up when you hit <enter> when a control has the focus in the UI Editor with the edit tool selected (as opposed to the operate tool). Or you can double click on the control to bring up the edit control dialog.

 

Message 10 of 10
(3,653 Views)