LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Ring Knob labels during runtime

Hi,
 
I have been trying to change the labels around a ring knob while my program is running. All I have managed to do so far is to change the main label (title for the knob) by means of a command button and the function SetCtrlAttribute.
 
I would like to know how to do the same with the label/value pairs. I only need to change the displayed labels but not their linked values.
 
Any suggestions on this would be greatly appreciated,
 
Thanks,
 
Eric
0 Kudos
Message 1 of 2
(3,015 Views)
The function you need to use is ReplaceListItem.

Because that function makes you specify a new value, as well as a new label, and you don't want to change the value, you will have to call GetValueFromIndex prior to calling ReplaceListItem. That way you can pass the same value that was already there.

Luis
Message 2 of 2
(3,007 Views)