From: Manuel Penschuck Date: Mon, 3 Mar 2014 17:02:17 +0000 (+0100) Subject: httpi now supports WebSocket-Requests (for simplicity much session handling is done... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=20fc53f5ffa004c4055e68164eb91018427e066b;p=daqtools.git httpi now supports WebSocket-Requests (for simplicity much session handling is done by the CGI script) Added CTS AddOn Output Mux Added Triggers from TRB3 peripheral FPGAs Support for unified trigger input multiplexer (WARNING: This required a renaming of some CTS-AddOn related input registers, breaking compatibility with older cts-startup scripts!) --- diff --git a/.kateconfig b/.kateconfig new file mode 100644 index 0000000..8224436 --- /dev/null +++ b/.kateconfig @@ -0,0 +1 @@ +kate: space-indent on; indent-width 3; tab-width 3; replace-tabs on; diff --git a/web/CtsPlugins/CtsMod13.pm b/web/CtsPlugins/CtsMod13.pm index f11290d..3aac0f7 100755 --- a/web/CtsPlugins/CtsMod13.pm +++ b/web/CtsPlugins/CtsMod13.pm @@ -38,8 +38,9 @@ sub init { } # registers + my @mux_names = (); for(my $i = 0; $i < $header->{'len'}; $i++) { - my $key = "trg_addon_output_multi$i"; + my $key = "trg_addon_output_mux$i"; $regs->{$key} = new TrbRegister($address + $i + 1, $trb, { 'input' => {'lower' => 0, 'len' => 7, 'type' => 'enum', 'enum' => $enum} @@ -49,10 +50,20 @@ sub init { 'monitor' => '1', 'label' => "AddOn Output Multiplexer $i" }); + + push @mux_names, "outmux[$i]"; } # properties - $prop->{"trg_addon_output_multiplexer_count"} = $header->{'len'}; + $prop->{"trg_addon_output_mux_count"} = $header->{'len'}; + if (8 == $header->{'len'}) { + $prop->{"trg_addon_output_mux_names"} = [ + "jout1[0]/joutlvds[0]", "jout1[1]/joutlvds[1]", "jout1[2]/joutlvds[2]", "jout1[3]/joutlvds[3]", + "jout2[0]/joutlvds[4]", "jout2[1]/joutlvds[5]", "jout2[2]/joutlvds[6]", "jout2[3]/joutlvds[7]", + ]; + } else { + $prop->{"trg_addon_output_mux_names"} = \@mux_names; + } } 1; diff --git a/web/htdocs/cts/cts.htm b/web/htdocs/cts/cts.htm index 45631eb..8abb770 100644 --- a/web/htdocs/cts/cts.htm +++ b/web/htdocs/cts/cts.htm @@ -226,6 +226,15 @@ + +