test coincident

This commit is contained in:
Ryan Tang 2023-01-26 17:05:13 -05:00
parent de21b4148f
commit 6a0ecf0573
2 changed files with 22 additions and 5 deletions

View File

@ -571,13 +571,30 @@ void Digitizer2Gen::ProgramPHA(bool testPulse){
WriteValue("/ch/0..63/par/EventTriggerSource", "Ch64Trigger");
WriteValue("/ch/0..63/par/WaveTriggerSource" , "Ch64Trigger");
WriteValue("/ch/0..63/par/ChannelsTriggerMask", "0x0000FFFF000F000F");
//WriteValue("/ch/0..63/par/ChannelsTriggerMask", "0x0000FFFF000F000F");
//WriteValue("/ch/0..3/par/ChannelsTriggerMask", "0x1");
//WriteValue("/ch/4..7/par/ChannelsTriggerMask", "0x10");
//WriteValue("/ch/0/par/ChannelsTriggerMask", "0x000F");
//WriteValue("/ch/12/par/ChannelsTriggerMask", "0x000F");
//WriteValue("/ch/38/par/ChannelsTriggerMask", "0x000F"); // when channel has no input, it still record.
//WriteValue("/ch/0..63/par/CoincidenceMask", "Ch64Trigger");
//WriteValue("/ch/0..63/par/CoincidenceLength", "100"); //ns
//----------- coincident trigger to ch-0
WriteValue("/ch/0/par/ChannelsTriggerMask", "0x1");
WriteValue("/ch/0..3/par/EventTriggerSource", "ChSelfTrigger");
WriteValue("/ch/1..3/par/CoincidenceMask", "Ch64Trigger");
WriteValue("/ch/1..3/par/CoincidenceLengthT", "10"); // ns
//WriteValue("/ch/8..11/par/ChannelsTriggerMask", "0x100");
//WriteValue("/ch/9..11/par/EventTriggerSource", "ChSelfTrigger");
//WriteValue("/ch/9..11/par/CoincidenceMask", "Ch64Trigger");
//WriteValue("/ch/9..11/par/CoincidenceLengthT", "10"); // ns
//======== ACQ trigger?
//WriteValue("/ch/0..63/par/EventTriggerSource", "GlobalTriggerSource");

View File

@ -124,8 +124,8 @@ static void MainWindow (GtkApplication *app){
//g_signal_connect( bnEnd, "clicked", G_CALLBACK(OpenDigitizers), NULL);
gtk_box_append( GTK_BOX(box3), bnEnd);
GtkWidget * cbRunNum = gtk_combo_box_new();
gtk_box_append( GTK_BOX(box3), cbRunNum);
GtkWidget * spinRunNum = gtk_spin_button_new(gtk_adjustment_new(0, 0, 1000, 1, 10, 0), 1, 0);
gtk_box_append( GTK_BOX(box3), spinRunNum);
}