
record(longout, "TRIG:SYS1:1:NRULE") {
  field(DESC, "No. of Global Rules")
  field(DTYP, "Soft Channel")
  field(HOPR, "255")
  field(DRVH, "255")
  field(VAL,  "11") 
  field(PINI, "YES")
}

record(longout, "TRIG:SYS1:1:NBEAMCODE") {
  field(DESC, "No of beam codes")
  field(DTYP, "Soft Channel")
  field(HOPR, "4")
  field(DRVH, "4")
  field(VAL,  "4")
  field(PINI, "YES")
}
# Nominal delay by sector
# If TRIG:<loca>:1:USE_TNOM is enabled, then all channels 
# for that sector add TNOM to the total delay.
#
record(ao,"TRIG:SYS1:1:BEAMCODE1_TNOM") {
  field(DESC, "Nominal Delay")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(ESLO, "0.1189999209996")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(PINI, "YES")
  field(MDEL, "-1")
  info(autosaveFields,"VAL")
}





# Nominal delay by sector
# If TRIG:<loca>:1:USE_TNOM is enabled, then all channels 
# for that sector add TNOM to the total delay.
#
record(ao,"TRIG:SYS1:1:BEAMCODE2_TNOM") {
  field(DESC, "Nominal Delay")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(ESLO, "0.1189999209996")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(PINI, "YES")
  field(MDEL, "-1")
  info(autosaveFields,"VAL")
}





# Nominal delay by sector
# If TRIG:<loca>:1:USE_TNOM is enabled, then all channels 
# for that sector add TNOM to the total delay.
#
record(ao,"TRIG:SYS1:1:BEAMCODE3_TNOM") {
  field(DESC, "Nominal Delay")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(ESLO, "0.1189999209996")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(PINI, "YES")
  field(MDEL, "-1")
  info(autosaveFields,"VAL")
}





# Nominal delay by sector
# If TRIG:<loca>:1:USE_TNOM is enabled, then all channels 
# for that sector add TNOM to the total delay.
#
record(ao,"TRIG:SYS1:1:BEAMCODE4_TNOM") {
  field(DESC, "Nominal Delay")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(ESLO, "0.1189999209996")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(PINI, "YES")
  field(MDEL, "-1")
  info(autosaveFields,"VAL")
}





