From 10591bfc61143253250afe542a39b897a097d2c5 Mon Sep 17 00:00:00 2001
From: Rolf Bork <rolf.bork@ligo.org>
Date: Thu, 8 Sep 2016 16:05:08 +0000
Subject: [PATCH] Bug Fix for loading of RampMuxMatrix on startup (1030).

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@4258 6dcd42c9-f523-4c6d-aada-af552506706e
---
 NEWS                                | 4 ++++
 src/epics/util/lib/RampMuxMatrix.pm | 1 +
 2 files changed, 5 insertions(+)

diff --git a/NEWS b/NEWS
index 78f7c7353..fbe0f9d26 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,10 @@ Changes for X.X
 - Bug Fix (513): Cleanup debug schemes.  Also created separate udp_rcvr files, fixed mx_rcvr header
 - Bug Fix (1015): Update daqd,nds build for ldas-tools 2.5
 ==================================================================================================
+Changes for 3.1.1
+==================================================================================================
+- Bug Fix for loading of RampMuxMatrix on startup (1030).
+==================================================================================================
 Changes for 3.1
 ==================================================================================================
 - Per ECR LIGO-E1600234, modified front end daq code to run without any fast channels. Previously,
diff --git a/src/epics/util/lib/RampMuxMatrix.pm b/src/epics/util/lib/RampMuxMatrix.pm
index 56b8957b6..9e79e97ba 100644
--- a/src/epics/util/lib/RampMuxMatrix.pm
+++ b/src/epics/util/lib/RampMuxMatrix.pm
@@ -90,6 +90,7 @@ sub frontEndInitCode {
         my ($i) = @_;
         my $matOuts = $::partOutputs[$::partOutNum[$i][0]];
         my $matIns = $::partInCnt[$::partInNum[$i][0]];
+	$calcExp = "pLocalEpics->". $::systemName . "\." . "$::xpartName[$i]_LOAD_MATRIX = 1;\n";
         for ($input = 0; $input < $matIns; $input++) {
             for ($output = 0; $output < $matOuts; $output++) {
                 $calcExp .= "RampParamInit(&\L$::xpartName[$i]_state\[$output\]\[$input\],0, ";
-- 
GitLab