LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my Control Mode change from Indicator to Normal?

I added 9 widgets to an existing panel in a uir file.  After that, two of my Edit Ring widgets (on a different panel that is used for tabs but in the same uir file) that have the control mode set to "Indicator" have the look of a control mode of normal when the application runs.  They look fine when looking at the .uir file and they are still set to "Indicator".  So I removed them and added two new Edit Ring widgets set to Indicator and they look fine when the application runs but then two other edit ring widgets have the same problem.  Have I exceeded some sort of limit in a uir file? 
Thanks,
Donna
0 Kudos
Message 1 of 8
(4,126 Views)
Hello Donna,
 
I was unable to reproduce the behavior in CVI 7.1 with Lab Style Rings, but in order to clarify what you are seeing, which version of CVI are using?  Also, which Ring control are you using (Ring, Menu Ring, Recessed Ring, etc) and are you using Lab Style vs Classic Style controls?
 
Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 8
(4,104 Views)
Hi Wendy,
  I am using Edit Rings and LabWindows 6.0.  I have over 74 edit rings and 5 edit strings spread into 2 panels.  I also have 5 edit strings and some titles and decorations.  The only way that I have found to fix this is to programmatically set the ATTR_CTRL_MODE to  VAL_INDICATOR for these two widgets even though I did not change the control mode in the program and the uir file has the control mode set to indicator.  
Thanks,
Donna
0 Kudos
Message 3 of 8
(4,100 Views)

Hi Wendy,

  I don't think that I answered your question.  I used a Lab Style control the first one with the two small arrows.  I have two columns, one column shows the arrows and the control mode is normal and another column where the control mode is indicator so the arrows are not supposed to show.

I hope this is enough detail.

Thanks,

Donna

0 Kudos
Message 4 of 8
(4,097 Views)

Wendy,

I added a label to a totally different .uir file and I didn't assign it a constant name.   Then the same thing happened in this file.   An edit ring that was an indicator turned into a normal control edit ring.  I went back in and added the constant name to the new label and then the problem fixed itself.  I do have two objects that do not have a constant name in the .uir file that I originally wrote in about.  Do you think that this is the cause?

Do you know whether you can prevent a program user from being able to enter a value in an edit ring (with the two arrows) and force them to use the arrow controls only?   Also, is it possible to have a negative minimum value and a positive maximum value in the edit ring widget?

Thanks so much,

Donna 

 

 

0 Kudos
Message 5 of 8
(4,086 Views)

Donna,

Do you use SavePanelState() / RecallPanelState() in your app?
If so, you will see some strange behaviour when you change the .uir file. You will need to delete the "panel state" files each time you modify the .uir.

You may need to repair or re-install CVI.

Regards,
Colin.

 

0 Kudos
Message 6 of 8
(4,073 Views)

Hi Collin,

  No I don't use either of those calls.  So do think that I need to reinstall CVI?

Thanks,

Donna

0 Kudos
Message 7 of 8
(4,051 Views)
 

Hello Donna,

I haven't seen this behavior before, but first, I would suggest upgrading your runtime engine to 7.1.  The runtime engine is backwards compatible, so you can use a newer runtime engine with the CVI 6.0 development environment.  Let me know if this helps. 

 

Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 8 of 8
(4,046 Views)