#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE0_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE0") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE0_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE0_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE0_NUM")
  field(INPC, "TRIG:SYS1:1:RULE0")
  field(INPE, "TRIG:SYS1:1:RULE0.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE0_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE0_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE0_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE0_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE0_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "0")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE1_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE1") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE1_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE1_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE1_NUM")
  field(INPC, "TRIG:SYS1:1:RULE1")
  field(INPE, "TRIG:SYS1:1:RULE1.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE1_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE1_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE1_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE1_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE1_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "1")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE2_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE2") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE2_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE2_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE2_NUM")
  field(INPC, "TRIG:SYS1:1:RULE2")
  field(INPE, "TRIG:SYS1:1:RULE2.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE2_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE2_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE2_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE2_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE2_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "2")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE3_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE3") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE3_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE3_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE3_NUM")
  field(INPC, "TRIG:SYS1:1:RULE3")
  field(INPE, "TRIG:SYS1:1:RULE3.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE3_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE3_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE3_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE3_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE3_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "3")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE4_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE4") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE4_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE4_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE4_NUM")
  field(INPC, "TRIG:SYS1:1:RULE4")
  field(INPE, "TRIG:SYS1:1:RULE4.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE4_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE4_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE4_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE4_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE4_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "4")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE5_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE5") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE5_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE5_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE5_NUM")
  field(INPC, "TRIG:SYS1:1:RULE5")
  field(INPE, "TRIG:SYS1:1:RULE5.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE5_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE5_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE5_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE5_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE5_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "5")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE6_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE6") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE6_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE6_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE6_NUM")
  field(INPC, "TRIG:SYS1:1:RULE6")
  field(INPE, "TRIG:SYS1:1:RULE6.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE6_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE6_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE6_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE6_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE6_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "6")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE7_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE7") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE7_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE7_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE7_NUM")
  field(INPC, "TRIG:SYS1:1:RULE7")
  field(INPE, "TRIG:SYS1:1:RULE7.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE7_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE7_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE7_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE7_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE7_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "7")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE8_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE8") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE8_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE8_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE8_NUM")
  field(INPC, "TRIG:SYS1:1:RULE8")
  field(INPE, "TRIG:SYS1:1:RULE8.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE8_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE8_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE8_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE8_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE8_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "8")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE9_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE9") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE9_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE9_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE9_NUM")
  field(INPC, "TRIG:SYS1:1:RULE9")
  field(INPE, "TRIG:SYS1:1:RULE9.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE9_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE9_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE9_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE9_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE9_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "9")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBDEND


record(bo, "TRIG:SYS1:1:RULE10_FREE") {
  field(DESC, "Free global rule for re-use")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Request reset")
  field(ONAM, "Checking if ok")
}

#
# The SNL monitors Global rules and copies the waveform to all 
# trigger channel rules registered to this global rule. However,
# this is only done when the rule description has been changed
# to something other than UNUSED.
#
# A trigger channel rule is registered with a global rule
# by setting the trigger channel rule id, <device>:RULE<rl>_ID
# to the global rule 0 to TRIG:SYS0:1:NRULES
#
# For example)
#    Global rule 2 is defined with the inclusion
#    and exclusion masks set to 0 and the beam code set to 1 (NORD=21)
#    and LI21 trigger channel 201 rule0 id is set to 2
#    then global rule 2 will be output to trigger channel 201 rule0
#   
# TRIG:SYS0:1:RULE2 
#    NORD 21 
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1
#
# TRIG:LI21:201:RULE0_ID
#    VAL 2
#
# TRIG:LI21:201:RULE0
#    NORD 21
#    VAL 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 
#    DESC Test #1   
# 
# The input to this pv is normally done from
# Parth's TimingPatternChooser() java program.
# This is an array of 21 unsigned shorts, such that:
# 
# 10 16-bit inclusion masks
# 10 16-bit exclusion masks
# 1  16-bit beam code (max beam code is 0xff)
# 
# Note that inclusion masks are items 0-9
# and the exclusions items are 10-19. It's important to
# note that the standard event inclusion and exclusion masks
# for timing are defined as 32-bit words. Therefore, the
# 10 pdu 16-bit inclusion  masks translate to 5 event inclusion masks
# and the same goes for the exclusion masks.  As for beamcode
# the maximum is 255 so 16-bits is sufficient.
#
record(waveform, "TRIG:SYS1:1:RULE10") {
  field(DESC, "UNUSED")
  field(FTVL, "USHORT")
  field(NELM, "21")
  field(PINI, "YES")
  field(FLNK, "TRIG:SYS1:1:RULE10_PROC")
  info(autosaveFields, "VAL DESC")
}

# Process the rule information.
record(aSub, "TRIG:SYS1:1:RULE10_PROC") {
  field(DESC, "Fanout array elements")
  field(INAM, "tmRuleInit")
  field(SNAM, "tmRuleType")
  field(BRSV, "INVALID")

# Inputs:
  field(INPA, "TRIG:SYS1:1:RULE10_NUM")
  field(INPC, "TRIG:SYS1:1:RULE10")
  field(INPE, "TRIG:SYS1:1:RULE10.DESC CP")
  field(FTA,  "LONG")
  field(FTC,  "USHORT")
  field(FTE,  "STRING")
  field(NOC,  "21")
   
# Outputs:
# Set the rule type, such that
# Rule type: 0=unused, 1=default,2=conditional.
#
  field(OUTA, "TRIG:SYS1:1:RULE10_TYPE PP")
  field(FTVA, "USHORT")
  field(FLNK, "TRIG:SYS1:1:RULE10_FANOUT")
}

record(mbbo, "TRIG:SYS1:1:RULE10_TYPE") {
  field(DESC, "Rule type")
  field(DTYP, "Soft Channel")
  field(NOBT, "3")
  field(ZRST, "Unassigned")
  field(ONST, "Default")
  field(TWST, "Conditional")
  field(THST, "Unused")
  field(FRST, "Invalid")
  field(FRSV, "MAJOR")
  field(OMSL, "closed_loop")
  field(DOL, "TRIG:SYS1:1:RULE10_PROC.VALA")
}


record(longout, "TRIG:SYS1:1:RULE10_NUM") {
  field(DESC, "Rule Number")
  field(PINI, "YES")
  field(DTYP, "Soft Channel")
  field(DRVH, "10")
  field(HOPR, "10")
  field(VAL,  "10")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE0_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE0_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE0 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE0_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE0_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE0_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE0_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE0_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE0_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE0_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE0_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE0_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE0_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE0_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE0_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE0_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE0_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE0_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE0_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE1_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE1_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE1 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE1_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE1_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE1_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE1_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE1_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE1_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE1_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE1_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE1_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE1_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE1_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE1_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE1_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE1_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE1_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE1_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE2_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE2_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE2 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE2_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE2_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE2_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE2_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE2_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE2_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE2_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE2_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE2_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE2_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE2_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE2_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE2_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE2_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE2_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE2_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE3_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE3_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE3 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE3_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE3_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE3_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE3_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE3_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE3_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE3_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE3_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE3_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE3_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE3_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE3_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE3_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE3_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE3_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE3_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE4_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE4_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE4 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE4_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE4_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE4_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE4_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE4_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE4_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE4_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE4_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE4_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE4_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE4_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE4_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE4_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE4_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE4_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE4_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE5_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE5_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE5 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE5_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE5_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE5_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE5_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE5_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE5_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE5_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE5_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE5_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE5_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE5_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE5_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE5_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE5_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE5_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE5_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE6_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE6_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE6 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE6_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE6_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE6_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE6_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE6_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE6_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE6_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE6_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE6_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE6_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE6_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE6_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE6_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE6_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE6_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE6_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE7_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE7_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE7 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE7_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE7_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE7_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE7_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE7_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE7_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE7_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE7_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE7_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE7_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE7_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE7_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE7_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE7_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE7_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE7_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE8_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE8_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE8 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE8_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE8_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE8_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE8_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE8_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE8_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE8_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE8_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE8_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE8_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE8_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE8_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE8_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE8_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE8_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE8_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE9_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE9_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE9 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE9_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE9_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE9_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE9_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE9_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE9_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE9_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE9_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE9_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE9_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE9_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE9_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE9_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE9_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE9_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE9_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

#! Generated by VisualDCT v2.6
#! DBDSTART
#! DBD("../../../dbd/CAMACSoft.dbd")
#! DBDEND


# This pv takes an array of shorts as input and outputs
# the first 21 16-bit words as 10 32-bit longout PVs. The
# las short of the array will be output to a 32-bit longout.
# The data in the array represents timing pattern  information 
# for a specific rule. The wavefore data includes the following:
# A = Array
# B = Index into array
# C = Data type (to extract 2=short,ushort,4=long,ulong)
#
record(longSub, "TRIG:SYS1:1:RULE10_INCL0") {
  field(DESC, "Inclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "0")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_INCL1") {
  field(DESC, "Inclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "1")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_INCL2") {
  field(DESC, "Inclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "2")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_INCL3") {
  field(DESC, "Inclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "3")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_INCL4") {
  field(DESC, "Inclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "4")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_EXCL0") {
  field(DESC, "Exclusion Mask 0")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA ,"TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "5")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_EXCL1") {
  field(DESC, "Exclusion Mask 1")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "6")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_EXCL2") {
  field(DESC, "Exclusion Mask 2")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "7")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_EXCL3") {
  field(DESC, "Exclusion Mask 3")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "8")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_EXCL4") {
  field(DESC, "Exclusion Mask 4")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "9")
  field(C, "4")
  field(HOPR, "4294967205")
}

record(longSub, "TRIG:SYS1:1:RULE10_BEAMCODE") {
  field(DESC, "Beam Code")
  field(INAM, "tmRuleMskInit")
  field(SNAM, "tmRuleMsk")
  field(INPA, "TRIG:SYS1:1:RULE10 NPP MS")
  field(B, "20")
  field(C, "2")
  field(HOPR, "255")
}

record(fanout, "TRIG:SYS1:1:RULE10_FANOUT") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE10_INCL0")
  field(LNK2, "TRIG:SYS1:1:RULE10_INCL1")
  field(LNK3, "TRIG:SYS1:1:RULE10_INCL2")
  field(LNK4, "TRIG:SYS1:1:RULE10_INCL3")
  field(LNK5, "TRIG:SYS1:1:RULE10_INCL4")
  field(LNK6, "TRIG:SYS1:1:RULE10_FANOUT2")
}

record(fanout, "TRIG:SYS1:1:RULE10_FANOUT2") {
  field(DESC, "Fanout array elements")
  field(LNK1, "TRIG:SYS1:1:RULE10_EXCL0")
  field(LNK2, "TRIG:SYS1:1:RULE10_EXCL1")
  field(LNK3, "TRIG:SYS1:1:RULE10_EXCL2")
  field(LNK4, "TRIG:SYS1:1:RULE10_EXCL3")
  field(LNK5, "TRIG:SYS1:1:RULE10_EXCL4")
  field(LNK6, "TRIG:SYS1:1:RULE10_BEAMCODE")
}

# Required by the PDUPatternChooser.
record(stringout, "TRIG:SYS1:1:RULE10_INCLS") {
  field(DESC, "concat str of incl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(stringout, "TRIG:SYS1:1:RULE10_EXCLS") {
  field(DESC, "concat str of excl masks")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(bo, "TRIG:SYS1:1:SNL_CHECK_IOC_HEARTBEATS") {
  field(DESC, "SNL IOC online watchdog")
  field(DTYP, "Soft Channel")
  field(ZNAM, "Disable")
  field(ONAM, "Enable")
  field(PINI, "YES")
  info(autosaveFields,"VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_INIT") {
  field(DESC, "init state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN1") {
  field(DESC, "run1 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN2") {
  field(DESC, "run2 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN3") {
  field(DESC, "run3 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN4") {
  field(DESC, "run4 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN5") {
  field(DESC, "run5 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN6") {
  field(DESC, "run6 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

record(mbbo,"TRIG:SYS1:1:SNL_DEBUG_RUN7") {
  field(DESC, "run7 state debug level")
  field(DTYP, "Soft Channel")
  field(ZRST, "None")
  field(ONST, "Errors")
  field(TWST, "Changes")
  field(THST, "Everything")
  field(PINI, "YES")
  info(autosaveFields, "VAL")
}

# Deliberatly not autosaving. The state is brought through startup sequence
# at boot 
record(mbbo, "TRIG:SYS1:1:SNL_STATE") {
  field(DESC, "current state of sncpdu")
  field(DTYP, "Soft Channel")
  field(ZRST, "Initializing")
  field(ONST, "Chk glbl defs")
  field(TWST, "Chk glbl names")
  field(THST, "Chk triggers")
  field(FRST, "Chk disconnects")
  field(FVST, "Chk for resets")
  field(SXST, "Chk for frees")
  field(PINI, "YES")
}

# Deliberatly not autosaving. 
record(stringout, "TRIG:SYS1:1:SNL_RESULT") {
  field(DESC, "result of last action")
  field(DTYP, "Soft Channel")
  field(PINI, "YES")
}

record(longout, "TRIG:SYS1:1:NTMVA") {
  field(DESC, "No of Timing Values")
  field(DTYP, "Soft Channel")
  field(HOPR, "15")
  field(DRVH, "15")
  field(VAL,  "15")
}

record(aSub,  "TRIG:SYS1:1:TMVA_PROC") {
  field(DESC, "Fanout TMVA array elements")
  field(INAM, "tmInit")
  field(SNAM, "tmTmva")
  field(BRSV, "INVALID")
# Inputs:
  field(INPA, "TRIG:SYS1:1:NTMVA")
  field(INPB, "TRIG:SYS1:1:TMVA0 CP")
  field(INPC, "TRIG:SYS1:1:TMVA1 CP")
  field(INPD, "TRIG:SYS1:1:TMVA2 CP")
  field(INPE, "TRIG:SYS1:1:TMVA3 CP")
  field(INPF, "TRIG:SYS1:1:TMVA4 CP")
  field(INPG, "TRIG:SYS1:1:TMVA5 CP")
  field(INPH, "TRIG:SYS1:1:TMVA6 CP")
  field(INPI, "TRIG:SYS1:1:TMVA7 CP")
  field(INPJ, "TRIG:SYS1:1:TMVA8 CP")
  field(INPK, "TRIG:SYS1:1:TMVA9 CP")
  field(INPL, "TRIG:SYS1:1:TMVA10 CP")
  field(INPM, "TRIG:SYS1:1:TMVA11 CP")
  field(INPN, "TRIG:SYS1:1:TMVA12 CP")
  field(INPO, "TRIG:SYS1:1:TMVA13 CP")
  field(INPP, "TRIG:SYS1:1:TMVA14 CP") 
  field(FTA, "LONG")
  field(FTB, "DOUBLE")
  field(FTC, "DOUBLE")
  field(FTD, "DOUBLE")
  field(FTE, "DOUBLE")
  field(FTF, "DOUBLE")
  field(FTG, "DOUBLE")
  field(FTH, "DOUBLE")
  field(FTI, "DOUBLE")
  field(FTJ, "DOUBLE")
  field(FTK, "DOUBLE")
  field(FTL, "DOUBLE")
  field(FTM, "DOUBLE")
  field(FTN, "DOUBLE")
  field(FTO, "DOUBLE")
  field(FTP, "DOUBLE")

# Output:
#  VALA = Array of timing values TMVA0 through TMVA14
  field(OUTA, "TRIG:SYS1:1:TMVA PP")
  field(FTVA, "DOUBLE")
  field(NOVA, "15")
}

# Array of global time delay values
# This pv is updated by
# <device>::TMVA_PROC
#
record(waveform, "TRIG:SYS1:1:TMVA") {
  field(DESC, "Timing Values")
  field(FTVL, "DOUBLE")
  field(NELM, "15")
  field(INP,  "TRIG:SYS1:1:TMVA_PROC.VALA.")
}

record(fanout,"TRIG:SYS1:1:TMVA_INIT") {
  field(DESC, "Init TMVAs on boot")
  field(LNK1, "TRIG:SYS1:1:TMVA_FANOUT.PROC")
  field(LNK2, "TRIG:SYS1:1:NTMVA")
  field(LNK3, "TRIG:SYS1:1:TMVA_PROC")
  field(PINI, "YES")
}

# Process all global Timing values
record(fanout,"TRIG:SYS1:1:TMVA_FANOUT") {
  field(DESC, "Init TMVAs on boot")
  field(LNK1, "TRIG:SYS1:1:TMVA0")
  field(LNK2, "TRIG:SYS1:1:TMVA1")
  field(LNK3, "TRIG:SYS1:1:TMVA2")
  field(LNK4, "TRIG:SYS1:1:TMVA3")
  field(LNK5, "TRIG:SYS1:1:TMVA4")
  field(LNK6, "TRIG:SYS1:1:TMVA_FANOUT2.PROC")
}
record(fanout,"TRIG:SYS1:1:TMVA_FANOUT2") {
  field(DESC, "Init TMVAs on boot")
  field(LNK1, "TRIG:SYS1:1:TMVA5")
  field(LNK2, "TRIG:SYS1:1:TMVA6")
  field(LNK3, "TRIG:SYS1:1:TMVA7")
  field(LNK4, "TRIG:SYS1:1:TMVA8")
  field(LNK5, "TRIG:SYS1:1:TMVA9")
  field(LNK6, "TRIG:SYS1:1:TMVA_FANOUT3.PROC")
}
record(fanout,"TRIG:SYS1:1:TMVA_FANOUT3") {
  field(DESC, "Init TMVAs on boot")
  field(LNK1, "TRIG:SYS1:1:TMVA10")
  field(LNK2, "TRIG:SYS1:1:TMVA11")
  field(LNK3, "TRIG:SYS1:1:TMVA12")
  field(LNK4, "TRIG:SYS1:1:TMVA13")
  field(LNK5, "TRIG:SYS1:1:TMVA14")
}

record(ao, "TRIG:SYS1:1:TMVA0") {
  field(DESC, "PSK2")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA1") {
  field(DESC, "PSK2_L2")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA2") {
  field(DESC, "PSK2_L3")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA3") {
  field(DESC, "PSK2TS")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA4") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA5") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA6") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA7") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA8") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA9") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA10") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA11") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA12") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA13") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



record(ao, "TRIG:SYS1:1:TMVA14") {
  field(DESC, "Spare")
  field(DTYP, "Raw Soft Channel")
  field(DRVH, "1000000000")
  field(HOPR, "1000000000")
  field(LOPR, "-1000000000")
  field(DRVL, "-1000000000")
  field(ESLO, "8.4033669232459")
  field(LINR, "SLOPE")
  field(EGU,  "nsec")
  field(PREC, "4")
  field(MDEL, "-1")
  info(autosaveFields, "VAL DESC")
}



