11-27-2008 11:13 PM
Hi all,
I want to have some of the channels through data portal by using "chncombobox" so is it possible to have only required channels in the list of combobox instead of having all the available channels in the portal, or is it possible to disable some of the channels?
Thanks
Nidhi
11-28-2008 02:18 PM
Hello Nidhi!
Unfortunately these controls are not influenced by practical experience (IMHO!). The consequence is that you have to implement this. In this case it is not so difficult. Just add a standard ComBox to your dialog and fill the'EventInitialize'-Event with this code:
Dim i Call ComboBox1.Items.RemoveAll() For i=1 To ChnNoMax If ChnPropValGet(i, "unit_string") = "°C" Then Call ComboBox1.Items.Add(ChnNameExt(i),i) End If Next
This code fill the box with all channels with a '°C' dimension. You have to add code to set/get the current value.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
11-30-2008 10:22 PM
Hi,
Thank you very much it's working very fine, but the channels which i am selecting through combobox i need to have that selected chanels for further analysis like fft & bode,i have used the function "Call ChnFFT2(T, ChnNoStr1, ChnNoStr2) " where in "ChnNoStr1" i need to have first selected channel through combobox for that i have declared one enumeration variable,but it's not providing the selected ch name to "ChnNoStr1" & "ChnNoStr2" so what should i do for that?
Thanks
Nidhi
11-30-2008 11:30 PM
Hi,
I solved the problem which i asked u in previous mail, but i have one file having a number of voltage channels with different name & i want ot have all the voltage channel name in the combobox.is there any possiblity for that.
Thanks
Nidhi
12-01-2008 05:30 AM
Hi,
Thanks a lot for your help, i solved out all the problems, thanks again
Nidhi