DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DATA CHANNEL

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 

0 Kudos
Message 1 of 5
(4,023 Views)

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?  
0 Kudos
Message 2 of 5
(4,012 Views)

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 

0 Kudos
Message 3 of 5
(3,994 Views)

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 

0 Kudos
Message 4 of 5
(3,991 Views)

Hi,

 

Thanks a lot for your help, i solved out all the problems, thanks again

 

Nidhi 

0 Kudos
Message 5 of 5
(3,984 Views)