In this example, data is acquired from the module "adc" in the datasource "CamacAdc", which is described in the sample readout script. A histogram and a history plot are made for ch-1 data; a value-list of each event and another histogram is made for all-channel data.
/* CamacAdc.kvs */ /* Created by Enomoto Sanshiro on 9 May 2001 */ /* Last updated by Enomoto Sanshiro on 9 May 2001. */ display CamacAdc { Histogram histogram_adc_01("ADC ch01 Histogram", 128, 0, 4096); History history_adc_01("ADC ch01 History", 0, 4096, 32); Tabular tabular_adc_all("ADC Values"); Histogram histogram_adc_all("ADC Values Distribution", 128, 0, 4096); analysis { DataElement adc_01("adc", 1); DataElement adc_all("adc"); histogram_adc_01.fill(adc_01); history_adc_01.fill(adc_01); tabular_adc_all.fillOne(adc_all); histogram_adc_all.fillOne(adc_all); } on every (1 sec) { histogram_adc_01.draw(); history_adc_01.draw(); tabular_adc_all.draw(); histogram_adc_all.draw(); } }